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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user