This commit is contained in:
2026-03-23 10:16:56 +01:00
parent b5d771341d
commit 80deac62f8

View File

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