|
@@ -86,7 +86,7 @@ public class InvoiceAfterCheckEvent implements IBusinessListener{
|
|
|
sql.append(" ic_purchasein_h.cgeneralhid = '"+csourceid+"'");
|
|
|
listMap = (List<Map<Object, Object>>) bs.executeQuery(sql.toString(), new MapListProcessor());
|
|
|
}
|
|
|
- for (InvoiceItemVO invoiceItemVO : arrInvoiceItemVO) {
|
|
|
+ for (InvoiceItemVO invoiceItemVO : arrInvoiceItemVO) {
|
|
|
//没传发票不比较日期、抬头、纳税人识别号
|
|
|
if(invoiceItemVO.getVbdef20() != null && !"".equals(invoiceItemVO.getVbdef20())) {
|
|
|
String[] arrVbdef20 = invoiceItemVO.getVbdef20().split(",");
|
|
@@ -113,9 +113,9 @@ public class InvoiceAfterCheckEvent implements IBusinessListener{
|
|
|
sql2.append(" WHERE");
|
|
|
sql2.append(" pk_defdoclist = ( SELECT pk_defdoclist FROM bd_defdoclist WHERE code = 'CORPYS04' ) ");
|
|
|
sql2.append(" AND memo = '"+orgname+"' ");
|
|
|
- sql2.append(" AND enablestate = 2");
|
|
|
+ sql2.append(" AND enablestate = 34");
|
|
|
String tcode = (String) bs.executeQuery(sql2.toString(), new ColumnProcessor());
|
|
|
- if(!tcode.equals(defdocVO.getMnecode())) {
|
|
|
+ if(!defdocVO.getMnecode().equals(tcode)) {
|
|
|
ExceptionUtils.wrappBusinessException("行:"+invoiceItemVO.getCrowno()+"纳税人识别号不正确!");
|
|
|
}
|
|
|
}
|