fix(采购退货(过账时间)):
1."采购退货的过账时间"选择菜单规则:WADAT_IST,针对的是不参考交货单过账
This commit is contained in:
parent
b6ebe62b3c
commit
b5e0779e6a
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user