diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2026-02-02 06:09:15 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2026-02-02 06:09:15 +0000 |
| commit | d8190f7d1b5fac83b0b67408f1da1e9c00b253f1 (patch) | |
| tree | 6153ca0ec0b0f0700b1d2e9a98fd985b105b83f0 | |
| parent | e191e8a5d50ea04793b18e15443dfdb6db3f0600 (diff) | |
| parent | fe3fb82fdd879c703d968cf09b09e6411e91100f (diff) | |
Merged in cashback_brand (pull request #486)
<hafid> fix margin po
| -rwxr-xr-x | indoteknik_custom/models/purchase_order_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index 603a4ca2..76dcc09e 100755 --- a/indoteknik_custom/models/purchase_order_line.py +++ b/indoteknik_custom/models/purchase_order_line.py @@ -419,7 +419,7 @@ class PurchaseOrderLine(models.Model): if not so_order.date_order or so_order.date_order < start_date: continue - cashback_percent = brand.cashback_percent or 0.0 + cashback_percent = product.x_manufacture.cashback_percent or 0.0 if cashback_percent <= 0: continue sales_price = so_line.price_reduce_taxexcl * match.qty_so |
