summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorStephan Christianus <stephanchrst@gmail.com>2022-10-24 10:08:41 +0000
committerStephan Christianus <stephanchrst@gmail.com>2022-10-24 10:08:41 +0000
commite80ad39476fcd60583e166032fe526b77a73323a (patch)
tree310eaa29f5982767e6685c2ca263f24fba72645e /indoteknik_custom/models/purchase_order.py
parent1934b5ca55840deb2a4369ef6ab0affd86e2ba8f (diff)
parentda1ba5223456e4c39d11a5af67968dda6d569c6b (diff)
Merged in development (pull request #10)
Development
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
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: