22.03.26
This commit is contained in:
@@ -1335,7 +1335,7 @@ class Line(metaclass=PoolMeta):
|
||||
if self.terms and self.update_pricing:
|
||||
Concentrate = Pool().get('concentrate.term')
|
||||
for t in self.terms:
|
||||
if not t.component:
|
||||
if t.component:
|
||||
grade = self.get_element_grade(self.assay_state,t.element)
|
||||
logger.info("GRADE:%s",grade)
|
||||
if grade:
|
||||
@@ -1346,7 +1346,7 @@ class Line(metaclass=PoolMeta):
|
||||
logger.info("PRICE:%s",price)
|
||||
t.manual_price = t.payable_rule.compute_payable_quantity(grade) * price / Decimal(100) - t.penalty_rules.compute_penalty(grade,self.quantity)
|
||||
Concentrate.save([t])
|
||||
|
||||
|
||||
if self.price_components:
|
||||
for pc in self.price_components:
|
||||
if not pc.auto:
|
||||
|
||||
Reference in New Issue
Block a user