[19.0][ADD] account_supplier_early_payment_discount: early payment discount of the supplier settled by a credit note - #11
Merged
alan196 merged 1 commit intoSep 17, 2026
Conversation
Available types: 'task#', 't#' (case insensitive) Examples:
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 19.0 #11 +/- ##
=======================================
Coverage ? 91.25%
=======================================
Files ? 78
Lines ? 2035
Branches ? 230
=======================================
Hits ? 1857
Misses ? 89
Partials ? 89 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alan196
force-pushed
the
19.0-add-account_supplier_early_payment_discount
branch
2 times, most recently
from
September 15, 2026 22:52
6275d30 to
cb336d1
Compare
… of the supplier settled by a credit note Up to two chained discounts on the supplier, days counted from the invoice or from the receipt, the last day to pay and the discount on the vendor bill, an internal credit note reconciled with the bill when the discount is taken, and a to-do for the follow-up team until the credit note of the supplier arrives. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U2vJWgfX8LRMaFnszPEhC5
alan196
force-pushed
the
19.0-add-account_supplier_early_payment_discount
branch
from
September 17, 2026 17:01
cb336d1 to
e726700
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New module
account_supplier_early_payment_discount.Suppliers often grant a discount when their bills are paid within a few days, and many of them settle it with a credit note of their own that reaches the company weeks later, if ever. This module keeps that discount on the supplier and on its bills, takes it when the bill is paid in time, and follows up the credit note the supplier owes.
mail_activity_team), made of the users of the new group Follow Up Early Payment Credit Notes, until the credit note of the supplier arrives. Accounting managers have the group by default.account.move._early_payment_pay_date()gives the business day the discount is paid on (the business day before when the date falls on a weekend or a holiday of the working calendar of the company). The payment order integration is a separate module,account_payment_order_early_payment_discount, proposed in OCA/bank-payment.Why not the native early payment discount of the payment terms? It knows a single discount counted from the invoice date and books it as a write-off when the payment is registered. Here there are two chained discounts, a base on the receipt date, a credit note because the supplier issues one, and someone chasing it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01U2vJWgfX8LRMaFnszPEhC5