diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-05 11:59:27 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-05 11:59:27 +0700 |
| commit | 32c2899ccd24071adcee829b569b9d29bb3a4fe9 (patch) | |
| tree | 6d6f1688fb60af293dac359a1b66d86ad2bcb8c1 | |
| parent | add53c91a49d43b20438b14cf48aaececbabf2cd (diff) | |
<miqdad> fix round
| -rw-r--r-- | indoteknik_custom/models/sale_order_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order_line.py b/indoteknik_custom/models/sale_order_line.py index da66465e..291940ed 100644 --- a/indoteknik_custom/models/sale_order_line.py +++ b/indoteknik_custom/models/sale_order_line.py @@ -155,7 +155,7 @@ class SaleOrderLine(models.Model): margin_before = sales_price - purchase_price if sales_price > 0: - line.item_percent_margin_before = round((margin_before / sales_price), 4) * 100 + line.item_percent_margin_before = round((margin_before / sales_price), 2) * 100 else: line.item_percent_margin_before = 0 |
