Update Shopify payment even if the captured amount is zero

Closes #14181
This commit is contained in:
Cédric Krier
2025-08-21 17:49:46 +02:00
parent 2cc6581609
commit c169d22f96
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
@@ -503,7 +503,7 @@ Run fetch order::
>>> payment.state
'processing'
>>> payment.amount
Decimal('258.98')
Decimal('0')
>>> assertEqual(sale.carrier, carrier)
>>> sale.state
'quotation'