commit
8200d5d338
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue