入库单下推无合同付款申请单botp插件-删除运费发票
This commit is contained in:
parent
4680dd5aff
commit
9551c4f70b
|
|
@ -58,6 +58,10 @@ public class MaterialinbillToNoContractBotpPlugin extends AbstractConvertPlugIn
|
||||||
|
|
||||||
//发票信息分录
|
//发票信息分录
|
||||||
DynamicObjectCollection invoiceentry = dataEntity.getDynamicObjectCollection("invoiceentry");
|
DynamicObjectCollection invoiceentry = dataEntity.getDynamicObjectCollection("invoiceentry");
|
||||||
|
|
||||||
|
//删除发票中的运费发票
|
||||||
|
invoiceentry.removeIf(dynamicObject -> dynamicObject.getBoolean("zcgj_freight_invoice"));
|
||||||
|
|
||||||
for (DynamicObject invoice : invoiceentry) {
|
for (DynamicObject invoice : invoiceentry) {
|
||||||
String invoiceno = invoice.getString("invoiceno");
|
String invoiceno = invoice.getString("invoiceno");
|
||||||
long aLong = invoice.getLong("id");
|
long aLong = invoice.getLong("id");
|
||||||
|
|
@ -78,7 +82,6 @@ public class MaterialinbillToNoContractBotpPlugin extends AbstractConvertPlugIn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//发票明细分录
|
//发票明细分录
|
||||||
DynamicObjectCollection invoiceitementry = dataEntity.getDynamicObjectCollection("invoiceitementry");
|
DynamicObjectCollection invoiceitementry = dataEntity.getDynamicObjectCollection("invoiceitementry");
|
||||||
for (String invoiceno : invoiceEntryMap.keySet()) {//以发票信息为主
|
for (String invoiceno : invoiceEntryMap.keySet()) {//以发票信息为主
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue