付款申请单 候补发票

This commit is contained in:
程小伟 2025-05-12 16:46:16 +08:00
parent c33a4023e2
commit 66b9623cf5
1 changed files with 4 additions and 4 deletions

View File

@ -55,9 +55,9 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
} }
private void unapplyInvoftaxamtRevise(BeforeDoOperationEventArgs args) { private void unapplyInvoftaxamtRevise(BeforeDoOperationEventArgs args) {
int Count = this.getModel().getEntryRowCount("subentryentity"); int rowCount = this.getModel().getEntryRowCount("subentryentity");
log.info("SupplementInvoiceBillPlugin:子单据体行数:"+Count); log.info("SupplementInvoiceBillPlugin:子单据体行数:"+rowCount);
if (Count <= 0) { if (rowCount <= 0) {
this.getView().showTipNotification("请先后补发票"); this.getView().showTipNotification("请先后补发票");
args.setCancel(true); args.setCancel(true);
return; return;
@ -72,7 +72,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
" 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额",10000); " 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额",10000);
args.setCancel(true); args.setCancel(true);
}else { }else {
int rowCount = this.getModel().getEntryRowCount("sentimentality");//获取子单据体分录行数 // int rowCount = this.getModel().getEntryRowCount("subentryentity");//获取子单据体分录行数
DynamicObject[] invArr = new DynamicObject[rowCount];//用于存储发票 DynamicObject[] invArr = new DynamicObject[rowCount];//用于存储发票
DynamicObjectCollection subentryentitys = rowEntity.getDynamicObjectCollection("subentryentity"); DynamicObjectCollection subentryentitys = rowEntity.getDynamicObjectCollection("subentryentity");