Browse Source

开票单可重复反审核错误修复

沈静伟 4 years ago
parent
commit
a6d93fd808
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/apps/tinvoiceapply/tinvoiceapply.java

+ 3 - 1
src/apps/tinvoiceapply/tinvoiceapply.java

@@ -196,6 +196,9 @@ public class tinvoiceapply extends PaoCust {
                 i++;
             }
         } else {
+            if (!"审核".equals(getString("fstatus"))) {
+                throw new P2AppException("", "非审核状态下不可反审核");
+            }
             if (!"手工".equalsIgnoreCase(getString("ftype"))) {
                 int i = 0;
                 while (tinvoicebillSet.getPao(i) != null) {
@@ -227,7 +230,6 @@ public class tinvoiceapply extends PaoCust {
                  */
                 PaoSetRemote sainvoicedetailSet = saorderdetail.getPaoSet("sainvoicedetail");
                 sainvoicedetailSet.setOrderBy("sainvoicedetailid");
-                System.err.println("发货单行"+sainvoicedetailSet.count());
                 int n = 0;
                 while (sainvoicedetailSet.getPao(n) != null) {
                     if (sainvoicedetailSet.getPao(n).getPaoSet("SAINVOICE").getPao(0).getString("fstatus").equals("关闭")) {