-
Notifications
You must be signed in to change notification settings - Fork 30.5k
[FIX] l10n_tw_edi_ecpay: correct JSON data handling for downpayment invoices #233359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] l10n_tw_edi_ecpay: correct JSON data handling for downpayment invoices #233359
Conversation
mairasalazar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Just a small comment :)
3b51aa2 to
81fcbba
Compare
mairasalazar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes! I left some minor nitpicking comments, but non-blocking, so I'll send it to the final reviewer :)
81fcbba to
6b361dc
Compare
|
@mairasalazar thanks for the review. Could you plz request the final reviewer to this PR? |
|
@hatr-odoo |
…nvoices When an invoice is created from a sale order with a downpayment, the invoice line for the downpayment typically has a negative quantity and a positive unit price. However, ECPay does not accept negative quantities, and this also leads to incorrect price values being sent in the JSON payload. To address this, when an invoice line has a negative quantity, it is inverted to ensure the data sent to ECPay is valid and consistent. task-5211264
6b361dc to
01ae114
Compare
epictete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robodoo r+
…nvoices When an invoice is created from a sale order with a downpayment, the invoice line for the downpayment typically has a negative quantity and a positive unit price. However, ECPay does not accept negative quantities, and this also leads to incorrect price values being sent in the JSON payload. To address this, when an invoice line has a negative quantity, it is inverted to ensure the data sent to ECPay is valid and consistent. task-5211264 closes #233359 Signed-off-by: John Laterre (jol) <jol@odoo.com>

When an invoice is created from a sale order with a downpayment, the invoice line for the downpayment typically has a negative quantity and a positive unit price. However, ECPay does not accept negative quantities, and this also leads to incorrect price values being sent in the JSON payload.
To address this, when an invoice line has a negative quantity, it is inverted to ensure the data sent to ECPay is valid and consistent.
task-5211264