郭齐峰 před 3 roky
rodič
revize
82531e0f22

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

@@ -300,9 +300,9 @@ public class cashbill extends Controller {
         String class1 = content.getString("class");
         String period = content.getStringValue("period");
         if (StringUtils.isEmpty(period)) {
-            if (type == 0) {
+            if (type == 1) {
                 return getErrReturnObject().setErrMsg("未填写归属日期").toString();
-            } else if (type == 1 && subclass.equals("拨款")) {
+            } else if (type == 0 && subclass.equals("拨款")) {
                 period = getDate_Str();
             }
         }