应收票据台账报表插件9

This commit is contained in:
wenlukang1 2025-07-28 11:08:27 +08:00
parent 69994bd395
commit 7b085cb5ff
1 changed files with 4 additions and 4 deletions

View File

@ -163,13 +163,13 @@ public class BillReceivableReportFormPlugin extends AbstractReportListDataPlugin
//托收
private DataSet getCollectData(){
return DB.queryDataSet(this.getClass().getSimpleName(), DBRoute.of("fi"),
"SELECT " +
"/*dialect*/ SELECT " +
" t1.fid AS pjid1," +
" t2.fid AS discountid," +
" t2.ftradetype AS discounttradetype," +
" t4.freceivername AS shkd_tsyh," +
" TO_CHAR(t2.FBIZDATE, 'YYYY-MM-DD') AS shkd_tsrq," +
" t2.fcollection AS shkd_tsje" +
" NVL(t2.fcollection, 0) AS shkd_tsje " +
" FROM t_cdm_draftbill t1" +
" LEFT JOIN t_cdm_draftbill_e t4 ON t4.fid = t1.fid" +
" LEFT JOIN t_cdm_drafttrdbill_entry t3 ON t1.fid = t3.fdraftbillid" +
@ -247,8 +247,8 @@ public class BillReceivableReportFormPlugin extends AbstractReportListDataPlugin
" MAX(CASE WHEN ftradetype = 'rlspledge' THEN fbizdate END) AS shkd_zyjcrq,\n" +
" SUM(CASE WHEN ftradetype = 'rlspledge' THEN fs_billamount ELSE 0 END) AS shkd_zyjcje,\n" +
" SUM(CASE WHEN ftradetype = 'pledge' THEN fs_billamount ELSE 0 END) AS shkd_zyjehj,\n" +
" TO_CHAR(SUM(CASE WHEN ftradetype = 'pledge' THEN fs_billamount ELSE 0 END) - " +
" SUM(CASE WHEN ftradetype = 'rlspledge' THEN fs_billamount ELSE 0 END), '999,999,999,999.99') " +
" SUM(CASE WHEN ftradetype = 'pledge' THEN fs_billamount ELSE 0 END) - " +
" SUM(CASE WHEN ftradetype = 'rlspledge' THEN fs_billamount ELSE 0 END) " +
" AS shkd_zyje\n" +
" FROM (\n" +
" SELECT \n" +