Do not reset to quotation Shopify order already processed

After a refund the authorized payment amount may be lower than the amount to
pay but the sale should still stay in processing or done state.

Closes #14816
(grafted from 9df991a256f872f8d9623b675732b1480534e553)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-05-05 00:11:08 +02:00
parent dc2aaeec41
commit 3ea873f887
+2 -1
View File
@@ -880,7 +880,8 @@ 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:
if (sale.payment_amount_authorized >= sale.amount_to_pay
or sale.state in {'processing', 'done'}):
to_process.append(sale)
else:
to_quote.append(sale)