main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 2fc6fbbd76 - Show all commits

View File

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