GWM
This commit is contained in:
parent
68147356ab
commit
dff610f8df
@ -29,6 +29,8 @@ exports.ImportExcelData = async (req, res , filename) =>
|
||||
{
|
||||
if(sheetName.toUpperCase() == 'PROPRIETORSHIP'){
|
||||
where_Condition = { losid : losid , entity_type : 'PROPRIETORSHIP' }
|
||||
}else if(sheetName.toUpperCase() == 'PARTNERSHIP'){
|
||||
where_Condition = { losid : losid , entity_type : 'PARTNERSHIP' }
|
||||
}else{
|
||||
where_Condition = { losid : losid , cin : sheetName }
|
||||
}
|
||||
|
||||
@ -103,9 +103,6 @@ exports.MenuList = async (req, res) => {
|
||||
{
|
||||
// create skeleton here
|
||||
financialControllerHelper.createSkeleton(losid,entityid);
|
||||
}else if(Entitydata.dataValues.entity_type == 'PARTNERSHIP' && Entitydata.dataValues.bizname.slice(-3) != 'LLP'){
|
||||
// create skeleton here
|
||||
financialControllerHelper.createSkeleton(losid,entityid);
|
||||
}
|
||||
|
||||
|
||||
@ -176,11 +173,14 @@ exports.MenuList = async (req, res) => {
|
||||
} // end of probe42 api responce success else condition
|
||||
});//end of probe42 api call
|
||||
} else {
|
||||
|
||||
console.log(Entitydata.dataValues.bizname.slice(-3));
|
||||
if(Entitydata.dataValues.entity_type == 'PROPRIETORSHIP')
|
||||
{
|
||||
// create skeleton here
|
||||
financialControllerHelper.createSkeleton(losid,Entitydata.dataValues.id);
|
||||
}else if(Entitydata.dataValues.entity_type == 'PARTNERSHIP' && Entitydata.dataValues.bizname.slice(-3) != 'LLP'){
|
||||
// create skeleton here
|
||||
financialControllerHelper.createSkeleton(losid,Entitydata.dataValues.id);
|
||||
}
|
||||
// resolve here
|
||||
if (key === array.length -1) { resolve(); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user