From 1125688c0ce2708ef50a252c0aa0e31a1b0cea25 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Sat, 1 Oct 2022 09:23:06 +0700 Subject: Update sale_order.py --- indoteknik_custom/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index fda76ebb..5933e1ae 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -121,7 +121,7 @@ class SaleOrder(models.Model): total_margin += line.item_margin sales_price = line.price_reduce_taxexcl * line.product_uom_qty if line.order_id.shipping_cost_covered == 'indoteknik': - sales_price -= round((line.order_id.delivery_amt / line.order_id.count_line_product), 2) + sales_price -= line.delivery_amt_line sum_sales_price += sales_price order.total_margin = total_margin if order.amount_untaxed > 0: -- cgit v1.2.3