main #7

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

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