odoo/odoo#233359
Created by Accounting, Harsh Trivedi (hatr)
Merged
at de7cd91a02ebd35892ddd584734d698567cce8d8
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 20s)
- label
- odoo-dev:18.0-l10n_tw_edi_ecpay-fix-dp-invoice-json-hatr
- head
- 01ae114a5aa73d4370e9b941d77ee738717731e9
- merged
- 3 weeks ago by Accounting, John Laterre (jol)
| odoo/odoo | |
|---|---|
| 18.0 | #233359 |
| saas-18.2 | #234604 |
| saas-18.3 | #234631 |
| saas-18.4 | #234650 |
| 19.0 | #234661 |
| master | #234665 |
[FIX] l10n_tw_edi_ecpay: correct JSON data handling for downpayment invoices
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