Files
finance-app/dump/statement_134743672_AUD_2025-04-22_2026-07-26.csv
T
siddharthd 030490efa3
ci / lint-test (push) Successful in 41s
feat(cash): mark how a transaction was paid, exclude cash from reconciliation
getPendingReconciliations treated every unreconciled manual transaction as
awaiting a matching statement row. Cash never appears on a statement, so a cash
entry sat in the queue indefinitely being offered matches within 3 days and 1%
on amount - and accepting one is silently destructive: reconciled manual rows
are filtered out of every query, so the cash spend disappears while the card
transaction it matched claims to be that same spend.

Migration 0016 adds transactions.payment_method (card | cash | bank_transfer |
other, NULL = unknown) with a CHECK constraint and a partial index. The notCash()
fragment excludes cash from both halves of the reconciliation query - the pending
list and the candidate match subquery, which aliases the manual row as m.

Only cash is excluded. Bank transfers do appear on a statement now that
transaction accounts are imported, and NULL means unknown, so both stay
candidates and every pre-existing row behaves exactly as before.

ATM withdrawals deliberately stay categorised as spend rather than transfers.
Treating them as transfers is only correct if every cash purchase is logged;
with partial logging it silently deletes the unlogged remainder from spend.
2026-07-26 14:38:47 +10:00

844 B

1TransferWise IDDateDate TimeAmountCurrencyDescriptionPayment ReferenceRunning BalanceExchange FromExchange ToExchange RatePayer NamePayee NamePayee Account NumberMerchantCard Last Four DigitsCard Holder Full NameAttachmentNoteTotal feesExchange To AmountTransaction TypeTransaction Details Type
2CARD-295874751701-10-202501-10-2025 09:03:26.018-30.00AUDCard transaction of 76.00 AUD issued by Air India Limited Gurugram0.00Air India Limited Gurugram7824Siddharth Bose0.00DEBITCARD
3TRANSFER-173858193825-09-202525-09-2025 23:10:05.40630.09AUDTopped up account30.000.09CREDITMONEY_ADDED
4FEE-TRANSFER-173858193825-09-202525-09-2025 23:10:05.405-0.09AUDWise Charges for: TRANSFER-1738581938-0.090DEBITMONEY_ADDED