This commit is contained in:
2026-03-22 19:11:12 +01:00
parent 234084f073
commit 140eae06a0

View File

@@ -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: