入库单删除发票空指针异常

This commit is contained in:
zhangzhiguo 2025-10-23 11:19:46 +08:00
parent a61824e72f
commit 4c8243252e
1 changed files with 4 additions and 2 deletions

View File

@ -346,8 +346,10 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i
for (int i = selRows.length - 1; i >= 0; --i) {
int rowIndex = selRows[i];
DynamicObject invoice = (DynamicObject) this.getModel().getValue("zcgj_invoice", rowIndex);
updateInvoicePks.add(invoice.getPkValue());
delPks[i] = ((DynamicObject) subEntryEntityCol.get(selRows[i])).getPkValue();
if(invoice!=null){
updateInvoicePks.add(invoice.getPkValue());
delPks[i] = ((DynamicObject) subEntryEntityCol.get(selRows[i])).getPkValue();
}
this.getModel().deleteEntryRow("zcgj_entryentity", rowIndex);
}