NEW Add payment delegation amount on customer invoices#38026
Open
mapiolca wants to merge 1 commit intoDolibarr:developfrom
Open
NEW Add payment delegation amount on customer invoices#38026mapiolca wants to merge 1 commit intoDolibarr:developfrom
mapiolca wants to merge 1 commit intoDolibarr:developfrom
Conversation
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|New Add payment delegation amount on customer invoices
This PR adds the
amount_payment_delegationfield to customer invoices.Purpose of the field
In construction contracts, especially with public works contracts or large private contractors, part of the invoice amount may be paid directly by the customer to a third party.
This is commonly known as payment delegation.
The new
amount_payment_delegationfield stores the monetary amount of the invoice that is subject to payment delegation.Meaning of the field
amount_payment_delegationis the amount of the invoice that is delegated for direct payment to a third party.It is stored as an amount in the invoice currency.
It does not mean that the invoice amount is reduced from an accounting or contractual point of view. It identifies the part of the invoice that will not be paid directly to the invoice issuer because it is paid to another party.
Why this field belongs to
llx_facturePayment delegation is applied at invoice level.
It affects the amount directly payable to the invoice issuer, but it is not linked to a specific invoice line, product or service.
Therefore, it belongs to the invoice header table
llx_facture.Example use case
A customer invoice is issued for a construction contract.
Example values:
10000.002000.00000000Stored value:
The invoice still represents
10000.00of works, but2000.00is identified as an amount paid directly to a third party instead of being paid to the invoice issuer.Future usage
This field will allow future improvements for:
This PR only adds the database field and does not change the invoice calculation logic.
Database change