This commit is contained in:
yumoqing 2025-12-17 08:02:02 +08:00
parent 9ec0754cae
commit 70c83bafc7

View File

@ -54,16 +54,16 @@ class ConsumeBiz(PFBiz):
ao = Accounting(self)
await ao.do_accounting(sor)
async def get_orgid_by_trans_role(self, sor, leg, role):
if role == 'owner':
return '0'
if role == 'customer':
return self.customerid
async def get_orgid_by_trans_role(self, sor, leg, role):
if role == 'owner':
return '0'
if role == 'customer':
return self.customerid
if role == 'reseller':
return self.resellerid
if role is None or role == 'null':
return None
e = Exception(f'unknown role({role})')
exception(f'Exception:{e}')
raise e
if role is None or role == 'null':
return None
e = Exception(f'unknown role({role})')
exception(f'Exception:{e}')
raise e