沈静伟 3 лет назад
Родитель
Сommit
49848ff92e
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      src/apps/tinvoicebillitem/tinvoiceItemDataBean.java

+ 8 - 2
src/apps/tinvoicebillitem/tinvoiceItemDataBean.java

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