Bug terms

This commit is contained in:
2026-05-17 20:33:20 +02:00
parent 74e6cd0bf2
commit 80b2fed34b
7 changed files with 18 additions and 3 deletions

View File

@@ -1691,8 +1691,9 @@ class Line(metaclass=PoolMeta):
def _get_basis_component_price(self):
price = Decimal(0)
if self.terms:
for t in self.terms:
terms = getattr(self, 'terms', None)
if terms:
for t in terms:
price += (t.manual_price if t.manual_price else Decimal(0))
else:
if not self.price_components: