付款申请单 候补发票

This commit is contained in:
程小伟 2025-05-12 18:20:24 +08:00
parent 7e18636362
commit 52ce691d9b
1 changed files with 4 additions and 8 deletions

View File

@ -69,7 +69,8 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
if(applyoftaxamount.compareTo(totalAmount)!=0){ if(applyoftaxamount.compareTo(totalAmount)!=0){
this.getView().showTipNotification( this.getView().showTipNotification(
"合同付款信息的 本次申请金额\n" + "合同付款信息的 本次申请金额\n" +
" 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额",10000); " 不等于 合同进项发票的 本次申请金额总和 ,请重写填写合同进项发票的申请金额",5000);
this.getView().showTipNotification("发票保存失败!",5000);
args.setCancel(true); args.setCancel(true);
}else { }else {
// int rowCount = this.getModel().getEntryRowCount("subentryentity");//获取子单据体分录行数 // int rowCount = this.getModel().getEntryRowCount("subentryentity");//获取子单据体分录行数
@ -96,19 +97,14 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
SaveServiceHelper.save(new DynamicObject[]{invoice}); SaveServiceHelper.save(new DynamicObject[]{invoice});
}else { }else {
this.getView().showTipNotification("合同进项发票信息第"+(i+1)+"行的 本次申请金额不能大于未申请含税金额。",5000); this.getView().showTipNotification("合同进项发票信息第"+(i+1)+"行的 本次申请金额不能大于未申请含税金额。",5000);
this.getView().showTipNotification("发票保存失败!",5000);
args.setCancel(true); args.setCancel(true);
} }
} }
} }
if(invArr.length>0){
//SaveServiceHelper.save(invArr);//发票保存
log.info("SupplementInvoiceBillPlugin:发票保存");
this.getView().showTipNotification("保存成功");
}else{
this.getView().showTipNotification("发票保存失败!");
}
} }