Преглед изворни кода

收支凭证回款日期必填

郭齐峰 пре 2 година
родитељ
комит
95a15557ad
1 измењених фајлова са 3 додато и 7 уклоњено
  1. 3 7
      src/custom/restcontroller/sale/cashbill/cashbill.java

+ 3 - 7
src/custom/restcontroller/sale/cashbill/cashbill.java

@@ -335,13 +335,9 @@ public class cashbill extends Controller {
         String subclass = content.getString("subclass");
         String class1 = content.getString("class");
         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();
-//            }
-//        }
+        if (StringUtils.isEmpty(period)) {
+            return getErrReturnObject().setErrMsg("未填写归属日期").toString();
+        }
         //String billcode = "123456789";
         BigDecimal amount = content.getBigDecimal("amount");
         String remarks = content.getString("remarks");