合同审批开票对象是否默认开票第一条数据可以选择否

This commit is contained in:
tangfutang 2018-09-09 16:46:10 +08:00
parent df732116a8
commit 980567c81b

View File

@ -45,12 +45,12 @@ public class LBContractInvoiceTypeInfoHandler extends CommonHandler{
if(ismainbo.size()>0){
this.errors+="默认开票已存在!";
}
}else{
}/*else{
List<BizObject> 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<BizObject> 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<BizObject> 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;