From 029a76f960d4c2a1046a63883636a74328beaf86 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 16 Jun 2026 17:32:38 +0800 Subject: [PATCH] bugfix --- wwwroot/open_customer_accounts.dspy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wwwroot/open_customer_accounts.dspy b/wwwroot/open_customer_accounts.dspy index 7075db2..3933f4c 100644 --- a/wwwroot/open_customer_accounts.dspy +++ b/wwwroot/open_customer_accounts.dspy @@ -1,6 +1,8 @@ debug(f'{params_kw=}') dbname = get_module_dbname('accounting') -orgid = await get_userorgid() +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)