update
This commit is contained in:
@ -215,7 +215,7 @@ exports.createPOSAPold = (req, res) => {
|
||||
request(resuri, function (error, response) {
|
||||
logData.response_at = new Date();
|
||||
logData.response = error ? JSON.stringify(error) : response.body;
|
||||
sapadapter.queryInsertSapLog(logData, "CREATE_PO");
|
||||
sapadapter.queryInsertSapLog(resdata.data[0]["idxpr"] ?? 0, logData, "CREATE_PO");
|
||||
|
||||
if (error) {
|
||||
// console.log(error);
|
||||
@ -794,7 +794,7 @@ exports.createHeaderPOSAP = (req, res) => {
|
||||
request(resuri, function (error, response) {
|
||||
logData.response_at = new Date();
|
||||
logData.response = error ? JSON.stringify(error) : response.body;
|
||||
sapadapter.queryInsertSapLog(logData, "CREATE_HEADER_SAP");
|
||||
sapadapter.queryInsertSapLog(resdata.data[0]["idxpr"] ?? 0, logData, "CREATE_HEADER_SAP");
|
||||
|
||||
if (error) {
|
||||
apireshandler.message = error.toString();
|
||||
|
||||
Reference in New Issue
Block a user