diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-01 09:23:06 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-01 09:23:06 +0700 |
| commit | 1125688c0ce2708ef50a252c0aa0e31a1b0cea25 (patch) | |
| tree | 61b788e530edef4dc30cc33e92033bd833579ada | |
| parent | 1e40f3b647d6825779503858bb2ed2d0f8a4b184 (diff) | |
Update sale_order.py
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
