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