From 6dfe0cfdfa18ae38b0972219fdfacebc62b812a8 Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Wed, 23 Jul 2025 11:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E8=B4=A6=E6=97=A5=E6=9C=9F-=E6=B8=85?= =?UTF-8?q?=E8=B4=A6=E6=97=A5=E6=9C=9F=EF=BC=8C=E5=A6=82=E6=9E=9C=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=88=99=E4=BD=BF=E7=94=A8=E5=BD=93=E5=89=8D=E6=97=A5?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fi/fi/plugin/operate/ClearAccountBillOperation.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 4525651..152b9cf 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/operate/ClearAccountBillOperation.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/operate/ClearAccountBillOperation.java @@ -600,7 +600,12 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im }else{ IS_HEADER.put("BLDAT",sdf.format(prinfo.getDate("shjh_bizdate")));//凭证日期 } - IS_HEADER.put("BUDAT",sdf.format(new Date()));//过账日期-当前日期 + + if(prinfo.getDate("shjh_cleardate") == null){ + IS_HEADER.put("BUDAT",sdf.format(new Date()));//过账日期-清账日期,如果为空则使用当前日期 + }else{ + IS_HEADER.put("BUDAT",sdf.format(prinfo.getDate("shjh_cleardate")));//过账日期-清账日期,如果为空则使用当前日期 + } String isoCode = prinfo.getDynamicObject("shjh_currency").getString("number"); IS_HEADER.put("WAERS",JhzjUtils.getCurrencyCode(isoCode));//币种 IS_HEADER.put("XBLNR",prinfo.getString("billno"));//参考凭证号-单据编号 固定长度16位