This commit is contained in:
sriramv 2023-08-09 12:34:10 +05:30
parent 68147356ab
commit dff610f8df
2 changed files with 8 additions and 6 deletions

View File

@ -29,6 +29,8 @@ exports.ImportExcelData = async (req, res , filename) =>
{ {
if(sheetName.toUpperCase() == 'PROPRIETORSHIP'){ if(sheetName.toUpperCase() == 'PROPRIETORSHIP'){
where_Condition = { losid : losid , entity_type : 'PROPRIETORSHIP' } where_Condition = { losid : losid , entity_type : 'PROPRIETORSHIP' }
}else if(sheetName.toUpperCase() == 'PARTNERSHIP'){
where_Condition = { losid : losid , entity_type : 'PARTNERSHIP' }
}else{ }else{
where_Condition = { losid : losid , cin : sheetName } where_Condition = { losid : losid , cin : sheetName }
} }

View File

@ -103,9 +103,6 @@ exports.MenuList = async (req, res) => {
{ {
// create skeleton here // create skeleton here
financialControllerHelper.createSkeleton(losid,entityid); 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 responce success else condition
});//end of probe42 api call });//end of probe42 api call
} else { } else {
console.log(Entitydata.dataValues.bizname.slice(-3));
if(Entitydata.dataValues.entity_type == 'PROPRIETORSHIP') if(Entitydata.dataValues.entity_type == 'PROPRIETORSHIP')
{ {
// create skeleton here // create skeleton here
financialControllerHelper.createSkeleton(losid,Entitydata.dataValues.id); 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 // resolve here
if (key === array.length -1) { resolve(); } if (key === array.length -1) { resolve(); }