From 60ec78c0aa35d5b700ff473eec100456f35a43ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=B0=8F=E4=BC=9F?= Date: Wed, 7 May 2025 18:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=E5=B7=B2=E5=AE=A1=E6=A0=B8=20=E9=87=8D=E6=96=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pr/plugin/form/SupplementInvoiceBillPlugin.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java index 78b2515..defc680 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/SupplementInvoiceBillPlugin.java @@ -36,6 +36,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { super.beforeDoOperation(args); FormOperate operate = (FormOperate)args.getSource(); String key = operate.getOperateKey();//获取操作码 + log.info("SupplementInvoiceBillPlugin:操作码:"+key); if(StringUtil.equals("supplementInvoice", key)) {//候补发票 log.info("SupplementInvoiceBillPlugin:点击候补发票"); this.beforeNewSubEntry(args); @@ -45,13 +46,15 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { @Override public void propertyChanged(PropertyChangedArgs e) { super.propertyChanged(e); - + log.info("SupplementInvoiceBillPlugin:发生变动的字段:"+e.getProperty().getName()); String billId = this.getModel().getDataEntity().getPkValue().toString(); + log.info("SupplementInvoiceBillPlugin:主键名:"+billId); 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:发票申请金额发生变动,与合同的申请金额进行比较"); if(StringUtil.equals("applyinvoftaxamt", key)) { + log.info("SupplementInvoiceBillPlugin:发票申请金额发生变动,与合同的申请金额进行比较"); this.compareApplyInvoftaxamt(); } } @@ -72,7 +75,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { protected void beforeNewSubEntry(BeforeDoOperationEventArgs args) { String billId = this.getModel().getDataEntity().getPkValue().toString(); - + log.info("SupplementInvoiceBillPlugin:主键值:"+billId); if (!billId.equals("0") && "C".equals(this.getModel().getValue("billstatus"))) {//单据状态是否为审核 log.info("SupplementInvoiceBillPlugin:单据已审核"); EntryGrid grid = (EntryGrid)this.getView().getControl("entryentity");//获取单据体控件-合同付款信息 @@ -94,6 +97,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { log.info("SupplementInvoiceBillPlugin:在进项发票基础资料中进项筛选"); Object currencyId = this.getModel().getValue("currency_id"); long orgId = ((DynamicObject)this.getModel().getValue("org")).getLong("id"); + log.info("SupplementInvoiceBillPlugin:orgId"+orgId); QFilter filter = new QFilter("org", "=", orgId); filter.and(new QFilter("isclaimed", "=", false)); filter.and(new QFilter("billstatus", "=", "C")); @@ -210,7 +214,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI { amount = amount == null ? BigDecimal.ZERO : amount; totalAmount = totalAmount.add(amount); } - + log.info("SupplementInvoiceBillPlugin:发票申请总金额"+totalAmount); return totalAmount; } }