收入财务确认单报错问题处理
This commit is contained in:
parent
ff94fd70bd
commit
234060e0d1
|
@ -93,12 +93,14 @@ public class InContractFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn im
|
||||||
filter1.and(new QFilter("contract", "=", contractId));
|
filter1.and(new QFilter("contract", "=", contractId));
|
||||||
filter1.and(new QFilter("unapplyamount", ">", BigDecimal.ZERO));
|
filter1.and(new QFilter("unapplyamount", ">", BigDecimal.ZERO));
|
||||||
DynamicObjectCollection contInvEntryCol = this.getModel().getEntryEntity("zcgj_entryentity");
|
DynamicObjectCollection contInvEntryCol = this.getModel().getEntryEntity("zcgj_entryentity");
|
||||||
if (contInvEntryCol.size() > 0) {
|
if (!contInvEntryCol.isEmpty()) {
|
||||||
List<Long> selectedInvIds = new ArrayList(8);
|
List<Long> selectedInvIds = new ArrayList<Long>(8);
|
||||||
|
|
||||||
for(DynamicObject contInvEntryObj : contInvEntryCol) {
|
for(DynamicObject contInvEntryObj : contInvEntryCol) {
|
||||||
DynamicObject invoice = contInvEntryObj.getDynamicObject("zcgj_invoice");
|
DynamicObject invoice = contInvEntryObj.getDynamicObject("zcgj_invoice");
|
||||||
selectedInvIds.add(invoice.getLong("id"));
|
if(invoice!=null){
|
||||||
|
selectedInvIds.add(invoice.getLong("id"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
filter1.and(new QFilter("id", "not in", selectedInvIds));
|
filter1.and(new QFilter("id", "not in", selectedInvIds));
|
||||||
|
|
Loading…
Reference in New Issue