diff options
| author | Stephan Christianus <stephanchrst@gmail.com> | 2022-10-24 10:08:41 +0000 |
|---|---|---|
| committer | Stephan Christianus <stephanchrst@gmail.com> | 2022-10-24 10:08:41 +0000 |
| commit | e80ad39476fcd60583e166032fe526b77a73323a (patch) | |
| tree | 310eaa29f5982767e6685c2ca263f24fba72645e /indoteknik_custom/models/purchase_order.py | |
| parent | 1934b5ca55840deb2a4369ef6ab0affd86e2ba8f (diff) | |
| parent | da1ba5223456e4c39d11a5af67968dda6d569c6b (diff) | |
Merged in development (pull request #10)
Development
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: |
