fix(采购退货(过账时间)):

1."采购退货的过账时间"选择菜单规则:WADAT_IST,针对的是不参考交货单过账
This commit is contained in:
leiqiaozhen 2025-03-13 14:01:56 +08:00
parent b6ebe62b3c
commit b5e0779e6a

View File

@ -3541,7 +3541,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
resultMap = remoteMesPostDnService.doExecute(sapJsonBody).getData();
} else if (Constant.DOCUMENT_PURCHASE_RETURN.equals(document.getDocumentType())) {
// 用008-2接口传送
JSONObject sapJsonBody = assemble0082RequestBody(document, user, documentSfcs);
JSONObject sapJsonBody = assemble0082RequestBody(document, user, documentSfcs, dto.getPostDate());
resultMap = remoteFssm0082Service.doExecute(sapJsonBody).getData();
} else {
JSONObject sapJsonBody = assembleRequestBody(document, user, documentSfcs, types, dto.getPostDate());
@ -3560,11 +3560,11 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
return jsonBody;
}
private JSONObject assemble0082RequestBody(Document document, String user, List<DocumentSfc> documentSfcs) {
private JSONObject assemble0082RequestBody(Document document, String user, List<DocumentSfc> documentSfcs, String postDate) {
JSONObject jsonBody = new JSONObject();
JSONObject jsonHead = new JSONObject();
jsonHead.put("ZPARTNER", user);
jsonHead.put("BUDAT", LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
jsonHead.put("BUDAT", postDate);
jsonBody.put("IS_HEAD", jsonHead);
JSONArray itemArray = new JSONArray();
for (DocumentSfc documentSfc : documentSfcs) {