fix: re-recognize transactions when bank rule is edited (closes #809)

This commit is contained in:
Ahmed Bouhuolia
2026-02-11 23:15:20 +02:00
parent a1d0fc3f0a
commit 49c2777587
4 changed files with 27 additions and 3 deletions

View File

@@ -93,6 +93,10 @@ export class RecognizeTranasctionsService {
q.whereIn('id', rulesIds);
}
q.withGraphFetched('conditions');
// Order by the 'order' field to ensure higher priority rules (lower order values)
// are matched first.
q.orderBy('order', 'asc');
});
const bankRulesByAccountId = transformToMapBy(