Commit 8a9b666
committed
[FIX] l10n_latam_check_ux: force debited state when outstanding account is not reconcilable
When an own check's outstanding account (payment_method_line_id.payment_account_id)
is not marked as reconcilable, the base _compute_issue_state heuristic fails:
it checks whether the matched debit lines belong to accounts of type
liability_payable/asset_receivable to distinguish voided vs debited, but
non-reconcilable accounts are never matched that way, causing the state to
fall back to voided incorrectly.
Fix: override _compute_issue_state in the UX module to inspect the
outstanding_line_id.account_id.reconcile flag directly. If the account is
non-reconcilable and the line is fully settled (amount_residual == 0),
the check must be debited, not voided.1 parent 952bf84 commit 8a9b666
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
0 commit comments