23.03.26
This commit is contained in:
@@ -1164,7 +1164,7 @@ class Line(metaclass=PoolMeta):
|
|||||||
price = Decimal(0)
|
price = Decimal(0)
|
||||||
if self.terms:
|
if self.terms:
|
||||||
for t in self.terms:
|
for t in self.terms:
|
||||||
price += t.manual_price
|
price += (t.manual_price if t.manual_price else Decimal(0))
|
||||||
else:
|
else:
|
||||||
for pc in self.price_components:
|
for pc in self.price_components:
|
||||||
PP = Pool().get('purchase.pricing.summary')
|
PP = Pool().get('purchase.pricing.summary')
|
||||||
@@ -1466,7 +1466,6 @@ class Line(metaclass=PoolMeta):
|
|||||||
p.price_component = pc.id
|
p.price_component = pc.id
|
||||||
p.quantity = round(Decimal(pc.quota),5)
|
p.quantity = round(Decimal(pc.quota),5)
|
||||||
price = round(Decimal(self.getnearprice(pl,d,'price')),4)
|
price = round(Decimal(self.getnearprice(pl,d,'price')),4)
|
||||||
logger.info("PL:%s",pl)
|
|
||||||
logger.info("PRICE:%s",price)
|
logger.info("PRICE:%s",price)
|
||||||
p.settl_price = price
|
p.settl_price = price
|
||||||
if price > 0:
|
if price > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user