22.03.26
This commit is contained in:
@@ -872,7 +872,7 @@ class ConcentrateTerm(ModelSQL, ModelView):
|
||||
|
||||
manual_price = fields.Numeric(
|
||||
"Price",
|
||||
digits=(16, 6)
|
||||
digits=(16, 2)
|
||||
)
|
||||
|
||||
currency = fields.Many2One('currency.currency',"Curr")
|
||||
@@ -1344,7 +1344,7 @@ class Line(metaclass=PoolMeta):
|
||||
cp = cp[0]
|
||||
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)
|
||||
t.manual_price = round(t.payable_rule.compute_payable_quantity(grade) * price / Decimal(100) - t.penalty_rules.compute_penalty(grade),2)
|
||||
Concentrate.save([t])
|
||||
|
||||
if self.price_components:
|
||||
|
||||
Reference in New Issue
Block a user