一:问题描述
如下图,导入全电发票一直loading,并提示系统发生错误,请联系系统管理员
二:问题分析
报错堆栈如下:
java.Tang.NullPointerException:null at:com.kingdee.eas.cp.bc.app.InvoiceFacadecontrollerBean.invoicecloudchangeInvoiceEntryByBiz(InvoiceFacadecontrollerBean.java:1488) at:com.kingdee.eas.cp.bc.app.InvoiceFacadecontrollerBean._buildchangeInvoiceAndEntry(InvoiceFacadecontrollerBean.java:262) at:com.kingdee.eas.cp.bc.app.AbstractInvoiceFacadecontrollerBean.buildchangeInvoiceAndEntry(AbstractInvoiceFacadecontrollerBean.java:151)
全电票属于新发票种类,在导入时可能不存在发票号码(invoiceNumber),该字段为空就会报错
三:解决方案
1.更新补丁
86 PT165579(2022-05-20)
85 PT166624(2022-06-30)
2.如果现场私包比较多,无法更新补丁,目前标准有提供扩展类com.kingdee.eas.cp.bc.app.InvoiceFacadeControllerBeanEx,可以重写导入发票方法,针对invoiceNum字段做判空处理
推荐阅读