This commit is contained in:
2026-03-23 14:13:09 +01:00
parent 15f9f4b724
commit 0e7cabdc00

View File

@@ -1366,7 +1366,7 @@ class Line(metaclass=PoolMeta):
price = Decimal(cp.get_last_price())
logger.info("PRICE:%s",price)
if t.payable_rule:
payable_price = t.payable_rule.compute_payable_quantity(grade) * price / Decimal(100)
payable_price = t.payable_rule.compute_payable_quantity(grade) * ((Decimal(100) / Decimal(grade)) * price) / Decimal(100)
t.manual_price = round(payable_price - penalty_price,2)
t.currency = self.purchase.currency