diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json index fc6d37c..c454fa2 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json @@ -635,6 +635,37 @@ "group_key": "financial_info", "group_title": "Financial Information" }, + { + "question":"Name of the Company", + "question_key":"company_name", + "place_holder":"Enter text", + "type":"3", + "api_properties":{ + "api":"getCompanyListForSMCList", + "api_method":"POST", + "params":{"records":{ + "pd_id":"VAR_PD_ID", + "random_string":"VAR_RANDOM_STRING" + }}, + "fields":[ + "company_id", + "borrower_name" + ] + }, + "answers":null, + "onchange_properties":null, + "is_repeatable":null, + "field_type":"string", + "validations":[ + { + "name":"required", + "isactive":"1", + "validator":"Validators.required", + "message":"Company Name Required", + "value":null + } + ] + }, { "question": "Number of financial years for which we have financials", "question_key": "no_of_financial_years", @@ -672,39 +703,6 @@ ] }, - - { - "question":"Name of the Company", - "question_key":"company_name", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getCompanyListForSMCList", - "api_method":"POST", - "params":{"records":{ - "pd_id":"VAR_PD_ID", - "random_string":"VAR_RANDOM_STRING" - }}, - "fields":[ - "company_id", - "borrower_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Company Name Required", - "value":null - } - ] - }, - { "question_key": "common_remarks", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json index 7cb3d13..d0790f1 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json @@ -1,232 +1,266 @@ { - "section_id":"4", - "section_name":"General Business Information", - "onsubmit":null, - "questions":[ - { - "question":"Type of Business Entity", - "question_key":"business_entity_type", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Type of Business activities", - "question_key":"select_business_activity_type", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Area of Sale", - "question_key":"area_of_sale", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[{ - "answer":"Within India", - "answer_id":"Within India" - }, - { - "answer":"Export", - "answer_id":"Export" - }, - { - "answer":"Both (within India and Export)", - "answer_id":"Both (within India and Export)" - }], - - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Is the business seasonal (Yes / No)", - "question_key":"seasonality", - "type":"2", - "field_width":"45", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - },{ - "answer":"No", - "answer_id":"No" - }], - "onchange_properties":[ + "section_id": "4", + "section_name": "General Business Information", + "onsubmit": null, + "questions": [ + { + "question": [ { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"seasonality", - "expression":"(String('seasonality') == String('Yes'))", - "value_keys":[ - "seasonality" - ], - "questions":[ - { - "question_key":"low_sale_month_reason", - "question":"Reason for Months in which sales/services is low?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "is_subfield":"1", - "field_width":"45", - "parent_question_key":"seasonality", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null + "question":"Name of the Company", + "question_key":"company_name", + "place_holder":"Enter text", + "type":"3", + "api_properties":{ + "api":"getCompanyListForSMCList", + "api_method":"POST", + "params":{"records":{ + "pd_id":"VAR_PD_ID", + "random_string":"VAR_RANDOM_STRING" + }}, + "fields":[ + "company_id", + "borrower_name" + ] + }, + "answers":null, + "onchange_properties":null, + "is_repeatable":null, + "field_type":"string", + "validations":[ + { + "name":"required", + "isactive":"1", + "validator":"Validators.required", + "message":"Company Name Required", + "value":null + } + ] + }, + { + "question": "Type of Business Entity", + "question_key": "business_entity_type", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Type of Business activities", + "question_key": "select_business_activity_type", + "type": "1", + "field_width": "45", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Area of Sale", + "question_key": "area_of_sale", + "type": "3", + "field_width": "45", + "api_properties": null, + "answers": [ + { + "answer": "Within India", + "answer_id": "Within India" + }, + { + "answer": "Export", + "answer_id": "Export" + }, + { + "answer": "Both (within India and Export)", + "answer_id": "Both (within India and Export)" + } + ], + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Is the business seasonal (Yes / No)", + "question_key": "seasonality", + "type": "2", + "field_width": "45", + "api_properties": null, + "answers": [ + { + "answer": "Yes", + "answer_id": "Yes" + }, + { + "answer": "No", + "answer_id": "No" + } + ], + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "seasonality", + "expression": "(String('seasonality') == String('Yes'))", + "value_keys": [ + "seasonality" + ], + "questions": [ + { + "question_key": "low_sale_month_reason", + "question": "Reason for Months in which sales/services is low?", + "place_holder": "Enter the text", + "type": "1", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "is_subfield": "1", + "field_width": "45", + "parent_question_key": "seasonality", + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Required", + "value": null + } + ] + }, + { + "question_key": "low_sale_month", + "question": "Months in which sales/services is low?", + "place_holder": "", + "type": "4", + "api_properties": null, + "answers": [ + { + "answer_id": "January", + "answer": "January" + }, + { + "answer_id": "February", + "answer": "February" + }, + { + "answer_id": "March", + "answer": "March" + }, + { + "answer_id": "April", + "answer": "April" + }, + { + "answer_id": "May", + "answer": "May" + }, + { + "answer_id": "June", + "answer": "June" + }, + { + "answer_id": "July", + "answer": "July" + }, + { + "answer_id": "August", + "answer": "August" + }, + { + "answer_id": "September", + "answer": "September" + }, + { + "answer_id": "October", + "answer": "October" + }, + { + "answer_id": "November", + "answer": "November" + }, + { + "answer_id": "December", + "answer": "December" + } + ], + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "field_width": "45", + "is_subfield": "1", + "parent_question_key": "seasonality", + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Required", + "value": null + } + ] } ] - }, - { - "question_key":"low_sale_month", - "question":"Months in which sales/services is low?", - "place_holder":"", - "type":"4", - "api_properties":null, - "answers":[ - { - "answer_id":"January", - "answer":"January" - }, - { - "answer_id":"February", - "answer":"February" - }, - { - "answer_id":"March", - "answer":"March" - }, - { - "answer_id":"April", - "answer":"April" - }, - { - "answer_id":"May", - "answer":"May" - }, - { - "answer_id":"June", - "answer":"June" - }, - { - "answer_id":"July", - "answer":"July" - }, - { - "answer_id":"August", - "answer":"August" - }, - { - "answer_id":"September", - "answer":"September" - }, - { - "answer_id":"October", - "answer":"October" - }, - { - "answer_id":"November", - "answer":"November" - }, - { - "answer_id":"December", - "answer":"December" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "is_subfield":"1", - "parent_question_key":"seasonality", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - - ] - } - ] - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question_key":"common_remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - - + } + ] + } + ], + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + } + ], + "is_repeatable": "1", + "group_title": "Details of General Business Information", + "group_key": "general_business" + }, + { + "question_key": "common_remarks", + "question": "Remarks", + "place_holder": "Enter the text", + "type": "7", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "45", + "validations": [] } - ], - "is_repeatable":"1", - "group_title":"Details of General Business Information", - "group_key":"general_business" - } - \ No newline at end of file + ] +} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json index bfa0124..c454fa2 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json @@ -1,839 +1,721 @@ -{ - "section_id":"10", - "section_name":"Financial Information", - "onsubmit":[ - { - "expression":"(function (){let sum_val=null;let ques_key=[];control.forEach(ques_obj=>{ques_key.push(ques_obj[submitProperty.key_name])});console.log('none',ques_key);return new Set(ques_key).size === ques_key.length}())", - "group_key":"financial_info", - "key_name":"fy", - "msg":"Financial Year already entered earlier" - } - ], - "questions":[ - { - "question":"Number of financial years for which we have financials", - "question_key":"no_of_financial_years", - "place_holder":"Enter the number", - "type":"1", - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - }, - { - "name":"pattern", - "isactive":"1", - "validator":"[0-9]*", - "message":"alphabets only ", - "value":null - } - ] - }, - { - "question":[ - { - "question":"Enter FY", - "question_key":"fy", - "type":"3", - "field_width":"45", - "answers":[ - - ], - "answer_value":"GET_FY_YEARS", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Fin Yr Required", - "value":null - } - ] - }, - { - "question":"Sales / Revenue (Rs)", - "question_key":"sales_revenue", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"((Number(net_profit)/Number(sales_revenue))*100).toFixed(2)", - "value_keys":[ - "sales_revenue","net_profit" - ], - "insert_control":"net_profit_sales_percent" - }, - { - "purpose":"answer_value_arr", - "arr_include":["py","now"], - "expression":"((Number(sales_revenue[now])-Number(sales_revenue[py]))/Number(sales_revenue[py]))*100", - "value_keys":[ - "sales_revenue" - ], - "insert_control":"sales_py" - }, - { - "purpose":"answer_value_arr", - "arr_include":["py","now"], - "expression":"(((Number(net_profit_sales_percent[now])-Number(net_profit_sales_percent[py]))/Number(net_profit_sales_percent[py]))*100).toFixed(2)", - "value_keys":[ - "net_profit_sales_percent" - ], - "insert_control":"netprofit_py_percent" - } - ], - "is_repeatable":null, - "field_type":"numtoword", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Net Profit / (Net Loss) (Rs) ", - "question_key":"net_profit", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"((Number(net_profit)/Number(sales_revenue))*100).toFixed(2)", - "value_keys":[ - "sales_revenue","net_profit" - ], - "insert_control":"net_profit_sales_percent" - }, - { - "purpose":"answer_value_arr", - "arr_include":["py","now"], - "expression":"((Number(net_profit[now])-Number(net_profit[py]))/Number(net_profit[py]))*100", - "value_keys":[ - "net_profit" - ], - "insert_control":"netprofit_py" - }, - { - "purpose":"answer_value_arr", - "arr_include":["py","now"], - "expression":"(((Number(net_profit_sales_percent[now])-Number(net_profit_sales_percent[py]))/Number(net_profit_sales_percent[py]))*100).toFixed(2)", - "value_keys":[ - "net_profit_sales_percent" - ], - "insert_control":"netprofit_py_percent" - } - ], - "is_repeatable":null, - "field_type":"numtoword", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Net Profit or (Net Loss) to Sales % ", - "question_key":"net_profit_sales_percent", - "type":"1", - "is_disabled":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value_arr", - "arr_include":["py","now"], - "expression":"(((Number(net_profit_sales_percent[now])-Number(net_profit_sales_percent[py]))/Number(net_profit_sales_percent[py]))*100).toFixed(2)", - "value_keys":[ - "net_profit_sales_percent" - ], - "insert_control":"netprofit_py_percent" - } - ], - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"% (↑ /↓) in Sales over PY", - "question_key":"sales_py", - "type":"1", - "is_disabled":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"% (↑ /↓) in Net Profit over PY", - "question_key":"netprofit_py", - "type":"1", - "is_disabled":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"% (↑ /↓) in Net Profit % over PY", - "question_key":"netprofit_py_percent", - "type":"1", - "is_disabled":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - - { - "question":"Debtor Days as per CET", - "sub_title":"In Case of credit sales, what is the average no. of days taken to receive the money?", - "question_key":"debtor_days_cet", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Creditor Days as per CET", - "sub_title":"In Case of credit purchases, what is the average no. of days taken to pay the money?", - "question_key":"creditor_days_cet", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Inventory Days as per CET", - "sub_title":"What is the average no. of days for which stock lies unsold during the year?", - "question_key":"inventory_days_cet", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - } - - - - ], - "is_repeatable":"1", - "group_key":"financial_info", - "group_title":"Financial Information" - }, - { - "question":"Debtor Days as per CM Discussion", - "question_key":"debtor_days_cm", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Creditor Days as per CM Discussion", - "question_key":"creditor_days_cm", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Inventory Days as per CM Discussion", - "question_key":"inventory_days_cm", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Broken Period starting from (Date)", - "question_key":"broken_period_from_month", - "type":"1", - "field_width":"45", - "place_holder":"DD-MM-YYYY (Eg 05-02-2020)", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"(function (){let final_value = ''; if(String('broken_period_to_month') && String('broken_period_from_month')) {let from_date = new Date((String('broken_period_from_month')).split('-').reverse().join('-'));let to_date = new Date((String('broken_period_to_month')).split('-').reverse().join('-'));console.log(to_date);if(!from_date || !to_date || !from_date instanceof Date || !to_date instanceof Date || isNaN(from_date) || isNaN(to_date)) {final_value = '';return;}final_value = to_date.getMonth() - from_date.getMonth() + (12 * (to_date.getFullYear() - from_date.getFullYear()))};return final_value}())", - "value_keys":[ - "broken_period_to_month", "broken_period_from_month" - ], - "insert_control":"broken_period_no_of_months" - } - ], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Broken Period starting to (Date)", - "question_key":"broken_period_to_month", - "type":"1", - "place_holder":"DD-MM-YYYY (Eg 03-12-2020)", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"(function (){let final_value = ''; if(String('broken_period_to_month') && String('broken_period_from_month')) {let from_date = new Date((String('broken_period_from_month')).split('-').reverse().join('-'));let to_date = new Date((String('broken_period_to_month')).split('-').reverse().join('-'));console.log(to_date);if(!from_date || !to_date || !from_date instanceof Date || !to_date instanceof Date || isNaN(from_date) || isNaN(to_date)) {final_value = '';return;}final_value = to_date.getMonth() - from_date.getMonth() + (12 * (to_date.getFullYear() - from_date.getFullYear()))};return final_value}())", - "value_keys":[ - "broken_period_to_month", "broken_period_from_month" - ], - "insert_control":"broken_period_no_of_months" - } - ], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"No of Months", - "question_key":"broken_period_no_of_months", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Turnover for Broken Period in CY (Rs)", - "question_key":"broken_period_turnover_cy", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"(((Number(broken_period_turnover_cy)-Number(broken_period_turnover_py))/Number(broken_period_turnover_cy))*100).toFixed(2)", - "value_keys":[ - "broken_period_turnover_py","broken_period_turnover_cy" - ], - "insert_control":"broken_period_turnover_percent" - } - ], - "is_repeatable":null, - "field_type":"numtoword", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Turnover for Broken Period in PY (Rs)", - "question_key":"broken_period_turnover_py", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"(((Number(broken_period_turnover_cy)-Number(broken_period_turnover_py))/Number(broken_period_turnover_cy))*100).toFixed(2)", - "value_keys":[ - "broken_period_turnover_py","broken_period_turnover_cy" - ], - "insert_control":"broken_period_turnover_percent" - } - ], - "is_repeatable":null, - "field_type":"numtoword", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Increase / Decrease in Turnover for Broken Period %", - "question_key":"broken_period_turnover_percent", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Does the business have any working capital facility from any lender other than Moneywise?", - "question_key":"is_any_other_working_captial_facility", - "type":"2", - "field_width":"45", - "answers":[ - { - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - } - ], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_any_other_working_captial_facility", - "expression":"(String('is_any_other_working_captial_facility') === String('Yes'))", - "value_keys":[ - "is_any_other_working_captial_facility" +{ + "section_id": "10", + "section_name": "Financial Information", + "onsubmit": [ + { + "expression": "(function (){let sum_val=null;let ques_key=[];if(!control || control == undefined || control == null){return true};control.forEach(ques_obj=>{ques_key.push(ques_obj[submitProperty.key_name])});console.log('none',ques_key);return new Set(ques_key).size === ques_key.length}())", + "group_key": "financial_info", + "key_name": "fy", + "msg": "Financial Year already entered earlier" + } + ], + "questions": [ + { + "question":"Is the Financial information available?", + "question_key":"financial_info_available", + "type":"2", + "field_width":"45", + "api_properties":null, + "onchange_properties":[ + { + "purpose":"FORM_CTRL", + "form_controls":[ + { + "insert_index":"financial_info_available", + "expression":"(String('financial_info_available') == String('Yes'))", + "value_keys":[ + "financial_info_available" + ], + "questions":[ + { + "question": "Net Profit / (Net Loss) (Rs)", + "question_key": "net_profit_rs", + "place_holder": "Enter the text", + "type": "1", + "field_width": "45", + "api_properties": null, + "answers": null, + "is_repeatable": null, + "field_type": "numtoword", + "validations": [ + ], - "questions":[ - { - "question":"Details of above facilities need to be entered", - "question_key":"facility_details_specify", - "type":"7", - "placeholder":"Enter the text", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_any_other_working_captial_facility", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - { - "question":"Facility details i.e. Letter of Credit/ Bank guarantee, CC limit etc.", - "question_key":"facility_details_other_lender", - "type":"3", - "field_width":"45", - "answers":[ - { - "answer":"Letter of Credit", - "answer_id":"Letter of Credit" - }, - { - "answer":"Bank guarantee", - "answer_id":"Bank guarantee" - }, - { - "answer":"CC limit", - "answer_id":"CC limit" - }, - { - "answer":"Others", - "answer_id":"Others" - } - ], - "api_properties":null, - "onchange_properties": [ - { - "purpose":"FORM_CTRL", - "form_controls":[{ - "insert_index":"facility_details_other_lender", - "expression":"(String('facility_details_other_lender').toLowerCase() == String('others'))", - "value_keys":[ - "facility_details_other_lender" - ], - "questions":[ - { - "question": "Specify Facility details", - "question_key": "facility_details_other", - "type": "1", - "field_width": "45", - "field_type": "string", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "((Number(net_profit_rs)/Number(sales_amount))*100).toFixed(2)", + "value_keys": [ + "sales_amount", + "net_profit_rs" + ], + "insert_control": "net_profit_to_sales_percent" + } + ] + }, + { + "question": "Net Profit or (Net Loss) to Sales % ", + "question_key": "net_profit_to_sales_percent", + "place_holder": "Enter number", + "type": "1", + "field_width": "45", + "api_properties": null, + "answers": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "(Number(sales_amount)*Number(net_profit_to_sales_percent))/100", + "value_keys": [ + "sales_amount", + "net_profit_to_sales_percent" + ], + "insert_control": "net_profit_rs" + } + ], + "is_repeatable": null, + "field_type": "num", + "validations": [ + + { + "name": "max", + "validator": "100", + "isactive": "1", + "message": "Number must be less than 100", + "value": null + } + ] + }, + { + "question": "Sales / Revenue (Rs)", + "sub_title": "Particulars of Financials for Latest Year as per person met during PD visit", + "question_key": "sales_amount", + "place_holder": "Enter text", + "type": "1", + "field_width": "100", + "field_type": "numtoword", + "api_properties": null, + "answers": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "(function (){let final_value; Number(net_profit_to_sales_percent) ? final_value = (Number(sales_amount)*Number(net_profit_to_sales_percent))/100 : '';return final_value}())", + "value_keys": [ + "sales_amount", + "net_profit_to_sales_percent" + ], + "insert_control": "net_profit_rs" + }, + { + "purpose": "answer_value", + "expression": "(function (){let final_value; Number(net_profit_rs) ? final_value = (Number(net_profit_rs)/Number(sales_amount))*100 : '';return final_value.toFixed(2)}())", + "value_keys": [ + "sales_amount", + "net_profit_rs" + ], + "insert_control": "net_profit_to_sales_percent" + } + ], + "is_repeatable": null, + "validations": [ + + ] + }, + { + "question": "Does the business have any working capital facility from any lender other than Moneywise?", + "question_key": "is_any_other_working_captial_facility", + "type": "2", + "field_width": "45", + "answers": [ + { + "answer": "Yes", + "answer_id": "Yes" + }, + { + "answer": "No", + "answer_id": "No" + } + ], + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_any_other_working_captial_facility", + "expression": "(String('is_any_other_working_captial_facility') === String('Yes'))", + "value_keys": [ + "is_any_other_working_captial_facility" + ], + "questions": [ + { + "question": "Details of above facilities need to be entered", + "question_key": "facility_details_specify", + "type": "7", + "placeholder": "Enter the text", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_any_other_working_captial_facility", + "validations": [ + + ] + }, + { + "question": "Facility details i.e. Letter of Credit/ Bank guarantee, CC limit etc.", + "question_key": "facility_details_other_lender", + "type": "3", + "field_width": "45", + "answers": [ + { + "answer": "Letter of Credit", + "answer_id": "Letter of Credit" + }, + { + "answer": "Bank guarantee", + "answer_id": "Bank guarantee" + }, + { + "answer": "CC limit", + "answer_id": "CC limit" + }, + { + "answer": "Others", + "answer_id": "Others" + } + ], + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "facility_details_other_lender", + "expression": "(String('facility_details_other_lender').toLowerCase() == String('others'))", + "value_keys": [ + "facility_details_other_lender" + ], + "questions": [ + { + "question": "Specify Facility details", + "question_key": "facility_details_other", + "type": "1", + "field_width": "45", + "field_type": "string", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "facility_details_other_lender", + "validations": [] + } + ] + } ] - } - ] - }] - } - ], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_any_other_working_captial_facility", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - } - - ] - } - ] - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - - ] - }, - - { - "question":"Sales / Revenue (Rs)", - "sub_title":"Particulars of Financials for Latest Year as per person met during PD visit", - "question_key":"sales_amount", - "place_holder":"Enter text", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "answers":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"(function (){let final_value; Number(net_profit_to_sales_percent) ? final_value = (Number(sales_amount)*Number(net_profit_to_sales_percent))/100 : '';return final_value}())", - "value_keys":[ - "sales_amount", "net_profit_to_sales_percent" - ], - "insert_control":"net_profit_rs" - }, - { - "purpose":"answer_value", - "expression":"(function (){let final_value; Number(net_profit_rs) ? final_value = (Number(net_profit_rs)/Number(sales_amount))*100 : '';return final_value.toFixed(2)}())", - "value_keys":[ - "sales_amount", "net_profit_rs" - ], - "insert_control":"net_profit_to_sales_percent" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Net Profit or (Net Loss) to Sales % ", - "question_key":"net_profit_to_sales_percent", - "place_holder":"Enter number", - "type":"1", - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"(Number(sales_amount)*Number(net_profit_to_sales_percent))/100", - "value_keys":[ - "sales_amount", "net_profit_to_sales_percent" - ], - "insert_control":"net_profit_rs" - } - ], - "is_repeatable":null, - "field_type":"num", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - }, - { - "name":"max", - "validator":"100", - "isactive":"1", - "message":"Number must be less than 100", - "value":null - } - ] - }, - { - "question":"Net Profit / (Net Loss) (Rs)", - "question_key":"net_profit_rs", - "place_holder":"Enter the text", - "type":"1", - "field_width":"45", - "api_properties":null, - "answers":null, - "is_repeatable":null, - "field_type":"numtoword", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ], - "onchange_properties":[ - { - "purpose":"answer_value", - "expression":"((Number(net_profit_rs)/Number(sales_amount))*100).toFixed(2)", - "value_keys":[ - "sales_amount", "net_profit_rs" - ], - "insert_control":"net_profit_to_sales_percent" - } - ] - }, - { - "question":"Name of the Company", - "question_key":"company_name", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getCompanyListForSMCList", - "api_method":"POST", - "params":{"records":{ - "pd_id":"VAR_PD_ID", - "random_string":"VAR_RANDOM_STRING" - }}, - "fields":[ - "company_id", - "borrower_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Company Name Required", - "value":null - } - ] - }, - { - "question_key":"common_remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_any_other_working_captial_facility", + "validations": [ + + ] + } + ] + } + ] + } + ], + "is_repeatable": null, + "validations": [ + + ] + }, + { + "question": "Increase / Decrease in Turnover for Broken Period %", + "question_key": "broken_period_turnover_percent", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Turnover for Broken Period in PY (Rs)", + "question_key": "broken_period_turnover_py", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "(((Number(broken_period_turnover_cy)-Number(broken_period_turnover_py))/Number(broken_period_turnover_cy))*100).toFixed(2)", + "value_keys": [ + "broken_period_turnover_py", + "broken_period_turnover_cy" + ], + "insert_control": "broken_period_turnover_percent" + } + ], + "is_repeatable": null, + "field_type": "numtoword", + "validations": [ + + ] + }, + { + "question": "Turnover for Broken Period in CY (Rs)", + "question_key": "broken_period_turnover_cy", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "(((Number(broken_period_turnover_cy)-Number(broken_period_turnover_py))/Number(broken_period_turnover_cy))*100).toFixed(2)", + "value_keys": [ + "broken_period_turnover_py", + "broken_period_turnover_cy" + ], + "insert_control": "broken_period_turnover_percent" + } + ], + "is_repeatable": null, + "field_type": "numtoword", + "validations": [ + + ] + }, + { + "question": "No of Months", + "question_key": "broken_period_no_of_months", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Broken Period starting to (Date)", + "question_key": "broken_period_to_month", + "type": "1", + "place_holder": "DD-MM-YYYY (Eg 03-12-2020)", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "(function (){let final_value = ''; if(String('broken_period_to_month') && String('broken_period_from_month')) {let from_date = new Date((String('broken_period_from_month')).split('-').reverse().join('-'));let to_date = new Date((String('broken_period_to_month')).split('-').reverse().join('-'));console.log(to_date);if(!from_date || !to_date || !from_date instanceof Date || !to_date instanceof Date || isNaN(from_date) || isNaN(to_date)) {final_value = '';return;}final_value = to_date.getMonth() - from_date.getMonth() + (12 * (to_date.getFullYear() - from_date.getFullYear()))};return final_value}())", + "value_keys": [ + "broken_period_to_month", + "broken_period_from_month" + ], + "insert_control": "broken_period_no_of_months" + } + ], + "is_repeatable": null, + "field_type": "string", + "validations": [ + + ] + }, + { + "question": "Broken Period starting from (Date)", + "question_key": "broken_period_from_month", + "type": "1", + "field_width": "45", + "place_holder": "DD-MM-YYYY (Eg 05-02-2020)", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "(function (){let final_value = ''; if(String('broken_period_to_month') && String('broken_period_from_month')) {let from_date = new Date((String('broken_period_from_month')).split('-').reverse().join('-'));let to_date = new Date((String('broken_period_to_month')).split('-').reverse().join('-'));console.log(to_date);if(!from_date || !to_date || !from_date instanceof Date || !to_date instanceof Date || isNaN(from_date) || isNaN(to_date)) {final_value = '';return;}final_value = to_date.getMonth() - from_date.getMonth() + (12 * (to_date.getFullYear() - from_date.getFullYear()))};return final_value}())", + "value_keys": [ + "broken_period_to_month", + "broken_period_from_month" + ], + "insert_control": "broken_period_no_of_months" + } + ], + "is_repeatable": null, + "field_type": "string", + "validations": [ + + ] + }, + { + "question": "Inventory Days as per CM Discussion", + "question_key": "inventory_days_cm", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Creditor Days as per CM Discussion", + "question_key": "creditor_days_cm", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Debtor Days as per CM Discussion", + "question_key": "debtor_days_cm", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": [ + { + "question": "Enter FY", + "question_key": "fy", + "type": "3", + "field_width": "45", + "answers": [], + "answer_value": "GET_FY_YEARS", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + ] + }, + { + "question": "Sales / Revenue (Rs)", + "question_key": "sales_revenue", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "((Number(net_profit)/Number(sales_revenue))*100).toFixed(2)", + "value_keys": [ + "sales_revenue", + "net_profit" + ], + "insert_control": "net_profit_sales_percent" + }, + { + "purpose": "answer_value_arr", + "arr_include": [ + "py", + "now" + ], + "expression": "((Number(sales_revenue[now])-Number(sales_revenue[py]))/Number(sales_revenue[py]))*100", + "value_keys": [ + "sales_revenue" + ], + "insert_control": "sales_py" + }, + { + "purpose": "answer_value_arr", + "arr_include": [ + "py", + "now" + ], + "expression": "(((Number(net_profit_sales_percent[now])-Number(net_profit_sales_percent[py]))/Number(net_profit_sales_percent[py]))*100).toFixed(2)", + "value_keys": [ + "net_profit_sales_percent" + ], + "insert_control": "netprofit_py_percent" + } + ], + "is_repeatable": null, + "field_type": "numtoword", + "validations": [ + + ] + }, + { + "question": "Net Profit / (Net Loss) (Rs) ", + "question_key": "net_profit", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value", + "expression": "((Number(net_profit)/Number(sales_revenue))*100).toFixed(2)", + "value_keys": [ + "sales_revenue", + "net_profit" + ], + "insert_control": "net_profit_sales_percent" + }, + { + "purpose": "answer_value_arr", + "arr_include": [ + "py", + "now" + ], + "expression": "((Number(net_profit[now])-Number(net_profit[py]))/Number(net_profit[py]))*100", + "value_keys": [ + "net_profit" + ], + "insert_control": "netprofit_py" + }, + { + "purpose": "answer_value_arr", + "arr_include": [ + "py", + "now" + ], + "expression": "(((Number(net_profit_sales_percent[now])-Number(net_profit_sales_percent[py]))/Number(net_profit_sales_percent[py]))*100).toFixed(2)", + "value_keys": [ + "net_profit_sales_percent" + ], + "insert_control": "netprofit_py_percent" + } + ], + "is_repeatable": null, + "field_type": "numtoword", + "validations": [ + + ] + }, + { + "question": "Net Profit or (Net Loss) to Sales % ", + "question_key": "net_profit_sales_percent", + "type": "1", + "is_disabled": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": [ + { + "purpose": "answer_value_arr", + "arr_include": [ + "py", + "now" + ], + "expression": "(((Number(net_profit_sales_percent[now])-Number(net_profit_sales_percent[py]))/Number(net_profit_sales_percent[py]))*100).toFixed(2)", + "value_keys": [ + "net_profit_sales_percent" + ], + "insert_control": "netprofit_py_percent" + } + ], + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "% Variation in Sales over PY", + "question_key": "sales_py", + "type": "1", + "is_disabled": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "% Variation in Net Profit over PY", + "question_key": "netprofit_py", + "type": "1", + "is_disabled": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Variation in Net Profit % over PY", + "question_key": "netprofit_py_percent", + "type": "1", + "is_disabled": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Debtor Days as per CET", + "sub_title": "In Case of credit sales, what is the average no. of days taken to receive the money?", + "question_key": "debtor_days_cet", + "type": "1", + "field_width": "100", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Creditor Days as per CET", + "sub_title": "In Case of credit purchases, what is the average no. of days taken to pay the money?", + "question_key": "creditor_days_cet", + "type": "1", + "field_width": "100", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + }, + { + "question": "Inventory Days as per CET", + "sub_title": "What is the average no. of days for which stock lies unsold during the year?", + "question_key": "inventory_days_cet", + "type": "1", + "field_width": "100", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + + ] + } + ], + "is_repeatable": "1", + "group_key": "financial_info", + "group_title": "Financial Information" + }, + { + "question":"Name of the Company", + "question_key":"company_name", + "place_holder":"Enter text", + "type":"3", + "api_properties":{ + "api":"getCompanyListForSMCList", + "api_method":"POST", + "params":{"records":{ + "pd_id":"VAR_PD_ID", + "random_string":"VAR_RANDOM_STRING" + }}, + "fields":[ + "company_id", + "borrower_name" + ] + }, + "answers":null, + "onchange_properties":null, + "is_repeatable":null, + "field_type":"string", + "validations":[ + { + "name":"required", + "isactive":"1", + "validator":"Validators.required", + "message":"Company Name Required", + "value":null + } + ] + }, + { + "question": "Number of financial years for which we have financials", + "question_key": "no_of_financial_years", + "place_holder": "Enter the number", + "type": "1", + "field_width": "45", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "num", + "validations": [ + { + "name": "pattern", + "isactive": "1", + "validator": "[0-9]*", + "message": "Numeric only ", + "value": null + } + ] + } + ] + }] + }], + "is_repeatable":null, + "answers":[{ + "answer":"Yes", + "answer_id":"Yes" + }, + { + "answer":"No", + "answer_id":"No" + }], + "validations":[ + + ] + }, + + { + "question_key": "common_remarks", + "question": "Remarks", + "place_holder": "Enter the text", + "type": "7", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "45", + "validations": [] + } ] } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json index 1e41050..c157a1a 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json @@ -5,6 +5,37 @@ "questions":[ { "question":[ + { + "question":"Name of the Company", + "question_key":"company_name", + "place_holder":"Enter text", + "type":"3", + "api_properties":{ + "api":"getCompanyListForSMCList", + "api_method":"POST", + "params":{"records":{ + "pd_id":"VAR_PD_ID", + "random_string":"VAR_RANDOM_STRING" + }}, + "fields":[ + "company_id", + "borrower_name" + ] + }, + "answers":null, + "onchange_properties":null, + "is_repeatable":null, + "field_type":"string", + "validations":[ + { + "name":"required", + "isactive":"1", + "validator":"Validators.required", + "message":"Company Name Required", + "value":null + } + ] + }, { "question":"Type of Business Entity", "question_key":"business_entity_type",