This commit is contained in:
yumoqing 2025-12-16 20:54:49 +08:00
parent ec250a1593
commit 6b3f2710a4
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,7 @@
debug(f'{params_kw=}')
dbname = get_module_dbname('accounting')
db = DBPools()
async with db.sqlorContext(dbname) as sor:
await openCustomerAccounts(sor, '0', params_kw.orgid)
return f'{params_kw.orgid} accounts opened')
return f'{db.e_except=}

View File

@ -0,0 +1,7 @@
debug(f'{params_kw=}')
dbname = get_module_dbname('accounting')
db = DBPools()
async with db.sqlorContext(dbname) as sor:
await openOwnerAccounts(sor, '0')
return f'0 accounts opened')
return f'{db.e_except=}

View File

@ -0,0 +1,7 @@
debug(f'{params_kw=}')
dbname = get_module_dbname('accounting')
db = DBPools()
async with db.sqlorContext(dbname) as sor:
await openResellerAccounts(sor, '0', params_kw.orgid)
return f'{params_kw.orgid} accounts opened')
return f'{db.e_except=}