gwm
This commit is contained in:
parent
a1acdf6f7a
commit
a833a0ead5
@ -79,7 +79,7 @@ exports.PullCreditPdData = async (req, res) => {
|
|||||||
console.log(tableName);
|
console.log(tableName);
|
||||||
await tableName.create(element)
|
await tableName.create(element)
|
||||||
.then((successData)=>{logMsg.info(tableName+" insert success ,PdId= "+successData.dataValues.pd_id);})
|
.then((successData)=>{logMsg.info(tableName+" insert success ,PdId= "+successData.dataValues.pd_id);})
|
||||||
.catch((err)=>{ logMsg.info(tableName+" insert failed ,PdId = "+PDID.dataValues.pd_id+ " ERR =" + err); });
|
.catch((err)=>{ logMsg.info(tableName+" insert failed ,PdId = "+PDID.dataValues.pd_id+ " ERR =" + err ); });
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,17 @@ async function ARRAY(Array , GenInfoObj , OverallKey) {
|
|||||||
Object.assign(ArrayObj,{ [Key] : Value })
|
Object.assign(ArrayObj,{ [Key] : Value })
|
||||||
if (OverallKey == "Borrower & Guarantor Details" && Key == "borrower_name" && element.borrower_type == "Main Applicant") { Object.assign(GenInfoObj,{name : element.borrower_name}); }
|
if (OverallKey == "Borrower & Guarantor Details" && Key == "borrower_name" && element.borrower_type == "Main Applicant") { Object.assign(GenInfoObj,{name : element.borrower_name}); }
|
||||||
}
|
}
|
||||||
|
if (OverallKey == "Borrower & Guarantor Details" && Key == "numbers_of_years_business_running" )
|
||||||
|
{
|
||||||
|
|
||||||
|
if(typeof element.numbers_of_years_business_running === 'number')
|
||||||
|
{
|
||||||
|
|
||||||
|
//RoundOfValue = Math.round(element.numbers_of_years_business_running,2).toString();
|
||||||
|
RoundOfValue = Number((element.numbers_of_years_business_running).toFixed(2).toString());
|
||||||
|
Object.assign(ArrayObj,{ numbers_of_years_business_running : RoundOfValue });
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tempArr.push(ArrayObj)
|
tempArr.push(ArrayObj)
|
||||||
ArrayObj = { };
|
ArrayObj = { };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user