condition added : ps
This commit is contained in:
parent
3f30f3946a
commit
15ce2951ea
@ -92,10 +92,10 @@ async function ARRAY(Array , GenInfoObj , OverallKey) {
|
||||
if (typeof Value === "object" && ( Value !== null )) {
|
||||
Obj = await OBJECT( element, Key , Value );
|
||||
Object.assign(ArrayObj, Obj )
|
||||
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" || element.entity_type !== "Individual") ) { Object.assign(GenInfoObj,{name : element.borrower_name}); }
|
||||
} else {
|
||||
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" || element.entity_type !== "Individual") ) { Object.assign(GenInfoObj,{name : element.borrower_name}); }
|
||||
}
|
||||
if (OverallKey == "Borrower & Guarantor Details" && Key == "numbers_of_years_business_running" )
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user