upd
This commit is contained in:
@ -161,9 +161,7 @@ exports.createPOSAPold = ( req, res ) => {
|
|||||||
// form: formjson,
|
// form: formjson,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('resuri po =>', resuri)
|
console.log("resuri PO =>", resuri);
|
||||||
|
|
||||||
// console.log(resuri);
|
|
||||||
request(resuri, function (error, response) {
|
request(resuri, function (error, response) {
|
||||||
console.log('response createPoSAP =>', response)
|
console.log('response createPoSAP =>', response)
|
||||||
if (error) {
|
if (error) {
|
||||||
@ -185,7 +183,6 @@ exports.createPOSAPold = ( req, res ) => {
|
|||||||
});
|
});
|
||||||
errcode = errcode.substring(0, errcode.length-2);
|
errcode = errcode.substring(0, errcode.length-2);
|
||||||
errmsg = errmsg.substring(0, errmsg.length-3);
|
errmsg = errmsg.substring(0, errmsg.length-3);
|
||||||
console.log("Create PO Error =>", errmsg);
|
|
||||||
|
|
||||||
if(errmsg.length>0){
|
if(errmsg.length>0){
|
||||||
poadapter.queryUpdatePoNumber(req,resdata['NUMBER']||resdata['EXPPURCHASEORDER'],errmsg,function(err,data){
|
poadapter.queryUpdatePoNumber(req,resdata['NUMBER']||resdata['EXPPURCHASEORDER'],errmsg,function(err,data){
|
||||||
|
|||||||
Reference in New Issue
Block a user