diff --git a/modules/web_shop_shopify/account.py b/modules/web_shop_shopify/account.py index c86f44c309..5be78b3e9f 100644 --- a/modules/web_shop_shopify/account.py +++ b/modules/web_shop_shopify/account.py @@ -96,7 +96,7 @@ class Payment(IdentifierMixin, metaclass=PoolMeta): to_save = [] for payment in id2payments.values(): - if captured[payment] and payment.amount != captured[payment]: + if payment.amount != captured[payment]: payment.amount = captured[payment] to_save.append(payment) cls.proceed(to_save) diff --git a/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst b/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst index 909520aff4..f7e5ddca84 100644 --- a/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst +++ b/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst @@ -503,7 +503,7 @@ Run fetch order:: >>> payment.state 'processing' >>> payment.amount - Decimal('258.98') + Decimal('0') >>> assertEqual(sale.carrier, carrier) >>> sale.state 'quotation'