This commit is contained in:
2026-02-11 07:43:25 +01:00
parent 1326669f01
commit b41fe0fa54
2 changed files with 4 additions and 4 deletions

View File

@@ -76,12 +76,12 @@ class Party(metaclass=PoolMeta):
if sp:
return round(((sp[0].cost / Decimal(100)) * Decimal(2.2046)),4)
def get_alf(self,name):
def get_alf(self):
t = Table('alf')
cursor = Transaction().connection.cursor()
cursor.execute(*t.select(
t.ALF_CODE,
where=t.SHORT_NAME.ilike(f'%{name}%')
where=t.SHORT_NAME.ilike(f'%{self.name}%')
))
rows = cursor.fetchall()
if rows: