Explorar o código

生成收入凭证添加默认回款日期

郭齐峰 %!s(int64=3) %!d(string=hai) anos
pai
achega
86e9340526

+ 2 - 2
src/custom/beans/accountbalance/SQL/收支凭证新增-分类分类明细.sql

@@ -1,7 +1,7 @@
 insert into sa_cashbill (siteid, sa_cashbillid, createuserid, createby, createdate, billno, changeuserid, changeby,
                          changedate, checkby, checkdate,
                          sys_enterpriseid, sa_accountclassid, type, remarks, amount, status, source, sourcenote,
-                         ownertable, ownerid, balance, sa_cashbillid_rebate,class)
+                         ownertable, ownerid, balance, sa_cashbillid_rebate,class,period)
 values ($siteid$, $sa_cashbillid$, $userid$, $username$, CURRENT_TIME, $billno$, $userid$, $username$, CURRENT_TIME,
         $checkby$, $checkdate$, $sys_enterpriseid$, $sa_accountclassid$, $type$, $remarks$,
-        $amount$, $status$, $source$, $sourcenote$, $ownertable$, $ownerid$, $balance$, $sa_cashbillid_rebate$,$class$);
+        $amount$, $status$, $source$, $sourcenote$, $ownertable$, $ownerid$, $balance$, $sa_cashbillid_rebate$,$class$,current_time);

+ 3 - 1
src/custom/restcontroller/webmanage/sale/transferbill/SQL/转账单详情.sql

@@ -14,7 +14,9 @@ select t1.sa_transferbillid,
        t1.changedate,
        t1.sa_accountclassid,
        t1.inaccountclassid,
-       t1.sys_enterpriseid
+       t1.sys_enterpriseid,
+       t1.checkdate,
+       t1.checkby
 from sa_transferbill t1
          left join sys_enterprise t2 on t1.siteid = t2.siteid and t1.sys_enterpriseid = t2.sys_enterpriseid
          left join sa_agents t3 on t2.siteid = t3.siteid and t2.sys_enterpriseid = t3.sys_enterpriseid