fix: wrong table name
This commit is contained in:
parent
929a3babee
commit
0153037646
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ function getMachineUnbatchedBills (deviceId) {
|
||||||
function getBatchById (id) {
|
function getBatchById (id) {
|
||||||
const sql = `
|
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
|
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
|
LEFT JOIN bills AS b ON cb.id = b.cashbox_batch_id
|
||||||
WHERE cb.id = $1
|
WHERE cb.id = $1
|
||||||
GROUP BY cb.id
|
GROUP BY cb.id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue