diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-09-29 10:58:52 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-09-29 10:58:52 +0700 |
| commit | c8295772706a8e27d4633706b357ade5c4a8bba8 (patch) | |
| tree | aa12aa91c4b9a79676c0cddc301f3934517d7ac0 /indoteknik_custom/models/purchase_order.py | |
| parent | 7f1d89998467de2b2519bc17dffb5f9c2723c230 (diff) | |
Update purchase_order.py and sale_order.py
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index ff07d32c..6b038e69 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -171,8 +171,7 @@ class PurchaseOrder(models.Model): sum_so_margin += sale_order_line.item_margin sales_price = sale_order_line.price_reduce_taxexcl * sale_order_line.product_uom_qty if sale_order_line.order_id.shipping_cost_covered == 'indoteknik': - sales_price -= round( - (sale_order_line.order_id.delivery_amt / sale_order_line.order_id.count_line_product), 2) + sales_price -= round((sale_order_line.order_id.delivery_amt / sale_order_line.order_id.count_line_product), 2) sum_sales_price += sales_price purchase_price = line.price_subtotal if line.order_id.delivery_amount > 0: |
