Skip to content

fix(bank-payments): align match filters, surface learned payers, dismiss unrelated transfers - #511

Merged
Panelica merged 2 commits into
Panelica:mainfrom
hedon77:fix/bank-matches-filter-layout
Nov 29, 2026
Merged

Panelica merged 2 commits into
Panelica:mainfrom
hedon77:fix/bank-matches-filter-layout

Conversation

@hedon77

@hedon77 hedon77 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Moves "Learned payers" to the page header with a user-check icon so it is visible.
  • Gives the status filter its own right-aligned row and aligns the label, select and button.
  • Fixes the 500 when a single matching status is selected: whereIn() was receiving a string instead of an array.
  • Adds a confirmed Remove action on each matching-queue transfer that is not related to a service payment.
  • The action marks the transaction and its candidate matches as rejected, keeps the audit record, and hides it from the queue. Booked transfers cannot be removed.
  • Adds EN/PL/DE/TR/ZH strings for the new action.

Verification

  • BankAssignmentTest — 7 passed / 42 assertions
  • npm run build passes.
  • No database changes.

@hedon77 hedon77 changed the title fix(bank-payments): align match filters and surface learned payers fix(bank-payments): align match filters, surface learned payers, dismiss unrelated transfers Nov 28, 2026
@Panelica
Panelica merged commit 969cc3c into Panelica:main Nov 29, 2026
1 check passed
Panelica pushed a commit that referenced this pull request Nov 29, 2026
#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.
@Panelica

Copy link
Copy Markdown
Owner

Merged as 969cc3cb. The 500 was ours, from #502, and your diagnosis was exact — measured on main with your test: TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in the query builder, because one chosen status arrives as a string and whereIn() wants a list. Three of your four cases were red there; the fourth, the already-booked transfer, is a guard and passes either way.

The Remove action is the right shape: it marks the transfer and its candidates rejected with the reason recorded, refuses on a transfer whose import is already booked, and touches no invoice or payment. One thing worth saying out loud, because it is not in the UI: a dismissed transfer cannot come back, since rematch refuses on rejected as well. That matches how reject on a single match already behaves, so I left it, but if an operator dismisses by mistake today the only way back is SQL. Say the word and I will add the one-line path back.

On the three new language files. lang/de, lang/tr and lang/zh did not exist for this addon before; they now hold these four strings each, and the other 221 keys fall back to English per key, which Laravel does correctly. So the five-language rule is met for what you added, and nothing is broken — but a German operator now sees "Entfernen" in a page that is otherwise English. The addon ships 225 keys in en and pl (measured), and completing de, tr and zh for all of them is on my list rather than yours.

Full suite on the merge result, with #513, #510 and #514 on top of it: 5,679 passed in the parallel pass and 112 in the serial one, no failures.

@hedon77

hedon77 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up: #516 adds the missing path back. Any rejected transfer with no imported payment can now be restored from the queue (filter Rejected → Restore), and the matcher runs again. Covered by tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants