From 79e973134a1177312ee76ef86c72ec25f5103728 Mon Sep 17 00:00:00 2001 From: weiyunlong Date: Mon, 30 Jun 2025 16:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=87=AD=E8=AF=81=E6=8E=A8?= =?UTF-8?q?=E9=80=81(=E5=B8=81=E5=88=AB)=20=E4=BC=98=E5=8C=96=E4=BB=98?= =?UTF-8?q?=E6=AC=BE=E5=8D=95=E6=8A=A5=E9=94=99=20--s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jhzj7/fi/fi/plugin/form/TextFieldDemo.java | 2 +- .../plugin/operate/PaybillPushSapOperation.java | 16 +++++++++------- main/java/shjh/jhzj7/fi/fi/utils/SapUtils.java | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/form/TextFieldDemo.java b/main/java/shjh/jhzj7/fi/fi/plugin/form/TextFieldDemo.java index bfefbc1..057b51a 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/form/TextFieldDemo.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/form/TextFieldDemo.java @@ -31,7 +31,7 @@ public class TextFieldDemo extends AbstractFormPlugin { //携带收款人编码 String payeeformid = ""+this.getView().getModel().getValue("payeeformid");//收款人基础资料标识 Long payee = Long.valueOf(""+this.getView().getModel().getValue("payee"));//收款人ID - if (payee != 0 && payeeformid!= null &&!payeeformid.isEmpty()) { + if (payee != 0 && payeeformid!= null &&!payeeformid.isEmpty() && !"other".equals(payeeformid)) { DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(payee, payeeformid); if (null != dynamicObject) { Label label1 = this.getView().getControl("shjh_positionbr4"); diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/operate/PaybillPushSapOperation.java b/main/java/shjh/jhzj7/fi/fi/plugin/operate/PaybillPushSapOperation.java index e6eec14..c696f9c 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/operate/PaybillPushSapOperation.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/operate/PaybillPushSapOperation.java @@ -109,7 +109,9 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl QFilter q1 = new QFilter("sourcebill", QCP.equals, bill.getPkValue()); QFilter q2 = new QFilter("billstatus",QCP.equals,"C"); DynamicObject gl_voucher = BusinessDataServiceHelper.loadSingle("gl_voucher", - "id,description,shjh_fjz,sourcebill,entries,entries.account,entries.debitlocal,entries.creditlocal,entries.entrydc,entries.edescription,vouchertype,entries.assgrp", + "id,description,shjh_fjz,sourcebill,entries,entries.account,entries.debitlocal," + + "entries.creditlocal,entries.entrydc,entries.edescription,vouchertype,entries.assgrp," + + "entries.debitori,entries.creditori", new QFilter[]{q1, q2}); if (null == gl_voucher) { OperateErrorInfo operateErrorInfo = new OperateErrorInfo(); @@ -364,9 +366,9 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl } // 获取借方金额 - BigDecimal debitlocal = (BigDecimal) entry.get("debitlocal");//借方 + BigDecimal debitlocal = (BigDecimal) entry.get("debitori");//借方 // 获取贷方金额 - BigDecimal creditlocal = (BigDecimal) entry.get("creditlocal");//贷方 + BigDecimal creditlocal = (BigDecimal) entry.get("creditori");//贷方 entrydc = (String) entry.get("entrydc");//分录方向(1.借方,-1.贷方) // 进行空值检查 @@ -589,9 +591,9 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl } // 获取借方金额 - BigDecimal debitlocal = (BigDecimal) entry.get("debitlocal");//借方 + BigDecimal debitlocal = (BigDecimal) entry.get("debitori");//借方 // 获取贷方金额 - BigDecimal creditlocal = (BigDecimal) entry.get("creditlocal");//贷方 + BigDecimal creditlocal = (BigDecimal) entry.get("creditori");//贷方 entrydc = (String) entry.get("entrydc");//分录方向(1.借方,-1.贷方) // 进行空值检查 @@ -740,9 +742,9 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl } // 获取借方金额 - BigDecimal debitlocal = (BigDecimal) entry.get("debitlocal");//借方 + BigDecimal debitlocal = (BigDecimal) entry.get("debitori");//借方 // 获取贷方金额 - BigDecimal creditlocal = (BigDecimal) entry.get("creditlocal");//贷方 + BigDecimal creditlocal = (BigDecimal) entry.get("creditori");//贷方 entrydc = (String) entry.get("entrydc");//分录方向(1.借方,-1.贷方) // 进行空值检查 diff --git a/main/java/shjh/jhzj7/fi/fi/utils/SapUtils.java b/main/java/shjh/jhzj7/fi/fi/utils/SapUtils.java index 30e93de..c17b2b4 100644 --- a/main/java/shjh/jhzj7/fi/fi/utils/SapUtils.java +++ b/main/java/shjh/jhzj7/fi/fi/utils/SapUtils.java @@ -724,9 +724,9 @@ public class SapUtils { accountNumber = account.getString("number");//科目编号 } // 获取借方金额 - BigDecimal debitlocal = (BigDecimal) entry.get("debitlocal");//借方 + BigDecimal debitlocal = (BigDecimal) entry.get("debitori");//借方 // 获取贷方金额 - BigDecimal creditlocal = (BigDecimal) entry.get("creditlocal");//贷方 + BigDecimal creditlocal = (BigDecimal) entry.get("creditori");//贷方 String entrydc = (String) entry.get("entrydc");//分录方向(1.借方,-1.贷方) //贷方(客户编号+金额,行摘要) if ("-1".equals(entrydc)) {