|
@@ -304,7 +304,7 @@ public class cashbill extends Controller {
|
|
|
public String insertormodify_creditbill() throws YosException {
|
|
public String insertormodify_creditbill() throws YosException {
|
|
|
Long sa_cashbillid = content.getLong("sa_cashbillid");
|
|
Long sa_cashbillid = content.getLong("sa_cashbillid");
|
|
|
Long type = content.getLong("type"); //收支类型(1:收;0:支)
|
|
Long type = content.getLong("type"); //收支类型(1:收;0:支)
|
|
|
- Long sys_enterpriseid = content.getLong("sys_enterpriseid");
|
|
|
|
|
|
|
+// Long sys_enterpriseid = content.getLong("sys_enterpriseid");
|
|
|
Long sa_accountclassid = content.getLong("sa_accountclassid");
|
|
Long sa_accountclassid = content.getLong("sa_accountclassid");
|
|
|
String billcode = "";
|
|
String billcode = "";
|
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
@@ -315,6 +315,8 @@ public class cashbill extends Controller {
|
|
|
String subclass = content.getStringValue("subclass");
|
|
String subclass = content.getStringValue("subclass");
|
|
|
String class1 = content.getStringValue("class");
|
|
String class1 = content.getStringValue("class");
|
|
|
String period = content.getStringValue("period");
|
|
String period = content.getStringValue("period");
|
|
|
|
|
+ String billdate = content.getStringValue("billdate");
|
|
|
|
|
+
|
|
|
if (StringUtils.isEmpty(period)) {
|
|
if (StringUtils.isEmpty(period)) {
|
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
|
return getErrReturnObject().setErrMsg("未填写归属日期").toString();
|
|
return getErrReturnObject().setErrMsg("未填写归属日期").toString();
|
|
@@ -348,6 +350,7 @@ public class cashbill extends Controller {
|
|
|
sqlFactory.addParameter("source", "");
|
|
sqlFactory.addParameter("source", "");
|
|
|
sqlFactory.addParameter("sourcenote", "");
|
|
sqlFactory.addParameter("sourcenote", "");
|
|
|
sqlFactory.addParameter("period", period);
|
|
sqlFactory.addParameter("period", period);
|
|
|
|
|
+ sqlFactory.addParameter("billdate", StringUtils.isBlank(billdate)?"current_time":billdate);
|
|
|
sqlFactory.addParameter("discountamount", discountamount);
|
|
sqlFactory.addParameter("discountamount", discountamount);
|
|
|
|
|
|
|
|
content.put("sa_cashbillid", sa_cashbillid);
|
|
content.put("sa_cashbillid", sa_cashbillid);
|
|
@@ -378,6 +381,7 @@ public class cashbill extends Controller {
|
|
|
sqlFactory.addParameter("source", "");
|
|
sqlFactory.addParameter("source", "");
|
|
|
sqlFactory.addParameter("sourcenote", "");
|
|
sqlFactory.addParameter("sourcenote", "");
|
|
|
sqlFactory.addParameter("period", period);
|
|
sqlFactory.addParameter("period", period);
|
|
|
|
|
+ sqlFactory.addParameter("billdate",StringUtils.isBlank(billdate)?"current_time":billdate);
|
|
|
sqlFactory.addParameter("discountamount", discountamount);
|
|
sqlFactory.addParameter("discountamount", discountamount);
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
sqlList.add(DataContrlLog.createLog(this, "sa_cashbill", sa_cashbillid, "更新", "收支凭证更新成功").getSQL());
|
|
sqlList.add(DataContrlLog.createLog(this, "sa_cashbill", sa_cashbillid, "更新", "收支凭证更新成功").getSQL());
|