diff --git a/wwwroot/billing.dspy b/wwwroot/billing.dspy index 89df46c..d9f426a 100644 --- a/wwwroot/billing.dspy +++ b/wwwroot/billing.dspy @@ -22,7 +22,7 @@ async with get_sor_context(request._run_ns, 'accounting') as sor: d.amount, d.balance, s.name as subject_name from acc_detail d join account a on d.accountid = a.id COLLATE utf8mb4_unicode_ci -join subject s on a.subjectid = s.id COLLATE utf8mb4_unicode_ci +left join subject s on a.subjectid = s.id COLLATE utf8mb4_unicode_ci where a.orgid = ${orgid}$ and d.acc_date >= ${start_date}$ and d.acc_date <= ${end_date}$"""