23.03.26
This commit is contained in:
@@ -1346,6 +1346,8 @@ class Line(metaclass=PoolMeta):
|
||||
if assay.type == state:
|
||||
for line in assay.lines:
|
||||
if line.element == element:
|
||||
if line.unit.symbol == 'g/t':
|
||||
return line.value / Decimal(1000)
|
||||
return line.value
|
||||
|
||||
def check_pricing(self):
|
||||
@@ -1366,7 +1368,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) * ((Decimal(100) / Decimal(grade)) * price) / Decimal(100)
|
||||
payable_price = t.payable_rule.compute_payable_quantity(grade) * price / Decimal(100)
|
||||
|
||||
t.manual_price = round(payable_price - penalty_price,2)
|
||||
t.currency = self.purchase.currency
|
||||
|
||||
Reference in New Issue
Block a user