过账日期-清账日期,如果为空则使用当前日期

This commit is contained in:
yuxueliang0813 2025-07-23 11:21:54 +08:00
parent b6f5cad234
commit 6dfe0cfdfa
1 changed files with 6 additions and 1 deletions

View File

@ -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位