From bc8151c822a023e8a299acb13436e9c586b5aaa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 3 Jun 2026 15:06:05 +0200 Subject: [PATCH] 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. --- modules/web_shop_shopify/web.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/web_shop_shopify/web.py b/modules/web_shop_shopify/web.py index 92253638ff..064e4c541f 100644 --- a/modules/web_shop_shopify/web.py +++ b/modules/web_shop_shopify/web.py @@ -880,8 +880,7 @@ class Shop(metaclass=PoolMeta): 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)