Repository navigation
feat(bank-payments): manually assign payments and learn payers - #509
Conversation
Show match confidence as a percentage, lower the candidate threshold so an amount and payer match reaches review, and add a two-step manual assignment flow. Successful manual bookings remember the payer for future matching; learned mappings can be removed. Add rematch controls and a command for existing transactions.
|
Merged as Measured on What I read line by line, since this is money:
One defect I found and fixed on top,
The limit is what is left of the transfer, so splitting still works: the importer sums the imports already booked from that transaction, excluding this match, and refuses when the total would pass the transfer's own amount; the refusal is recorded as a blocked import like every other guard. Your assignment screen says the same while the amount is being chosen, so the operator is not told only after approving. And one thing your migration exposed in my own code, fixed in Noted, not changed: the assignment screen caps the amount at the invoice balance, so the overpayment the approval form allows is not available there. That reads like a deliberate "how much of this transfer goes to this invoice", and the capability still exists at approval, so I left it. Full suite on the merge result: 5,646 parallel, 112 serial, no failures. Migration checked up, down and up again on its own path. Thank you β the rematch command and the payers page with a remove button are the parts an operator will actually live in. |
Summary
pnlcs:bank-payments:rematchVerification
vendor/bin/pest --configuration=phpunit.testing.xml tests/Feature/BankPaymentsbank_payer_profiles