Use current total price when creating sale from Shopify order

At the creation the order may already have the total price modified by refund
etc.

Closes #14234
(grafted from 1f2cf9e448a166ef67864916031b703ffbf8befa)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2025-09-17 13:23:09 +02:00
parent 2685b1ed58
commit cc0222be5e
+1 -1
View File
@@ -503,7 +503,7 @@ class Shop(metaclass=PoolMeta):
Sale.save(sales)
for sale, order in zip(sales, orders):
sale.shopify_tax_adjustment = (
Decimal(order.total_price) - sale.total_amount)
Decimal(order.current_total_price) - sale.total_amount)
Sale.save(sales)
to_quote = [
s for s in sales if s.party != s.web_shop.guest_party]