付款申请单 候补发票

This commit is contained in:
程小伟 2025-05-13 13:59:02 +08:00
parent bb309726b6
commit e383a443af
1 changed files with 10 additions and 9 deletions

View File

@ -65,15 +65,16 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
}
int rowIndex = this.getModel().getEntryCurrentRowIndex("entryentity");
DynamicObject rowEntity = this.getModel().getEntryRowEntity("entryentity", rowIndex);//获取对应行的单据体
// BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额
// BigDecimal totalAmount = this.getSum1("subentryentity", "applyinvoftaxamt");//算出子单据申请金额总和
// if(applyoftaxamount.compareTo(totalAmount)!=0){
// this.getView().showTipNotification(
// "合同付款信息的 本次申请金额\n" +
// " 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额");
// this.getView().showTipNotification("发票保存失败!");
// args.setCancel(true);
// }
BigDecimal applyoftaxamount = rowEntity.getBigDecimal("thisapplyoftax");//获取单据体对应的 本次申请金额
BigDecimal totalAmount = this.getSum1("subentryentity", "applyinvoftaxamt");//算出子单据申请金额总和
if(applyoftaxamount.compareTo(totalAmount)!=0){
this.getView().showTipNotification(
"合同付款信息的 本次申请金额\n" +
" 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额");
this.getView().showTipNotification("发票保存失败!");
args.setCancel(true);
return;
}
// DynamicObject[] invArr = new DynamicObject[rowCount];//用于存储发票
DynamicObjectCollection subentryentitys = rowEntity.getDynamicObjectCollection("subentryentity");