diff --git a/src_tenwa/com/tenwa/flow/comm/handler/LBContractInvoiceTypeInfoHandler.java b/src_tenwa/com/tenwa/flow/comm/handler/LBContractInvoiceTypeInfoHandler.java index 00ba4b9b9..055bac04a 100644 --- a/src_tenwa/com/tenwa/flow/comm/handler/LBContractInvoiceTypeInfoHandler.java +++ b/src_tenwa/com/tenwa/flow/comm/handler/LBContractInvoiceTypeInfoHandler.java @@ -45,12 +45,12 @@ public class LBContractInvoiceTypeInfoHandler extends CommonHandler{ if(ismainbo.size()>0){ this.errors+="默认开票已存在!"; } - }else{ + }/*else{ List ismainbo =invoicetTempManager.createQuery("FLOWUNID=:flowunid and IS_MAIN='Y' ").setParameter("flowunid",flowUnid).getResultList(false); if(ismainbo.size()==0){ this.errors+="默认开票不存在!"; } - } + }*/ }else{ if(taxacc!=null && !taxacc.equals("")){ List taxaccs =invoicetTempManager.createQuery("FLOWUNID=:flowunid and TAX_ACC=:taxacc and ID<>:id ").setParameter("flowunid",flowUnid).setParameter("taxacc",taxacc).setParameter("id",id).getResultList(false); @@ -63,12 +63,12 @@ public class LBContractInvoiceTypeInfoHandler extends CommonHandler{ if(ismainbo.size()>0){ this.errors+="默认开票已存在!"; } - }else{ + }/*else{ List ismainbo =invoicetTempManager.createQuery("FLOWUNID=:flowunid and IS_MAIN='Y' and ID<>:id ").setParameter("flowunid",flowUnid).setParameter("id",id).getResultList(false); if(ismainbo.size()==0){ this.errors+="默认开票不存在!"; } - } + }*/ } if(!this.errors.equals("")){ return false;