22.03.26
This commit is contained in:
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user