accounting/wwwroot/open_customer_accounts.dspy
Hermes Agent 029a76f960 bugfix
2026-06-16 17:32:38 +08:00

11 lines
309 B
Plaintext

debug(f'{params_kw=}')
dbname = get_module_dbname('accounting')
orgid = params_kw.orgid
if orgid is None:
orgid = await get_userorgid()
db = DBPools()
async with db.sqlorContext(dbname) as sor:
await openCustomerAccounts(sor, '0', orgid)
return f'{orgid} customer accounts opened'
return f'{db.e_except=}'