From b41fe0fa54781f8b1e1227d3ef3669768075cecc Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Wed, 11 Feb 2026 07:43:25 +0100 Subject: [PATCH] 11.02.26 --- modules/purchase_trade/party.py | 4 ++-- modules/purchase_trade/stock.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/purchase_trade/party.py b/modules/purchase_trade/party.py index f24d28a..a1d1a9f 100755 --- a/modules/purchase_trade/party.py +++ b/modules/purchase_trade/party.py @@ -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: diff --git a/modules/purchase_trade/stock.py b/modules/purchase_trade/stock.py index 862d3b7..95a17a4 100755 --- a/modules/purchase_trade/stock.py +++ b/modules/purchase_trade/stock.py @@ -32,12 +32,12 @@ logger = logging.getLogger(__name__) class Location(metaclass=PoolMeta): __name__ = 'stock.location' - def get_places(self,name): + def get_places(self): t = Table('places') cursor = Transaction().connection.cursor() cursor.execute(*t.select( t.PLACE_KEY, - where=t.PLACE_NAME.ilike(f'%{name}%') + where=t.PLACE_NAME.ilike(f'%{self.name}%') )) rows = cursor.fetchall() if rows: