Update Shopify payment even if the captured amount is zero
Closes #14181
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user