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_line.py | |
| parent | 1934b5ca55840deb2a4369ef6ab0affd86e2ba8f (diff) | |
| parent | da1ba5223456e4c39d11a5af67968dda6d569c6b (diff) | |
Merged in development (pull request #10)
Development
Diffstat (limited to 'indoteknik_custom/models/purchase_order_line.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order_line.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index 85818394..60e4c8b0 100755 --- a/indoteknik_custom/models/purchase_order_line.py +++ b/indoteknik_custom/models/purchase_order_line.py @@ -62,6 +62,8 @@ class PurchaseOrderLine(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: |
