From 11da2eb59b83dc78f622860cdd6a74c7e8c069ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Fri, 18 Jul 2025 23:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E6=8B=BC=E6=8E=A5def4?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=88=B0BIP=E6=8E=A5=E5=8F=A3=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/recon/opplugin/YongyouBIPOperation.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java index e7c26a2..6778b0a 100644 --- a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java +++ b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java @@ -420,7 +420,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen //items.put("taxcodeid","");//税码编码 应该不用传;联调再看; if(isnotext){ //费用登记单的处理方式 - this.setExpenseRegTaxFields(payrequestinfo,items,eventName); + this.setExpenseRegTaxFields(payrequestinfo,items,eventName,payData); // BigDecimal rate = payrequestinfo.getBigDecimal("taxrate");//税率 // if(rate == null){ // items.put("taxrate","0");//税率 @@ -439,7 +439,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen // } }else{ //付款申请单的处理方式 - this.setPayApplyTaxFields(payrequestinfo,items,eventName,bcsqje); + this.setPayApplyTaxFields(payrequestinfo,items,eventName,bcsqje,payData); // BigDecimal invoicetax = payrequestinfo.getBigDecimal("invoicetax");//发票的税额 // if(invoicetax == null || invoicetax.compareTo(BigDecimal.ZERO) == 0){ // items.put("taxrate","0");//税率 @@ -645,7 +645,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen * @param payRequestInfo 费用登记||费用申请 数据 * @param items json */ - private void setExpenseRegTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName){ + private void setExpenseRegTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName,JSONObject payData){ //发票分录 DynamicObjectCollection invoiceEntry = payRequestInfo.getDynamicObjectCollection("invoiceentry"); //无发票 @@ -777,7 +777,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen if (def4Value.length() > 200) { def4Value = def4Value.substring(0, 200); } - items.put("def4", def4Value); + payData.put("def4", def4Value); } if("unaudit".equals(eventName)){ @@ -794,7 +794,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen * @param payRequestInfo 费用登记||费用申请 数据 * @param items json */ - private void setPayApplyTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName,BigDecimal bcsqje){ + private void setPayApplyTaxFields(DynamicObject payRequestInfo,JSONObject items,String eventName,BigDecimal bcsqje,JSONObject payData){ //发票分录 DynamicObjectCollection invoiceEntry = payRequestInfo.getDynamicObjectCollection("invoiceentry"); //无发票 @@ -930,7 +930,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen if (def4Value.length() > 200) { def4Value = def4Value.substring(0, 200); } - items.put("def4", def4Value); + payData.put("def4", def4Value); }