summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHafidBuroiroh <hafidburoiroh09@gmail.com>2026-02-02 13:08:50 +0700
committerHafidBuroiroh <hafidburoiroh09@gmail.com>2026-02-02 13:08:50 +0700
commitfe3fb82fdd879c703d968cf09b09e6411e91100f (patch)
tree1636d955e85158b9d691e33d092ed812cbb69c3d
parentd43b0c4621421fcfb1afe4724e13d2604570e1e6 (diff)
<hafid> fix margin po
-rwxr-xr-xindoteknik_custom/models/purchase_order_line.py2
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