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