From ba6696088c4912b64c48dd9e2ca18795418c2b58 Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Wed, 23 Jul 2025 11:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=AD=E8=AF=81=E6=97=A5=E6=9C=9F-=E8=AE=B0?= =?UTF-8?q?=E8=B4=A6=E6=97=A5=E6=9C=9F=20=E4=B9=9F=E5=8F=96=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E4=B8=8A=E7=9A=84=E6=B8=85=E8=B4=A6=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/operate/ClearAccountBillOperation.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/operate/ClearAccountBillOperation.java b/main/java/shjh/jhzj7/fi/fi/plugin/operate/ClearAccountBillOperation.java index 152b9cf..1c1c864 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/operate/ClearAccountBillOperation.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/operate/ClearAccountBillOperation.java @@ -595,16 +595,18 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im IS_HEADER.put("BUKRS",companyCode);//公司代码 IS_HEADER.put("BLART","AB");//凭证类型-清账凭证 //业务日期来源于收款单的流水交易日期,如果日期为空,则使用单据创建日期 - if(prinfo.getDate("shjh_bizdate") == null){ - IS_HEADER.put("BLDAT",sdf.format(prinfo.getDate("createtime")));//凭证日期 - }else{ - IS_HEADER.put("BLDAT",sdf.format(prinfo.getDate("shjh_bizdate")));//凭证日期 - } +// if(prinfo.getDate("shjh_bizdate") == null){ +// IS_HEADER.put("BLDAT",sdf.format(prinfo.getDate("createtime")));//凭证日期-记账日期 +// }else{ +// IS_HEADER.put("BLDAT",sdf.format(prinfo.getDate("shjh_bizdate")));//凭证日期-记账日期 +// } if(prinfo.getDate("shjh_cleardate") == null){ - IS_HEADER.put("BUDAT",sdf.format(new Date()));//过账日期-清账日期,如果为空则使用当前日期 + IS_HEADER.put("BUDAT",sdf.format(new Date()));//过账日期-单据上的清账日期,如果为空则使用当前日期 + IS_HEADER.put("BLDAT",sdf.format(new Date()));//凭证日期-记账日期 也取单据上的清账日期 }else{ IS_HEADER.put("BUDAT",sdf.format(prinfo.getDate("shjh_cleardate")));//过账日期-清账日期,如果为空则使用当前日期 + IS_HEADER.put("BLDAT",sdf.format(prinfo.getDate("shjh_cleardate")));//凭证日期-记账日期 } String isoCode = prinfo.getDynamicObject("shjh_currency").getString("number"); IS_HEADER.put("WAERS",JhzjUtils.getCurrencyCode(isoCode));//币种