varun 3 years ago
commit 3292af9179

@ -60,7 +60,7 @@ exports.loginSupplier = async (req) => {
// await resetCounter();//to set customer id back to 0
var s_id = await generateSupplierId()
var building= ((req.body.suppliername).slice(0, 3)).toUpperCase();
var supplier_id = `AWS${building}${s_id}`
var supplier_id = `AWSS${building}${s_id}`
// console.log("This is the reply in the handler after the validations", reply);
s_data = {
supplierId: supplier_id,

Loading…
Cancel
Save