From 8976ab6d90a65f68b7c73d81c9f513995ea10f8a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 17 Jul 2026 15:21:37 +0800 Subject: [PATCH] fix(accounting): summary shows #shortid only, remove redundant subject prefix --- wwwroot/billing.dspy | 2 +- wwwroot/billing_download.dspy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/billing.dspy b/wwwroot/billing.dspy index 884dd1e..88df67b 100644 --- a/wwwroot/billing.dspy +++ b/wwwroot/billing.dspy @@ -19,7 +19,7 @@ ns = { async with get_sor_context(request._run_ns, 'accounting') as sor: sql = """select d.acc_date, d.acc_timestamp, d.acc_dir, -concat(coalesce(s.name, '交易'), ' #', substring_index(d.summary, ':', 1)) as summary, +concat('#', substring_index(d.summary, ':', 1)) as summary, d.amount, d.balance, s.name as subject_name, count(*) over() as _total, coalesce(sum(case when d.acc_dir = '1' then d.amount else 0 end) over(), 0) as _debit, diff --git a/wwwroot/billing_download.dspy b/wwwroot/billing_download.dspy index 0f22977..b509921 100644 --- a/wwwroot/billing_download.dspy +++ b/wwwroot/billing_download.dspy @@ -20,7 +20,7 @@ ns = { async with get_sor_context(request._run_ns, 'accounting') as sor: sql = """select d.acc_date, d.acc_timestamp, -concat(coalesce(s.name, '交易'), ' #', substring_index(d.summary, ':', 1)) as summary, +concat('#', substring_index(d.summary, ':', 1)) as summary, s.name as subject_name, d.acc_dir, d.amount, d.balance from acc_detail d join account a on d.accountid = a.id COLLATE utf8mb4_unicode_ci