Delete transaction when amount is zero

This commit is contained in:
jacob1123 committed 2022-02-25 22:33:58 +00:00
1 parent ae9e9d34c9
commit 05099e469f
4 files changed
+21 -11

No files matched your search

+3 -4
View File
@@ -13,10 +13,9 @@ UPDATE transactions
SET date = $1,
memo = $2,
amount = $3,
account_id = $4,
payee_id = $5,
category_id = $6
WHERE id = $7;
payee_id = $4,
category_id = $5
WHERE id = $6;
-- name: DeleteTransaction :exec
DELETE FROM transactions