收入财务确认单报错问题处理

This commit is contained in:
哈哈哈丿 2025-07-04 19:50:46 +08:00
parent ff94fd70bd
commit 234060e0d1
1 changed files with 5 additions and 3 deletions

View File

@ -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));
}