[ADD] account_move_last_payment display last date and payment method on invoice
Some checks failed
tests / test (pull_request) Failing after 3m17s
pre-commit / pre-commit (pull_request) Failing after 1m58s

This commit is contained in:
2026-10-22 11:26:37 +02:00
parent 626f5638c7
commit c704459de7
9 changed files with 448 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# Account Move Last Payment
Expose on `account.move` the date and method of the most recent real payment reconciled
with an invoice, as two stored, exportable fields shown in the invoice list view.
## Features
- `last_payment_date` (Date): date of the most recent payment reconciled with the
invoice — partial payments included.
- `last_payment_method` (Char): method of that most recent payment: the payment method
line name for explicit payments, "Bank Transfer" when the invoice was settled through
a direct bank statement line reconciliation.
- Covers both Community reconciliation paths: explicit payment ("Register Payment"
wizard) and direct bank statement reconciliation. Manual reconciliations without
payment or statement line are ignored, as are exchange difference moves.
- Recomputes automatically on reconcile / unreconcile and when a payment or statement
line date changes.
- Both fields are stored and displayed as optional columns of the invoice list view, so
they are exportable.
## Installation
Depends on the `account` module only.
## Credits
### Contributors
- Elabore - Assisted by AI
### Maintainer
- Elabore