23.03.26
This commit is contained in:
@@ -122,11 +122,9 @@ class Component(metaclass=PoolMeta):
|
||||
if self.line.del_period:
|
||||
pm = PM(self.line.del_period)
|
||||
if pm:
|
||||
logger.info("DELMONTHDATE:%s",pm.beg_date)
|
||||
return pm.beg_date
|
||||
|
||||
def getEstimatedTriggerPurchase(self,t):
|
||||
logger.info("GETTRIGGER:%s",t)
|
||||
if t == 'delmonth':
|
||||
return self.getDelMonthDatePurchase()
|
||||
PE = Pool().get('pricing.estimated')
|
||||
@@ -187,7 +185,6 @@ class Summary(ModelSQL,ModelView):
|
||||
if pc.price_index:
|
||||
PI = Pool().get('price.price')
|
||||
pi = PI(pc.price_index)
|
||||
logger.info("PURCHASECURRENCY:%s",self.line.purchase.currency)
|
||||
return pi.get_price(Date.today(),self.line.unit,self.line.purchase.currency,True)
|
||||
|
||||
@classmethod
|
||||
@@ -1357,7 +1354,7 @@ class Line(metaclass=PoolMeta):
|
||||
for t in self.terms:
|
||||
grade = self.get_element_grade(self.assay_state,t.element)
|
||||
logger.info("GRADE:%s",grade)
|
||||
if grade:
|
||||
if grade != None:
|
||||
payable_price = Decimal(0)
|
||||
penalty_price = Decimal(0)
|
||||
if t.penalty_rules:
|
||||
|
||||
Reference in New Issue
Block a user