fix: remove old method of updating cashbox

This commit is contained in:
Rafael Taranto 2025-03-13 08:18:47 +00:00
parent ca2f5fe376
commit afb4764903

View file

@ -28,8 +28,7 @@ function cashboxRemoval (req, res, next) {
return cashbox.createCashboxBatch(req.deviceId, machine.cashbox)
.then(batch => Promise.all([
cashbox.getBatchById(batch.id),
getMachineName(batch.device_id),
setMachine({ deviceId: req.deviceId, action: 'emptyCashInBills' }, operatorId)
getMachineName(batch.device_id)
]))
})
.then(([batch, machineName]) => res.status(200).send({ batch: _.merge(batch, { machineName }), status: 'OK' }))