details: https://code.tryton.org/tryton/commit/897d48ad461b
branch: 7.8
user: Cédric Krier <[email protected]>
date: Wed Jun 03 15:06:05 2026 +0200
description:
Process Shopify sale only if the authorized payment amount is greater
than the amount to pay
The correction of #14816 was wrong and the amount to pay should be
modified if
there is a global refund.
(grafted from dfbbbe26ad8eb25fd6dc1ad0a68cb7cec8307aae)
diffstat:
modules/web_shop_shopify/web.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r b8806f5e1f0e -r 897d48ad461b modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Wed Jul 08 09:19:35 2026 +0200
+++ b/modules/web_shop_shopify/web.py Wed Jun 03 15:06:05 2026 +0200
@@ -823,8 +823,7 @@
for sale in to_update:
if sale.party == sale.web_shop.guest_party:
continue
- if (sale.payment_amount_authorized >= sale.amount_to_pay
- or sale.state in {'processing', 'done'}):
+ if sale.payment_amount_authorized >= sale.amount_to_pay:
to_process.append(sale)
else:
to_quote.append(sale)