delete replaxe

This commit is contained in:
llopis15 2021-03-11 16:47:32 +01:00
parent 08a801ac0d
commit 247e935b14
2 changed files with 0 additions and 30 deletions

View File

@ -23,5 +23,4 @@ function bindShelving(barcode, shelving, level){
})();
})();
}
exports.bindShelving = bindShelving;

View File

@ -1,29 +0,0 @@
function replaceTag(barcode, shelving, level){
const got = require('got');
const config = require('./config');
(async() => {
const info = await config.info
let key = info.data.token;
const { body } = await got.post('http://app.etiquetaselectronicas.com:9999/bind/batchBind', {
json: {
storeId: config.storeId,
tagItemBinds: [{
eslBarcode: barcode,
itemBarcode: shelving + level
}
]
},
responseType: 'json',
headers: {
"Authorization": key
}
})
console.log(body)
})();
}
var barcode = "A0A3B8207222";
var shelving = "ABC";
var level = "2";
replaceTag(barcode, shelving, level);