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();
|
||||
|
||||
@ -273,7 +273,7 @@ exports.setUpdateStatusProld = (req, res) => {
|
||||
// console.log('response.body', response.body)
|
||||
logData.response_at = new Date();
|
||||
logData.response = error ? JSON.stringify(error) : response.body;
|
||||
sapadapter.queryInsertSapLog(logData, "CREATE_PR");
|
||||
sapadapter.queryInsertSapLog(idxpr, logData, "CREATE_PR");
|
||||
|
||||
if (error) {
|
||||
apireshandler.message = error.toString();
|
||||
@ -418,7 +418,7 @@ exports.releasePRSAP = (req, res) => {
|
||||
request(resuri, function (error, response) {
|
||||
logData.response_at = new Date();
|
||||
logData.response = error ? JSON.stringify(error) : response.body;
|
||||
sapadapter.queryInsertSapLog(logData, "RELEASE_PR");
|
||||
sapadapter.queryInsertSapLog(idxpr, logData, "RELEASE_PR");
|
||||
|
||||
if (error) {
|
||||
// console.log(error);
|
||||
@ -500,7 +500,7 @@ exports.unreleasePRSAP = (req, res) => {
|
||||
request(resuri, function (error, response) {
|
||||
logData.response_at = new Date();
|
||||
logData.response = error ? JSON.stringify(error) : response.body;
|
||||
sapadapter.queryInsertSapLog(logData, "UNRELEASE_PR");
|
||||
sapadapter.queryInsertSapLog(idxpr, logData, "UNRELEASE_PR");
|
||||
|
||||
if (error) {
|
||||
// console.log(error);
|
||||
@ -660,7 +660,7 @@ exports.changePRSAPold = (req, res) => {
|
||||
request(resuri, function (error, response) {
|
||||
logData.response_at = new Date();
|
||||
logData.response = error ? JSON.stringify(error) : response.body;
|
||||
sapadapter.queryInsertSapLog(logData, "CHANGE_PR");
|
||||
sapadapter.queryInsertSapLog(idxpr, logData, "CHANGE_PR");
|
||||
|
||||
if (error) {
|
||||
console.log(error);
|
||||
|
||||
Reference in New Issue
Block a user