Browse Source

bug修复

郭齐峰 3 years ago
parent
commit
82531e0f22
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/custom/restcontroller/sale/cashbill/cashbill.java

+ 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();
             }
         }