diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-09-04 15:53:40 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-09-04 15:53:40 +0700 |
| commit | ca5c12f1ee40ea3c34cafcc9fe73d3d79a6a5b98 (patch) | |
| tree | 4b41931ec3dda9ea7c64f19f38c7babd83b69ca1 /indoteknik_custom/models | |
| parent | 0222d907c08ef27dd8d3b303b55d70542cbeb788 (diff) | |
fix margin with fee third party
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 348ea4d3..81c3f5ed 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -744,7 +744,7 @@ class SaleOrder(models.Model): delivery_amt = order.delivery_amt else: delivery_amt = 0 - order.total_percent_margin = round((order.total_margin / (order.amount_untaxed-delivery_amt)) * 100, 2) + order.total_percent_margin = round((order.total_margin / (order.amount_untaxed-delivery_amt-order.fee_third_party)) * 100, 2) # order.total_percent_margin = round((order.total_margin / (order.amount_untaxed)) * 100, 2) @api.onchange('sales_tax_id') |
