Kaynağa Gözat

红票删除判断调整

沈静伟 3 yıl önce
ebeveyn
işleme
0e2baec39c

+ 8 - 2
src/apps/tinvoicebill/tinvoiceapplyBillDataBean.java

@@ -36,8 +36,14 @@ public class tinvoiceapplyBillDataBean extends DataBeanCust {
 
     @Override
     public int TOGGLEDELETEROW() throws P2Exception {
-        if ("审核".equals(parent.getString("fstatus"))) {
-            throw new P2AppException("", "审核状态下不可删除");
+        if ("红".equals(getString("frb"))) {
+            if (!"".equals(getString("STATUS"))) {
+                throw new P2AppException("", "红票已提交,不可删除");
+            }
+        } else {
+            if ("审核".equals(parent.getString("fstatus"))) {
+                throw new P2AppException("", "审核状态下不可删除");
+            }
         }
         return super.TOGGLEDELETEROW();
     }