Repository navigation
feat(bank-payments): standard multi-format statement import - #514
Conversation
#511 styled that toolbar from the core stylesheet and #514 rebuilt it around the second filter with its own rules inside the addon's view. Both arrived within a day of each other; the merge kept #514's, which leaves .matches-page- action and .matches-filterbar in resources/css/app.css with nothing referencing them - measured by grepping every view and template. They are removed, and the addon's presentation stays with the addon, which is where a module's styles belong.
|
Merged as What I checked, since a statement row becomes money:
One finding I did not fix, because it changes import semantics and is yours to decide. The dedup key is (bank, date, amount, currency, reference), so two genuinely different transfers that agree on all five are collapsed: the second is counted in The fix I would write is counting rather than matching: for each (date, amount, currency, reference) seen in the file, treat a row as a duplicate only when the number of existing transactions already covers the number of rows the statement lists. Say the word and I will send it with a fixture that has the same transfer twice. One commit on top, Migrations ran up and the four module migrations applied cleanly; addon tests 62 passed; full suite on the merge result 5,679 parallel and 112 serial, no failures. |
|
Follow-up: #516 implements the count-aware deduplication you proposed. It counts stored rows and their position in the statement, so two identical genuine payments are imported while a repeated import stays idempotent. Fixture and tests cover two identical rows, reimport, and one-existing-plus-two-in-file. The migration |
Summary
BankPayments now exposes one Bank / parser selector. The first option is Standard (auto), which detects and imports CSV, MT940 or ISO 20022 camt.053.001.08. Bank-specific parsers remain for banks with unusual formats.
Adding another bank is an adapter/parser extension; the import, duplicate detection, verification and matching pipeline stays shared.
Included
raw_payload.How a new bank is added
Safety
Verification