diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-02 09:10:37 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-02 09:10:37 +0700 |
| commit | 570555a44d521ebc593490c35e5dfdb30790c201 (patch) | |
| tree | d80e42abb7107c39fb0a07617ed3bda42e3bf042 | |
| parent | 04e6162ba44784eb60b1f7122856f5f1a578d16f (diff) | |
<miqdad> fix margin calculation formula
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 096ffe3a..07e9a97e 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -1693,6 +1693,7 @@ class SaleOrder(models.Model): total_before_margin = sum(line.item_before_margin for line in order.order_line if line.product_id) order.total_before_margin = total_before_margin + # Perhitungan Lama # def _compute_total_percent_margin(self): # for order in self: # if order.amount_untaxed == 0: |
