Work on setuid/setgid, add raw-data-parser for the brmbar disaster.

This commit is contained in:
Dominik Pantůček 2025-04-13 10:21:46 +02:00
parent ae5b9e2775
commit 8bd46721aa
4 changed files with 93 additions and 6 deletions

View file

@ -58,7 +58,7 @@
(row-values
(query
(bd-conn)
"select sum(amount*case side when 'credit' then -1 else 1 end) amt from transaction_splits where account=$1"
"select sum(amount*case side when 'credit' then -1 else 1 end) amt from transaction_splits where account=(select account from barcodes where barcode=$1)"
bc)))))
)