details:   https://code.tryton.org/tryton/commit/dfbbbe26ad8e
branch:    default
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.
diffstat:

 modules/web_shop_shopify/web.py |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 955b08fb104b -r dfbbbe26ad8e modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Tue Jul 07 17:16:02 2026 +0200
+++ b/modules/web_shop_shopify/web.py   Wed Jun 03 15:06:05 2026 +0200
@@ -880,8 +880,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)

Reply via email to