diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-17 15:38:54 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-17 15:38:54 +0700 |
| commit | 3d3e6660b991e5170c6629b86790630636b4c9f9 (patch) | |
| tree | b1e60e55684d90c56f87e57e0bc430963ec91037 | |
| parent | 839609fda8050e4a97d67a607a6999b20d9a4b0a (diff) | |
margin po
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 99c71e84..a1c9f134 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -498,7 +498,7 @@ class PurchaseOrder(models.Model): ('order_id', '=', line.sale_id.id) ], limit=1, order='price_reduce_taxexcl') - sum_so_margin = sale_order_line.item_margin * po_line.product_qty + sum_so_margin += sale_order_line.item_margin # sales_price = sale_order_line.price_reduce_taxexcl * sale_order_line.product_uom_qty sales_price = sale_order_line.price_reduce_taxexcl * po_line.product_qty if sale_order_line.order_id.shipping_cost_covered == 'indoteknik': |
