diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-24 14:51:37 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-24 14:51:37 +0700 |
| commit | 646f9557c101bd6b8ed81fc46130e9761957b5c1 (patch) | |
| tree | 6be2518f06ff059bc4927d852b5d0cd6b5627f80 /indoteknik_custom/models/purchase_order.py | |
| parent | 84cbe80ad4f6f2bcb99386d92be7cc210d481dea (diff) | |
add commision in sale order
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 6023afdd..a816038e 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -184,6 +184,8 @@ class PurchaseOrder(models.Model): 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 -= sale_order_line.delivery_amt_line + if sale_order_line.order_id.fee_third_party > 0: + sales_price -= sale_order_line.fee_third_party_line sum_sales_price += sales_price purchase_price = line.price_subtotal if line.order_id.delivery_amount > 0: |
