付款申请单 候补发票

This commit is contained in:
程小伟 2025-05-12 16:32:35 +08:00
parent 07e0a66d1c
commit c33a4023e2
1 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,13 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
} }
private void unapplyInvoftaxamtRevise(BeforeDoOperationEventArgs args) { private void unapplyInvoftaxamtRevise(BeforeDoOperationEventArgs args) {
int Count = this.getModel().getEntryRowCount("subentryentity");
log.info("SupplementInvoiceBillPlugin:子单据体行数:"+Count);
if (Count <= 0) {
this.getView().showTipNotification("请先后补发票");
args.setCancel(true);
return;
}
int rowIndex = this.getModel().getEntryCurrentRowIndex("entryentity"); int rowIndex = this.getModel().getEntryCurrentRowIndex("entryentity");
DynamicObject rowEntity = this.getModel().getEntryRowEntity("entryentity", rowIndex);//获取对应行的单据体 DynamicObject rowEntity = this.getModel().getEntryRowEntity("entryentity", rowIndex);//获取对应行的单据体
BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额 BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额