feat: replace toggle with radio and option descriptions

This commit is contained in:
José Oliveira 2021-05-12 22:34:42 +01:00 committed by Josh Harvey
parent b5c37442c3
commit c83b3cda56
4 changed files with 81 additions and 27 deletions

View file

@ -14,7 +14,7 @@ function notifyCashboxRemoval (req, res, next) {
.then(async config => {
console.log('entered the config')
const cashInSettings = getCashInSettings(config)
if (cashInSettings.automaticCashboxReset) {
if (cashInSettings.cashboxReset === 'Automatic') {
console.log('We proceed with the cashbox reset!!')
await cashbox.createCashboxBatch(req.deviceId, machine.cashbox)
await machine.setMachine({ deviceId: req.deviceId, action: 'emptyCashInBills' })