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