This commit is contained in:
2026-03-22 19:02:53 +01:00
parent 0b9c85f5ad
commit 2fc6fbbd76

View File

@@ -1342,7 +1342,7 @@ class Line(metaclass=PoolMeta):
cp = [c for c in self.price_summary if c.price_component == t.component]
if cp:
cp = cp[0]
price = cp.get_last_price()
price = Decimal(cp.get_last_price())
logger.info("PRICE:%s",price)
t.manual_price = t.payable_rule.compute_payable_quantity(grade) * price / Decimal(100) - t.penalty_rules.compute_penalty(grade,self.quantity)
Concentrate.save([t])