Browse Source

收支凭证回款日期必填

郭齐峰 2 years ago
parent
commit
e87d3d6522
1 changed files with 8 additions and 8 deletions
  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");