Skip to content

Conversation

@hatr-odoo
Copy link
Contributor

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

@robodoo
Copy link
Contributor

robodoo commented Oct 28, 2025

Pull request status dashboard

@hatr-odoo hatr-odoo marked this pull request as ready for review October 31, 2025 04:45
@hatr-odoo hatr-odoo requested review from a team and mairasalazar and removed request for a team October 31, 2025 04:46
@C3POdoo C3POdoo requested a review from a team October 31, 2025 04:47
Copy link
Contributor

@mairasalazar mairasalazar left a 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 :)

@hatr-odoo hatr-odoo force-pushed the 18.0-l10n_tw_edi_ecpay-fix-dp-invoice-json-hatr branch from 3b51aa2 to 81fcbba Compare November 3, 2025 10:36
Copy link
Contributor

@mairasalazar mairasalazar left a 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 :)

@hatr-odoo hatr-odoo force-pushed the 18.0-l10n_tw_edi_ecpay-fix-dp-invoice-json-hatr branch from 81fcbba to 6b361dc Compare November 4, 2025 09:38
@hatr-odoo
Copy link
Contributor Author

@mairasalazar thanks for the review. Could you plz request the final reviewer to this PR?

@kidoodoo
Copy link

kidoodoo commented Nov 5, 2025

@hatr-odoo
Hello! Maira already requested for a final reviewer in the channel. Should be reviewed soon 👍

…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
@hatr-odoo hatr-odoo force-pushed the 18.0-l10n_tw_edi_ecpay-fix-dp-invoice-json-hatr branch from 6b361dc to 01ae114 Compare November 5, 2025 12:07
@hatr-odoo hatr-odoo requested a review from epictete November 5, 2025 12:11
Copy link
Contributor

@epictete epictete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo pushed a commit that referenced this pull request Nov 5, 2025
…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>
@robodoo robodoo closed this Nov 5, 2025
@fw-bot fw-bot deleted the 18.0-l10n_tw_edi_ecpay-fix-dp-invoice-json-hatr branch November 12, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants