This commit is contained in:
2025-07-09 15:13:33 +08:00
parent d8907012ca
commit fccd29251e
4 changed files with 64 additions and 15 deletions

View File

@@ -101,6 +101,8 @@ namespace Pilot.Report.Exploitation.SBUYingShouBiao
ReportHeader header = new ReportHeader();
header.AddChild("SBU", new LocaleValue("SBU", this.Context.UserLocale.LCID), SqlStorageType.Sqlvarchar);
//header.AddChild("本年度发货及验收额", new LocaleValue("已到期应收账款(含子公司)", this.Context.UserLocale.LCID), SqlStorageType.SqlMoney);
header.AddChild("仪表发货金额", new LocaleValue("仪表发货金额", this.Context.UserLocale.LCID), SqlStorageType.SqlMoney);
header.AddChild("系统验收金额", new LocaleValue("系统验收金额", this.Context.UserLocale.LCID), SqlStorageType.SqlMoney);
header.AddChild("已到期应收账款", new LocaleValue("已到期应收账款(含子公司)", this.Context.UserLocale.LCID), SqlStorageType.SqlMoney);
//一级表头
var header1 = header.AddChild("应收账款账龄", new LocaleValue("应收账款账龄"));
@@ -193,12 +195,13 @@ FROM T_SAL_ORDERFIN aa
ON ACL.名称=L.FNAME AND ISNULL(ACL.明细区域,'') != ''
WHERE ACL.区域=a.SBU
AND bb.fid = (SELECT MAX(fid) FROM MBBA_t_Cust100002 aaa WHERE aaa.FDOCUMENTSTATUS='C' AND YEAR(aaa.F_VRYF_DATE_83G)=YEAR( '{begin}' ) )) ccc),0)
,[仪表发货金额]=sum([仪表发货金额])
,[系统验收金额]=sum([系统验收金额])
FROM ZRP_YingShouMingXi_yuyubo a
{Filter}
GROUP BY a.SBU) a
");
//执行SQL并动态创建报表
DBUtils.ExecuteDynamicObject(this.Context, sql);
}