Merge pull request #1803 from lamassu/releases/v10.2

Releases/v10.2
This commit is contained in:
Rafael Taranto 2025-03-11 14:51:44 +00:00 committed by GitHub
commit 8200d5d338

View file

@ -133,7 +133,7 @@ function getMachineUnbatchedBills (deviceId) {
function getBatchById (id) {
const sql = `
SELECT cb.id, cb.device_id, cb.created, cb.operation_type, cb.bill_count_override, cb.performed_by, json_agg(b.*) AS bills
FROM cashbox_batches AS cb
FROM cash_unit_operation AS cb
LEFT JOIN bills AS b ON cb.id = b.cashbox_batch_id
WHERE cb.id = $1
GROUP BY cb.id