付款申请单已审核 重新添加发票

This commit is contained in:
程小伟 2025-05-07 18:47:47 +08:00
parent 60ec78c0aa
commit d830cc43ad
1 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
FormOperate operate = (FormOperate)args.getSource();
String key = operate.getOperateKey();//获取操作码
log.info("SupplementInvoiceBillPlugin:操作码:"+key);
if(StringUtil.equals("supplementInvoice", key)) {//候补发票
if(StringUtil.equals("supplementinvoice", key)) {//候补发票
log.info("SupplementInvoiceBillPlugin:点击候补发票");
this.beforeNewSubEntry(args);
}
@ -52,7 +52,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
if (!billId.equals("0") && "C".equals(this.getModel().getValue("billstatus"))){//单据为已审核情况下
String key = e.getProperty().getName();
// int rowIndex = e.getChangeSet()[0].getRowIndex();
// log.info("SupplementInvoiceBillPlugin:发票申请金额发生变动,与合同的申请金额进行比较");
log.info("SupplementInvoiceBillPlugin:发生变动的字段:"+key);
if(StringUtil.equals("applyinvoftaxamt", key)) {
log.info("SupplementInvoiceBillPlugin:发票申请金额发生变动,与合同的申请金额进行比较");
this.compareApplyInvoftaxamt();
@ -80,6 +80,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
log.info("SupplementInvoiceBillPlugin:单据已审核");
EntryGrid grid = (EntryGrid)this.getView().getControl("entryentity");//获取单据体控件-合同付款信息
int[] rows = grid.getEntryState().getSelectedRows();//获取选择行号
log.info("SupplementInvoiceBillPlugin:导入的进项发票数量:"+rows.length);
if (rows.length != 1) {//只能选择一条
this.getView().showMessage(ResManager.loadKDString("必须选中一条合同付款信息记录。", "PaymentApplyEditUI_2", "ec-contract-formplugin", new Object[0]));
args.setCancel(true);