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
This commit is contained in:
Cédric Krier
2025-09-17 13:23:09 +02:00
parent 9e725456fd
commit 076fcbcc0a
+1 -1
View File
@@ -499,7 +499,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]