ci / lint-test (push) Successful in 41s
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.
1.3 KiB
1.3 KiB
| 1 | TransferWise ID | Date | Date Time | Amount | Currency | Description | Payment Reference | Running Balance | Exchange From | Exchange To | Exchange Rate | Payer Name | Payee Name | Payee Account Number | Merchant | Card Last Four Digits | Card Holder Full Name | Attachment | Note | Total fees | Exchange To Amount | Transaction Type | Transaction Details Type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | CARD-3299985499 | 02-01-2026 | 02-01-2026 23:06:34.804 | -100.00 | EUR | Card transaction of 104.51 EUR issued by Sp Nord Studios FORDINGBRIDGE | 0.00 | Sp Nord Studios FORDINGBRIDGE | 7824 | Siddharth Bose | 0.00 | DEBIT | CARD | ||||||||||
| 3 | BALANCE-4340683172 | 19-11-2025 | 19-11-2025 02:51:28.940 | 100.00 | EUR | Converted 116.11 USD to 100.00 EUR | 100.00 | USD | EUR | 0.86367 | 0.00 | 100.00 | CREDIT | CONVERSION | |||||||||
| 4 | CARD-3127641729 | 17-11-2025 | 17-11-2025 02:39:26.289 | -83.85 | EUR | Card transaction of 299.70 EUR issued by Bkg*Booking.com Hotel (888)850-3958 | 0.00 | Bkg*Booking.com Hotel (888)850-3958 | 7824 | Siddharth Bose | 0.00 | DEBIT | CARD | ||||||||||
| 5 | CARD-3117227825 | 14-11-2025 | 14-11-2025 06:17:54.371 | -266.15 | EUR | Card transaction of 266.15 EUR issued by Bkg*Hotel At Booking.c (888)850-3958 | 83.85 | Bkg*Hotel At Booking.c (888)850-3958 | 7824 | Siddharth Bose | 0.00 | DEBIT | CARD | ||||||||||
| 6 | BALANCE-4317152848 | 14-11-2025 | 14-11-2025 06:16:50.965 | 350.00 | EUR | Converted 408.37 USD to 350.00 EUR | 350.00 | USD | EUR | 0.85955 | 0.00 | 350.00 | CREDIT | CONVERSION |