瀏覽代碼

收支凭证回款日期必填

郭齐峰 2 年之前
父節點
當前提交
e87d3d6522
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/custom/restcontroller/sale/cashbill/cashbill.java

+ 8 - 8
src/custom/restcontroller/sale/cashbill/cashbill.java

@@ -334,14 +334,14 @@ public class cashbill extends Controller {
         String billcode = createBillCode("cashbill");
         String subclass = content.getString("subclass");
         String class1 = content.getString("class");
-        String period = content.getStringValue("period");
-        if (StringUtils.isEmpty(period)) {
-            if (type == 1) {
-                return getErrReturnObject().setErrMsg("未填写归属日期").toString();
-            } else if (type == 0 && subclass.equals("拨款")) {
-                period = getDate_Str();
-            }
-        }
+        String period = content.getString("period");
+//        if (StringUtils.isEmpty(period)) {
+//            if (type == 1) {
+//                return getErrReturnObject().setErrMsg("未填写归属日期").toString();
+//            } else if (type == 0 && subclass.equals("拨款")) {
+//                period = getDate_Str();
+//            }
+//        }
         //String billcode = "123456789";
         BigDecimal amount = content.getBigDecimal("amount");
         String remarks = content.getString("remarks");