入库单删除发票空指针异常
This commit is contained in:
parent
a61824e72f
commit
4c8243252e
|
|
@ -346,8 +346,10 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i
|
||||||
for (int i = selRows.length - 1; i >= 0; --i) {
|
for (int i = selRows.length - 1; i >= 0; --i) {
|
||||||
int rowIndex = selRows[i];
|
int rowIndex = selRows[i];
|
||||||
DynamicObject invoice = (DynamicObject) this.getModel().getValue("zcgj_invoice", rowIndex);
|
DynamicObject invoice = (DynamicObject) this.getModel().getValue("zcgj_invoice", rowIndex);
|
||||||
|
if(invoice!=null){
|
||||||
updateInvoicePks.add(invoice.getPkValue());
|
updateInvoicePks.add(invoice.getPkValue());
|
||||||
delPks[i] = ((DynamicObject) subEntryEntityCol.get(selRows[i])).getPkValue();
|
delPks[i] = ((DynamicObject) subEntryEntityCol.get(selRows[i])).getPkValue();
|
||||||
|
}
|
||||||
this.getModel().deleteEntryRow("zcgj_entryentity", rowIndex);
|
this.getModel().deleteEntryRow("zcgj_entryentity", rowIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue