|
|
@@ -1378,6 +1378,13 @@ public class saorder extends BaseSaorder {
|
|
|
if (saorderdetail.sum("finvoiceamount") != 0) {
|
|
|
throw new P2AppException("", "开票金额不为0,不可反审核");
|
|
|
}
|
|
|
+ if (!getPaoSet("TWRITEOFFORDER1").isEmpty()) {
|
|
|
+ throw new P2AppException("", "存在收款核销单,不可反审核");
|
|
|
+ }
|
|
|
+ if (!getPaoSet("TINVOICEAPPLYORDER_VIEW").isEmpty()) {
|
|
|
+ throw new P2AppException("", "存在开票申请,不可反审核");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|