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. (grafted from dfbbbe26ad8eb25fd6dc1ad0a68cb7cec8307aae) --HG-- branch : 8.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user