应付单反审核失败
日志:Caused by:
java.lang.NullPointerException
at java.math.BigDecimal.compareTo(BigDecimal.java:2712)
at com.kingdee.eas.fi.ar.app.ArApBillBaseControllerBean.canUnpassAudit(ArApBillBaseControllerBean.java:1588)
at com.kingdee.eas.fi.ar.app.ArApBillBaseControllerBean._unpassAudit(ArApBillBaseControllerBean.java:2018)
at com.kingdee.eas.fi.ap.app.OtherBillControllerBean._unpassAudit(OtherBillControllerBean.java:4153)
at com.kingdee.eas.fi.ap.app.OtherBillControllerBeanEx._unpassAudit(OtherBillControllerBeanEx.java:120)
at com.kingdee.eas.fi.ar.app.AbstractArApBillBaseControllerBean.unpassAudit(AbstractArApBillBaseControllerBean.java:272)
代码“
if ((!info.isIsAllowanceBill()) && (!info.isIsReverseBill()) && (ArApBaseCalculate.ZERO.compareTo(info.getVerifyAmount()) != 0)) {
throw new OtherBillBizException(OtherBillBizException.BILLVERIFIED);
}
”
原因:应付单表头的结算金额字段为null导致错误。
后台修复数据。
select *
--into t_AP_otherbill_20150722
from t_ap_otherbill
where FVERIFYAMOUNT is null or FVERIFYAMOUNTLOCAL is null
upd2ate t_ap_otherbill set FVERIFYAMOUNT = 0 where FVERIFYAMOUNT is null
upda2te t_ap_otherbill set FVERIFYAMOUNTLOCAL = 0 where FVERIFYAMOUNTLOCAL is null
推荐阅读