凭证日期-记账日期 也取单据上的清账日期

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

View File

@ -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));//币种