cfpl,lfmp changes (add company)

This commit is contained in:
gayathri1990 2021-04-19 20:53:02 +05:30
parent af2985ac13
commit 3ad6e5aa14
32 changed files with 6536 additions and 34 deletions

View File

@ -305,7 +305,37 @@ export class QuesFormService {
}) })
} }
apiCall(api_name:string,params,api_method?){ apiCall(api_name:string,params,api_method?){
if(api_method.toUpperCase() == 'POST'){ if(api_method.toUpperCase() == 'POST'){
//let param = params;
let temp=params;
if(temp.hasOwnProperty("records")) {
temp=temp.records
}
let keysList = Object.keys(temp)
if(keysList.length > 0) {
keysList.forEach(val=>{
if(temp[val] == 'VAR_PD_ID') {
temp[val] = this.pd_all_details.pdmaster_details.pd_id
}
if(temp[val]=='VAR_RANDOM_STRING')
{
temp[val] = this.pd_all_details.pdmaster_details.random_string
}
//param = param.set(val,params[val])
})
if(params.hasOwnProperty("records"))
{
params.records=temp
}
else
{
params=temp;
}
}
return this.http.post(apiUrl+api_name,params) return this.http.post(apiUrl+api_name,params)
} }
else{ else{
@ -317,6 +347,7 @@ export class QuesFormService {
if(params[val] == 'VAR_PD_ID') { if(params[val] == 'VAR_PD_ID') {
params[val] = this.pd_all_details.pdmaster_details.pd_id params[val] = this.pd_all_details.pdmaster_details.pd_id
} }
httpParams = httpParams.set(val,params[val]) httpParams = httpParams.set(val,params[val])
}) })
} }

Binary file not shown.

View File

@ -0,0 +1,723 @@
{
"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": [
],
"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": [
]
}
]
}
]
}
],
"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": "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":"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": []
}
]
}

View File

@ -0,0 +1,359 @@
{
"section_id":"11",
"section_name":"Supplier details",
"onsubmit":null,
"questions":[
{
"question":"Is the Supplier information available?",
"question_key":"supplier_info_available",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"supplier_info_available",
"expression":"(String('supplier_info_available') == String('No'))",
"value_keys":[
"supplier_info_available"
],
"questions":[
{ "question":"Reason",
"question_key":"supplier_not_available_reason",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
]
} ] } ] },
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"supplier_info_available",
"expression":"(String('supplier_info_available') == String('Yes'))",
"value_keys":[
"supplier_info_available"
],
"questions":[
{
"question":[{
"question":"Raw Material Name/ Trading Product Name/ Service Name",
"question_key":"provider_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Supplier Name",
"question_key":"supplier_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person name",
"question_key":"contact_person_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person Designation",
"question_key":"contact_person_designation",
"type":"8",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"COMPANYRELATIONSHIPS"
},
"fields":[
"company_relationship_id",
"name"
]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person Mobile Number",
"question_key":"contact_person_mobile_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{10,12}",
"message":"Mobile number should be 10-12 digit",
"value":null
}
]
},
{
"question":"STD Code",
"sub_title":"Contact Person Landline number",
"question_key":"person_stdcode",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{3,5}",
"message":"Maximum 5 digit allowed",
"value":null
}
]
},
{
"question":"Contact Person Landline number",
"question_key":"person_landline",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{6,8}",
"message":"Maximum 8 digit allowed",
"value":null
}
]
},
{
"question":"Payment Terms",
"question_key":"payment_type",
"type":"3",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"PAYMENTMODE"
},
"fields":[
"id",
"name"
]
},
"onchange_properties":[{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"payment_type",
"expression":"(String('payment_type') == String('3'))",
"value_keys":[
"payment_type"
],
"questions":[
{
"question":"No. of credit period provided by supplier",
"question_key":"credit_period_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
]
},
{
"question":"What % of total purchases are done on credit?",
"question_key":"credit_total_purchase",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"max",
"isactive":"1",
"validator":"100",
"message":"Percentage should lower or equal to '100'",
"value":null
}
]
}
]}]}],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
]
},
{
"question":"Payment Mode",
"question_key":"payment_mode",
"type":"3",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":[
{
"answer_id":"Payment made in Cash",
"answer":"Payment made in Cash"
},
{
"answer_id":"Payment made through Banking channels",
"answer":"Payment made through Banking channels"
},
{
"answer_id":"Payment made through Cash and Banking channels",
"answer":"Payment made through Cash and Banking channels"
}
],
"validations":[
]
},
{
"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
}
]
}
],
"is_repeatable":"1",
"group_title":"Supplier Details",
"group_key":"supplier_details"
}
]
}
]
}],
"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":[
]
}
]
}

View File

@ -0,0 +1,359 @@
{
"section_id":"12",
"section_name":"Clients details",
"onsubmit":null,
"questions":[
{
"question":"Is the Client information available?",
"question_key":"client_info_available",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"client_info_available",
"expression":"(String('client_info_available') == String('No'))",
"value_keys":[
"client_info_available"
],
"questions":[
{ "question":"Reason",
"question_key":"client_not_available_reason",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
]
} ] } ] },
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"client_info_available",
"expression":"(String('client_info_available') == String('Yes'))",
"value_keys":[
"client_info_available"
],
"questions":[
{
"question":[{
"question":"Trading Product/Service/Manufacturing Product name",
"question_key":"provider_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Client Name",
"question_key":"client_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person name",
"question_key":"contact_person_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person Designation",
"question_key":"contact_person_designation",
"type":"8",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"COMPANYRELATIONSHIPS"
},
"fields":[
"company_relationship_id",
"name"
]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person Mobile Number",
"question_key":"contact_person_mobile_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{10,12}",
"message":"Mobile number should be 10-12 digit",
"value":null
}
]
},
{
"question":"STD Code",
"sub_title":"Contact Person Landline number",
"question_key":"person_stdcode",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{3,5}",
"message":"Maximum 5 digit allowed",
"value":null
}
]
},
{
"question":"Contact Person Landline number",
"question_key":"person_landline",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{6,8}",
"message":"Maximum 8 digit allowed",
"value":null
}
]
},
{
"question":"Payment Terms",
"question_key":"payment_type",
"type":"3",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"PAYMENTMODE"
},
"fields":[
"id",
"name"
]
},
"onchange_properties":[{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"payment_type",
"expression":"(String('payment_type') == String('3'))",
"value_keys":[
"payment_type"
],
"questions":[
{
"question":"No. of days of credit period provided by client",
"question_key":"credit_period_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
]
},
{
"question":"What % of total sales are done on credit?",
"question_key":"credit_total_purchase",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"max",
"isactive":"1",
"validator":"100",
"message":"Percentage should lower or equal to '100'",
"value":null
}
]
}
]}]}],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
]
},
{
"question":"Payment Mode",
"question_key":"payment_mode",
"type":"3",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":[
{
"answer_id":"Payment made in Cash",
"answer":"Payment made in Cash"
},
{
"answer_id":"Payment made through Banking channels",
"answer":"Payment made through Banking channels"
},
{
"answer_id":"Payment made through Cash and Banking channels",
"answer":"Payment made through Cash and Banking channels"
}
],
"validations":[
]
},
{
"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
}
]
}
],
"is_repeatable":"1",
"group_title":"Client Details",
"group_key":"client_details"
}
]
}
]
}],
"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":[
]
}
]
}

View File

@ -0,0 +1,330 @@
{
"section_id": "13",
"section_name": "Stock details",
"onsubmit": [],
"questions": [
{
"question": "Is stock applicable to the business (Yes / No)",
"question_key": "stock_info_available",
"type": "2",
"field_width": "45",
"api_properties": null,
"onchange_properties": [
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"insert_index": "stock_info_available",
"expression": "(String('stock_info_available') == String('No'))",
"value_keys": [
"stock_info_available"
],
"questions": [
{
"question": "Reason",
"question_key": "stock_not_available_reason",
"type": "7",
"field_width": "100",
"api_properties": null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "stock_info_available",
"answers": null,
"validations": [
]
}
]
}
]
},
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"insert_index": "stock_info_available",
"expression": "(String('stock_info_available') == String('Yes'))",
"value_keys": [
"stock_info_available"
],
"questions":[
{
"question": "Is the stock of finished goods observed, sufficient considering the size of operations",
"question_key": "estimated_uom",
"type": "3",
"field_width": "100",
"api_properties": null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "stock_info_available",
"answers": [
{
"answer": "Yes",
"answer_id": "yes"
},
{
"answer": "No",
"answer_id": "no"
},
{
"answer": "Stock not required to be maintained",
"answer_id": "not applicable"
}
],
"validations": [
]
}
]
},
{
"insert_index": "stock_info_available",
"expression": "(String('stock_info_available') == String('Yes'))",
"value_keys": [
"stock_info_available"
],
"questions": [
{
"question": [
{
"question": "Type of Stock",
"question_key": "stock_type",
"type": "3",
"field_width": "100",
"api_properties": null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "stock_info_available",
"answers": [
{
"answer": "RM",
"answer_id": "RM"
},
{
"answer": "FG",
"answer_id": "FG"
},
{
"answer": "SFG",
"answer_id": "SFG"
}
],
"validations": [
]
},
{
"question": "Name of trading goods/manufacturing goods (raw material/finished goods)/ Service Provided",
"question_key": "provider_name",
"place_holder": "Enter text",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"validations": [
]
},
{
"question": "Stock",
"question_key": "provider_observed",
"type": "3",
"api_properties": null,
"answers": [
{
"answer": "Add Stock Details",
"answer_id": "yes"
},
{
"answer": "No Stock Observed",
"answer_id": "no"
}
],
"is_repeatable": null,
"validations": [
],
"onchange_properties": [
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"insert_index": "provider_observed",
"expression": "(String('provider_observed') === String('yes'))",
"value_keys": [
"provider_observed"
],
"questions": [
{
"question": "Estimated Quantity",
"question_key": "estimated_quantity",
"type": "1",
"field_width": "100",
"field_type": "num",
"api_properties": null,
"onchange_properties": [
{
"purpose": "validations",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Either Estimated Stock value or Estimated Quantity is required",
"value": "(String('estimated_quantity') === String(''))",
"validation_to": "estimated_stock_value",
"value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
}
]
}
],
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": [
]
},
{
"question": "UOM",
"question_key": "estimated_uom",
"type": "3",
"field_width": "100",
"api_properties": {
"api": "getListOfMaster",
"api_method": "POST",
"params": {
"master_name": "UOM"
},
"fields": [
"uom_id",
"name"
]
},
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": [
]
},
{
"question": "Estimated value of stock observed",
"question_key": "estimated_stock_value",
"type": "1",
"field_type": "numtoword",
"field_width": "100",
"api_properties": null,
"onchange_properties": [
{
"purpose": "validations",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Either Estimated Stock value or Estimated Quantity is required",
"value": "(String('estimated_stock_value') === String(''))",
"validation_to": "estimated_quantity",
"value_keys": [
"estimated_stock_value"
]
}
]
}
],
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": []
}
]
}
]
}
]
},
{
"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
}
]
}
],
"is_repeatable": "1",
"group_title": "Stock details",
"group_key": "stock_details"
}
]
}
]
}
],
"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":[
]
}
]
}

View File

@ -0,0 +1,248 @@
{
"section_id":"5",
"section_name":"Key Stakeholders in Business",
"onsubmit":[
],
"questions":[
{
"question":[
{
"question":"Name of key Stakeholder",
"question_key":"stakeholder_name",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Name Required",
"value":null
}
]
},
{
"question":"Share Holding (%)",
"question_key":"share_holding",
"place_holder":"Enter number",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Share value Required",
"value":null
},
{
"name":"max",
"validator":"100",
"isactive":"1",
"message":"Number must be less than 100",
"value":null
}
]
},
{
"question":"Vintage in Current Business (in years)",
"question_key":"vintage_in_current_biz",
"place_holder":"Enter in years",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Current vintage Required",
"value":null
}
],
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"total_work_exp",
"expression":"(total_work_exp > vintage_in_current_biz)",
"value_keys":[
"total_work_exp",
"vintage_in_current_biz"
],
"questions":[
{
"question_key":"previous_experience_details",
"question":"Previous Experience Details",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"parent_question_key":"vintage_in_current_biz",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Previous Experience Required",
"value":null
}
]
}
]
}
]
}
]
},
{
"question":"Total Work Experience (in years)",
"question_key":"total_work_exp",
"place_holder":"Enter in years",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Total experience Required",
"value":null
}
],
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"total_work_exp",
"expression":"(total_work_exp > vintage_in_current_biz)",
"value_keys":[
"total_work_exp",
"vintage_in_current_biz"
],
"questions":[
{
"question":"Previous Experience Details",
"question_key":"previous_experience_details",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"parent_question_key":"total_work_exp",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Previous Experience Required",
"value":null
}
]
}
]
}
]
}
]
},
{
"question":"Started Business (Yes / No)",
"question_key":"started_biz",
"type":"2",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Yes",
"answer":"Yes"
},
{
"answer_id":"No",
"answer":"No"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Started Business 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
}
]
}
],
"is_repeatable":"1",
"group_title":"Details of Key Stakeholders in the Business",
"group_key":"key_stakeholders"
},
{
"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":[
]
}
]
}

View File

@ -0,0 +1,139 @@
{
"section_id":"6",
"section_name":"Key Products and Business Contribution",
"onsubmit":[],
"questions":[
{
"question":[
{
"question":"Key Product Name",
"question_key":"product_name",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Contribution to Business of the Product (%)",
"question_key":"contribution_business_product",
"place_holder":"Enter number",
"type":"1",
"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":"max",
"validator":"100",
"isactive":"1",
"message":"Number must be less than 100",
"value":null
}
]
},
{
"question":"Remarks if any",
"question_key":"remarks",
"place_holder":"Enter the text",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
],
"onchange_properties":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
}
]
}
],
"is_repeatable":"1",
"group_title":"Key Products and Business Contribution",
"group_key":"key_products_contribution"
},
{
"question":"Business Process Brief",
"question_key":"business_process",
"place_holder":"Enter the text",
"type":"7",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties":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":[
]
}
]
}

View File

@ -0,0 +1,816 @@
{
"section_id":"8",
"section_name":"Business Assets",
"onsubmit":null,
"questions":[
{
"question":"Address",
"question_key":"initiated_address",
"type":"7",
"field_width":"100",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
]
},
{
"question":" Is this the business address?",
"question_key":"is_business_address",
"type":"2",
"field_width":"100",
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"is_business_address",
"expression":"(String('is_business_address') == String('Yes'))",
"value_keys":[
"is_business_address"
],
"questions":[
{
"question":"No of Months",
"question_key":"business_months",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":null,
"validations":[
]
},
{
"question":"No of Years",
"sub_title":"How Long has business been operated from visited premises? (Eg. If operating for 5 years and 4 months enter 5 in Years field and 4 in months field)",
"question_key":"business_years",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":null,
"validations":[
]
},
{
"question":"Was any business activities seen during visit?",
"question_key":"business_is_pd_visited",
"place_holder":"",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_is_pd_visited",
"expression":"(String('business_is_pd_visited') != String('')) && (String('is_business_address') == String('Yes'))",
"value_keys":[
"business_is_pd_visited",
"is_business_address"
],
"questions":[
{
"question":"Remarks",
"question_key":"business_pd_visited_remark",
"place_holder":"",
"field_type":"string",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_is_pd_visited",
"answers":null,
"validations":[
]
}
]
}
]}],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"validations":[
]
},
{
"question":"Ownership type",
"question_key":"business_ownership_type",
"place_holder":"",
"type":"2",
"field_width":"100",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Owned')) && (String('is_business_address') == String('Yes'))",
"value_keys":[
"business_ownership_type",
"is_business_address"
],
"questions":[
{
"question":"Approximate Market value",
"question_key":"business_approximate_market_value",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Owned by",
"question_key":"business_name_of_the_owner",
"type":"4",
"field_width":"45",
"api_properties":
{
"purpose":"answer_options_local",
"master_name":"pd_applicants",
"fields":["pd_co_applicant_id","applicant_name"]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Age of asset in years",
"question_key":"business_vintage",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(function(){let current_year = new Date().getFullYear(); return current_year-Number(business_vintage)}())",
"value_keys":[
"business_vintage"
],
"insert_control":"business_purchase_year"
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Purchase year",
"question_key":"business_purchase_year",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(function(){let current_year = new Date().getFullYear(); return current_year-Number(business_purchase_year)}())",
"value_keys":[
"business_purchase_year"
],
"insert_control":"business_vintage"
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
}
,
{
"question":"Is there a Loan Existing against this asset",
"question_key":"business_emi",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":[
{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}
],
"validations":[
]
}
]
}
]
},
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Rented')) && (String('is_business_address') == String('Yes'))",
"value_keys":[
"business_ownership_type",
"is_business_address"
],
"questions":[
{
"question":"Monthly Rent Amount",
"question_key":"business_monthly_rented_amt",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
}
]
}
]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":[
{
"answer":"Owned",
"answer_id":"Owned"
},
{
"answer":"Rented",
"answer_id":"Rented"
}
],
"validations":[
]
}
]
}
]
}
],
"is_repeatable":null,
"validations":[
]
},
{
"question":"Is there any other business asset available?",
"question_key":"asset_info_available",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"asset_info_available",
"expression":"(String('asset_info_available') == String('Yes'))",
"value_keys":[
"asset_info_available"
],
"questions":[
{
"question":[{
"question":"Asset Type",
"question_key":"business_assets_mode",
"type":"3",
"field_width":"45",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"ASSETTYPE"
},
"fields":[
"id",
"name"
],
"filter_properties":{
"key_name":"flag",
"value":"1"
}
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_assets_mode",
"expression":"(String('business_assets_mode') == String('2'))",
"value_keys":[
"business_assets_mode"
],
"questions":[
{
"question":"Property Type",
"question_key":"property_type",
"place_holder":"",
"field_type":"string",
"type":"3",
"field_width":"45",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"ADDRESSTYPE"
},
"fields":[
"address_type_id",
"address_type"
]
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[{
"insert_index":"property_type",
"expression":"String('property_type') && (String('property_type') != String('')) && (String('business_assets_mode') == String('2'))",
"value_keys":[
"property_type",
"business_assets_mode"
],
"questions":[
{
"question":"Address of the property",
"question_key":"property_address",
"place_holder":"",
"field_type":"string",
"type":"3",
"field_width":"100",
"api_properties":{
"api":"getSMCTempAddresses",
"api_method":"GET",
"params":{
"pdid":"VAR_PD_ID"
},
"fields":[
"display",
"display"
]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"property_type",
"answers":null,
"validations":[
]
}
]
},
{
"insert_index":"property_type",
"expression":"(String('property_type') == String('1')) && (String('business_assets_mode') == String('2'))",
"value_keys":[
"property_type",
"business_assets_mode"
],
"questions":[
{
"question":"Specify the Property",
"question_key":"property_type_others",
"place_holder":"",
"field_type":"string",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"property_type",
"answers":null,
"validations":[
]
}
]
}]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_assets_mode",
"answers":null,
"validations":[
]
}
]
},
{
"insert_index":"business_assets_mode",
"expression":"(String('business_assets_mode') == String('3'))",
"value_keys":[
"business_assets_mode"
],
"questions":[
{
"question":"Type of Vehicle",
"question_key":"vehicle_type",
"place_holder":"",
"field_type":"string",
"type":"3",
"field_width":"45",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"VEHICLETYPE"
},
"fields":[
"vehicle_type_id",
"vehicle_type_name"
]
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"vehicle_type",
"expression":"(String('vehicle_type') == String('1')) && (String('business_assets_mode') == String('3'))",
"value_keys":[
"vehicle_type",
"business_assets_mode"
],
"questions":[
{
"question":"Specify the Vehicle",
"question_key":"vehicle_type_others",
"place_holder":"",
"field_type":"string",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"vehicle_type",
"answers":null,
"validations":[
]
}
]
}]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_assets_mode",
"answers":null,
"validations":[
]
}
]
}
]
}
],
"is_repeatable":null,
"answers":null,
"validations":[
]
},
{
"question":"Description",
"question_key":"other_asset_description",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
]
},
{
"question":"Ownership type",
"question_key":"business_ownership_type",
"place_holder":"",
"type":"2",
"field_width":"100",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Owned'))",
"value_keys":[
"business_ownership_type"
],
"questions":[
{
"question":"Approximate Market value",
"question_key":"business_approximate_market_value",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Asset owned by",
"question_key":"business_name_of_the_owner",
"type":"4",
"field_width":"45",
"api_properties":
{
"purpose":"answer_options_local",
"master_name":"pd_applicants",
"fields":["pd_co_applicant_id","applicant_name"]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Age of asset in years",
"question_key":"business_vintage",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(function(){let current_year = new Date().getFullYear(); return current_year-Number(business_vintage)}())",
"value_keys":[
"business_vintage"
],
"insert_control":"business_purchase_year"
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Purchase year",
"question_key":"business_purchase_year",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(function(){let current_year = new Date().getFullYear(); return current_year-Number(business_purchase_year)}())",
"value_keys":[
"business_purchase_year"
],
"insert_control":"business_vintage"
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
}
,
{
"question":"Is there a Loan Existing against this asset",
"question_key":"business_emi",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":[
{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}
],
"validations":[
]
}
]
}
]
},
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Rented'))",
"value_keys":[
"business_ownership_type"
],
"questions":[
{
"question":"Monthly Rent Amount",
"question_key":"business_monthly_rented_amt",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
}
]
}
]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":[
{
"answer":"Owned",
"answer_id":"Owned"
},
{
"answer":"Rented",
"answer_id":"Rented"
}
],
"validations":[
]
},
{
"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
}
]
}],
"is_repeatable":"1",
"group_title":"Business Asset Details",
"group_key":"business_assets_details"
}
]
}
]
}],
"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":[
]
}
]
}

View File

@ -15,7 +15,7 @@
"question_key":"financial_info_available", "question_key":"financial_info_available",
"type":"2", "type":"2",
"field_width":"45", "field_width":"45",
"api_properties":null, "api_properties":null,
"onchange_properties":[ "onchange_properties":[
{ {
"purpose":"FORM_CTRL", "purpose":"FORM_CTRL",
@ -673,7 +673,37 @@
] ]
}, },
{
"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
}
]
},
{ {

View File

@ -283,7 +283,38 @@
"validations":[ "validations":[
] ]
} },
{
"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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Supplier Details", "group_title":"Supplier Details",

View File

@ -283,7 +283,38 @@
"validations":[ "validations":[
] ]
} },
{
"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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Client Details", "group_title":"Client Details",
@ -311,7 +342,7 @@
"question_key":"common_remarks", "question_key":"common_remarks",
"question":"Remarks", "question":"Remarks",
"place_holder":"Enter the text", "place_holder":"Enter the text",
"type":"7", "type":"7",
"api_properties":null, "api_properties":null,
"answers":null, "answers":null,
"onchange_properties":null, "onchange_properties":null,

View File

@ -9,7 +9,7 @@
"type": "2", "type": "2",
"field_width": "45", "field_width": "45",
"api_properties": null, "api_properties": null,
"onchange_properties": [ "onchange_properties": [
{ {
"purpose": "FORM_CTRL", "purpose": "FORM_CTRL",
"form_controls": [ "form_controls": [
@ -255,6 +255,37 @@
] ]
} }
] ]
},
{
"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
}
]
} }
], ],
"is_repeatable": "1", "is_repeatable": "1",

View File

@ -193,7 +193,38 @@
"value":null "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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Details of Key Stakeholders in the Business", "group_title":"Details of Key Stakeholders in the Business",

View File

@ -64,7 +64,38 @@
"validations":[ "validations":[
], ],
"onchange_properties":null "onchange_properties":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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Key Products and Business Contribution", "group_title":"Key Products and Business Contribution",

View File

@ -4,7 +4,7 @@
"onsubmit":null, "onsubmit":null,
"questions":[ "questions":[
{ {
"question":"Address", "question":"Address",
"question_key":"initiated_address", "question_key":"initiated_address",
"type":"7", "type":"7",
"field_width":"100", "field_width":"100",
@ -741,7 +741,38 @@
"validations":[ "validations":[
] ]
}], },
{
"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
}
]
}],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Business Asset Details", "group_title":"Business Asset Details",
"group_key":"business_assets_details" "group_key":"business_assets_details"

View File

@ -789,6 +789,37 @@
} }
] ]
}, },
{
"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_key":"common_remarks",
"question":"Remarks", "question":"Remarks",

View File

@ -118,7 +118,7 @@
"question":"Contact Person Designation", "question":"Contact Person Designation",
"question_key":"contact_person_designation", "question_key":"contact_person_designation",
"type":"8", "type":"8",
"field_width":"100", "field_width":"100",
"api_properties":{ "api_properties":{
"api":"getListOfMaster", "api":"getListOfMaster",
"api_method":"POST", "api_method":"POST",
@ -338,7 +338,38 @@
"value":null "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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Supplier Details", "group_title":"Supplier Details",

View File

@ -6,7 +6,7 @@
{ {
"question":"Is the Client information available?", "question":"Is the Client information available?",
"question_key":"client_info_available", "question_key":"client_info_available",
"type":"2", "type":"2",
"field_width":"45", "field_width":"45",
"api_properties":null, "api_properties":null,
"onchange_properties":[ "onchange_properties":[
@ -338,7 +338,38 @@
"value":null "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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Client Details", "group_title":"Client Details",

View File

@ -4,7 +4,7 @@
"onsubmit": [], "onsubmit": [],
"questions": [ "questions": [
{ {
"question": "Is stock applicable to the business (Yes / No)", "question": "Is stock applicable to the business (Yes / No)",
"question_key": "stock_info_available", "question_key": "stock_info_available",
"type": "2", "type": "2",
"field_width": "45", "field_width": "45",
@ -236,17 +236,7 @@
"question_key": "estimated_uom", "question_key": "estimated_uom",
"type": "3", "type": "3",
"field_width": "100", "field_width": "100",
"api_properties": { "api_properties":null,
"api": "getListOfMaster",
"api_method": "POST",
"params": {
"master_name": "UOM"
},
"fields": [
"uom_id",
"name"
]
},
"onchange_properties": null, "onchange_properties": null,
"is_repeatable": null, "is_repeatable": null,
"is_subfield": "1", "is_subfield": "1",
@ -298,6 +288,37 @@
] ]
} }
] ]
},
{
"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
}
]
} }
], ],
"is_repeatable": "1", "is_repeatable": "1",

View File

@ -4,6 +4,8 @@
"onsubmit":null, "onsubmit":null,
"questions":[ "questions":[
{ {
"question":[
{
"question":"Type of Business Entity", "question":"Type of Business Entity",
"question_key":"business_entity_type", "question_key":"business_entity_type",
"type":"1", "type":"1",
@ -11,7 +13,7 @@
"answers":null, "answers":null,
"api_properties":null, "api_properties":null,
"onchange_properties":null, "onchange_properties":null,
"is_repeatable":null, "is_repeatable":null,
"validations":[ "validations":[
{ {
"name":"required", "name":"required",
@ -158,6 +160,12 @@
} }
] ]
} }
] ],
"is_repeatable":"1",
"group_title":"Details of General Business Information",
"group_key":"general_business"
}
]
} }

View File

@ -7,7 +7,7 @@
{ {
"question":[ "question":[
{ {
"question":"Name of key Stakeholder", "question":"Name of key Stakeholder11",
"question_key":"stakeholder_name", "question_key":"stakeholder_name",
"place_holder":"Enter text", "place_holder":"Enter text",
"type":"1", "type":"1",
@ -16,7 +16,7 @@
"onchange_properties":null, "onchange_properties":null,
"is_repeatable":null, "is_repeatable":null,
"field_type":"string", "field_type":"string",
"validations":[ "validations":[
{ {
"name":"required", "name":"required",
"isactive":"1", "isactive":"1",
@ -193,7 +193,38 @@
"value":null "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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Details of Key Stakeholders in the Business", "group_title":"Details of Key Stakeholders in the Business",

View File

@ -64,7 +64,38 @@
"validations":[ "validations":[
], ],
"onchange_properties":null "onchange_properties":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
}
]
}
], ],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Key Products and Business Contribution", "group_title":"Key Products and Business Contribution",

View File

@ -30,7 +30,7 @@
"questions":[ "questions":[
{ {
"question":"No of Years", "question":"No of Years",
"sub_title":"How Long has business been operated from visited premises? (Eg. If operating for 5 years and 4 months enter 5 in Years field and 4 in months field)", "sub_title":"How Long has business been operated from visited premises? (Eg. If operating for 5 years and 4 months enter 5 in Years field and 4 in months field",
"question_key":"business_years", "question_key":"business_years",
"place_holder":"", "place_holder":"",
"field_type":"num", "field_type":"num",
@ -331,6 +331,9 @@
} }
] ]
} }
] ]
} }
] ]
@ -626,7 +629,38 @@
"value":null "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
}
]
}],
"is_repeatable":"1", "is_repeatable":"1",
"group_title":"Business Asset Details", "group_title":"Business Asset Details",
"group_key":"business_assets_details" "group_key":"business_assets_details"
@ -655,6 +689,7 @@
} }
] ]
} }
] ]

Binary file not shown.

View File

@ -0,0 +1,839 @@
{
"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"
],
"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": [
]
}
]
}]
}
],
"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":[
]
}
]
}

View File

@ -0,0 +1,406 @@
{
"section_id":"11",
"section_name":"Supplier details",
"onsubmit":null,
"questions":[
{
"question":"Is the Supplier information available?",
"question_key":"supplier_info_available",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"supplier_info_available",
"expression":"(String('supplier_info_available') == String('No'))",
"value_keys":[
"supplier_info_available"
],
"questions":[
{ "question":"Reason",
"question_key":"supplier_not_available_reason",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ] } ] },
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"supplier_info_available",
"expression":"(String('supplier_info_available') == String('Yes'))",
"value_keys":[
"supplier_info_available"
],
"questions":[
{
"question":[{
"question":"Raw Material Name/ Trading Product Name/ Service Name",
"question_key":"provider_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Supplier Name",
"question_key":"supplier_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Contact Person name",
"question_key":"contact_person_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Contact Person Designation",
"question_key":"contact_person_designation",
"type":"8",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"COMPANYRELATIONSHIPS"
},
"fields":[
"company_relationship_id",
"name"
]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person Mobile Number",
"question_key":"contact_person_mobile_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{10,12}",
"message":"Mobile number should be 10-12 digit",
"value":null
}
]
},
{
"question":"STD Code",
"sub_title":"Contact Person Landline number",
"question_key":"person_stdcode",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{3,5}",
"message":"Maximum 5 digit allowed",
"value":null
}
]
},
{
"question":"Contact Person Landline number",
"question_key":"person_landline",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{6,8}",
"message":"Maximum 8 digit allowed",
"value":null
}
]
},
{
"question":"Payment Terms",
"question_key":"payment_type",
"type":"3",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"PAYMENTMODE"
},
"fields":[
"id",
"name"
]
},
"onchange_properties":[{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"payment_type",
"expression":"(String('payment_type') == String('3'))",
"value_keys":[
"payment_type"
],
"questions":[
{
"question":"No. of credit period provided by supplier",
"question_key":"credit_period_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"What % of total purchases are done on credit?",
"question_key":"credit_total_purchase",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
},
{
"name":"max",
"isactive":"1",
"validator":"100",
"message":"Percentage should lower or equal to '100'",
"value":null
}
]
}
]}]}],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Payment Mode",
"question_key":"payment_mode",
"type":"3",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"supplier_info_available",
"answers":[
{
"answer_id":"Payment made in Cash",
"answer":"Payment made in Cash"
},
{
"answer_id":"Payment made through Banking channels",
"answer":"Payment made through Banking channels"
},
{
"answer_id":"Payment made through Cash and Banking channels",
"answer":"Payment made through Cash and Banking channels"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field 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
}
]
}
],
"is_repeatable":"1",
"group_title":"Supplier Details",
"group_key":"supplier_details"
}
]
}
]
}],
"is_repeatable":null,
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}

View File

@ -0,0 +1,406 @@
{
"section_id":"12",
"section_name":"Clients details",
"onsubmit":null,
"questions":[
{
"question":"Is the Client information available?",
"question_key":"client_info_available",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"client_info_available",
"expression":"(String('client_info_available') == String('No'))",
"value_keys":[
"client_info_available"
],
"questions":[
{ "question":"Reason",
"question_key":"client_not_available_reason",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ] } ] },
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"client_info_available",
"expression":"(String('client_info_available') == String('Yes'))",
"value_keys":[
"client_info_available"
],
"questions":[
{
"question":[{
"question":"Trading Product/Service/Manufacturing Product name",
"question_key":"provider_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Client Name",
"question_key":"client_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Contact Person name",
"question_key":"contact_person_name",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Contact Person Designation",
"question_key":"contact_person_designation",
"type":"8",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"COMPANYRELATIONSHIPS"
},
"fields":[
"company_relationship_id",
"name"
]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
]
},
{
"question":"Contact Person Mobile Number",
"question_key":"contact_person_mobile_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{10,12}",
"message":"Mobile number should be 10-12 digit",
"value":null
}
]
},
{
"question":"STD Code",
"sub_title":"Contact Person Landline number",
"question_key":"person_stdcode",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{3,5}",
"message":"Maximum 5 digit allowed",
"value":null
}
]
},
{
"question":"Contact Person Landline number",
"question_key":"person_landline",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{6,8}",
"message":"Maximum 8 digit allowed",
"value":null
}
]
},
{
"question":"Payment Terms",
"question_key":"payment_type",
"type":"3",
"field_width":"100",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"PAYMENTMODE"
},
"fields":[
"id",
"name"
]
},
"onchange_properties":[{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"payment_type",
"expression":"(String('payment_type') == String('3'))",
"value_keys":[
"payment_type"
],
"questions":[
{
"question":"No. of credit period provided by client",
"question_key":"credit_period_no",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"What % of total purchases are done on credit?",
"question_key":"credit_total_purchase",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
},
{
"name":"max",
"isactive":"1",
"validator":"100",
"message":"Percentage should lower or equal to '100'",
"value":null
}
]
}
]}]}],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"payment_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Payment Mode",
"question_key":"payment_mode",
"type":"3",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"client_info_available",
"answers":[
{
"answer_id":"Payment made in Cash",
"answer":"Payment made in Cash"
},
{
"answer_id":"Payment made through Banking channels",
"answer":"Payment made through Banking channels"
},
{
"answer_id":"Payment made through Cash and Banking channels",
"answer":"Payment made through Cash and Banking channels"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field 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
}
]
}
],
"is_repeatable":"1",
"group_title":"Client Details",
"group_key":"client_details"
}
]
}
]
}],
"is_repeatable":null,
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}

View File

@ -0,0 +1,355 @@
{
"section_id": "13",
"section_name": "Stock details",
"onsubmit": [],
"questions": [
{
"question": "Is stock applicable to the business (Yes / No)",
"question_key": "stock_info_available",
"type": "2",
"field_width": "45",
"api_properties": null,
"onchange_properties": [
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"insert_index": "stock_info_available",
"expression": "(String('stock_info_available') == String('No'))",
"value_keys": [
"stock_info_available"
],
"questions": [
{
"question": "Reason",
"question_key": "stock_not_available_reason",
"type": "7",
"field_width": "100",
"api_properties": null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "stock_info_available",
"answers": null,
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field required",
"value": null
}
]
}
]
}
]
},
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"insert_index": "stock_info_available",
"expression": "(String('stock_info_available') == String('Yes'))",
"value_keys": [
"stock_info_available"
],
"questions":[
{
"question": "Is the stock of finished goods observed, sufficient considering the size of operations",
"question_key": "estimated_uom",
"type": "3",
"field_width": "100",
"api_properties": null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "stock_info_available",
"answers": [
{
"answer": "Yes",
"answer_id": "yes"
},
{
"answer": "No",
"answer_id": "no"
},
{
"answer": "Stock not required to be maintained",
"answer_id": "not applicable"
}
],
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field required",
"value": null
}
]
}
]
},
{
"insert_index": "stock_info_available",
"expression": "(String('stock_info_available') == String('Yes'))",
"value_keys": [
"stock_info_available"
],
"questions": [
{
"question": [
{
"question": "Type of Stock",
"question_key": "stock_type",
"type": "3",
"field_width": "100",
"api_properties": null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "stock_info_available",
"answers": [
{
"answer": "RM",
"answer_id": "RM"
},
{
"answer": "FG",
"answer_id": "FG"
},
{
"answer": "SFG",
"answer_id": "SFG"
}
],
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field required",
"value": null
}
]
},
{
"question": "Name of trading goods/manufacturing goods (raw material/finished goods)/ Service Provided",
"question_key": "provider_name",
"place_holder": "Enter text",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
}
]
},
{
"question": "Stock",
"question_key": "provider_observed",
"type": "3",
"api_properties": null,
"answers": [
{
"answer": "Add Stock Details",
"answer_id": "yes"
},
{
"answer": "No Stock Observed",
"answer_id": "no"
}
],
"is_repeatable": null,
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
}
],
"onchange_properties": [
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"insert_index": "provider_observed",
"expression": "(String('provider_observed') === String('yes'))",
"value_keys": [
"provider_observed"
],
"questions": [
{
"question": "Estimated Quantity",
"question_key": "estimated_quantity",
"type": "1",
"field_width": "100",
"field_type": "num",
"api_properties": null,
"onchange_properties": [
{
"purpose": "validations",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Either Estimated Stock value or Estimated Quantity is required",
"value": "(String('estimated_quantity') === String(''))",
"validation_to": "estimated_stock_value",
"value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
}
]
}
],
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Either Estimated Stock value or Estimated Quantity is required",
"value": null
}
]
},
{
"question": "UOM",
"question_key": "estimated_uom",
"type": "3",
"field_width": "100",
"api_properties":null,
"onchange_properties": null,
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field required",
"value": null
}
]
},
{
"question": "Estimated value of stock observed",
"question_key": "estimated_stock_value",
"type": "1",
"field_type": "num",
"field_width": "100",
"api_properties": null,
"onchange_properties": [
{
"purpose": "validations",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Either Estimated Stock value or Estimated Quantity is required",
"value": "(String('estimated_stock_value') === String(''))",
"validation_to": "estimated_quantity",
"value_keys": [
"estimated_stock_value"
]
}
]
}
],
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": []
}
]
}
]
}
]
},
{
"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
}
]
}
],
"is_repeatable": "1",
"group_title": "Stock details",
"group_key": "stock_details"
}
]
}
]
}
],
"is_repeatable": null,
"answers": [
{
"answer": "Yes",
"answer_id": "Yes"
},
{
"answer": "No",
"answer_id": "No"
}
],
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field required",
"value": null
}
]
}
]
}

View File

@ -0,0 +1,234 @@
{
"section_id":"5",
"section_name":"Key Stakeholders in Business",
"onsubmit":[
],
"questions":[
{
"question":[
{
"question":"Name of key Stakeholder11",
"question_key":"stakeholder_name",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Name Required",
"value":null
}
]
},
{
"question":"Share Holding (%)",
"question_key":"share_holding",
"place_holder":"Enter number",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Share value Required",
"value":null
},
{
"name":"max",
"validator":"100",
"isactive":"1",
"message":"Number must be less than 100",
"value":null
}
]
},
{
"question":"Vintage in Current Business",
"question_key":"vintage_in_current_biz",
"place_holder":"Enter in years",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Current vintage Required",
"value":null
}
],
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"total_work_exp",
"expression":"(total_work_exp > vintage_in_current_biz)",
"value_keys":[
"total_work_exp",
"vintage_in_current_biz"
],
"questions":[
{
"question_key":"previous_experience_details",
"question":"Previous Experience Details",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"parent_question_key":"vintage_in_current_biz",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Previous Experience Required",
"value":null
}
]
}
]
}
]
}
]
},
{
"question":"Total Work Experience",
"question_key":"total_work_exp",
"place_holder":"Enter in years",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Total experience Required",
"value":null
}
],
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"total_work_exp",
"expression":"(total_work_exp > vintage_in_current_biz)",
"value_keys":[
"total_work_exp",
"vintage_in_current_biz"
],
"questions":[
{
"question":"Previous Experience Details",
"question_key":"previous_experience_details",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"parent_question_key":"total_work_exp",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Previous Experience Required",
"value":null
}
]
}
]
}
]
}
]
},
{
"question":"Started Business (Yes / No)",
"question_key":"started_biz",
"type":"2",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Yes",
"answer":"Yes"
},
{
"answer_id":"No",
"answer":"No"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Started Business 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
}
]
}
],
"is_repeatable":"1",
"group_title":"Details of Key Stakeholders in the Business",
"group_key":"key_stakeholders"
}
]
}

View File

@ -0,0 +1,125 @@
{
"section_id":"6",
"section_name":"Key Products and Business Contribution",
"onsubmit":[],
"questions":[
{
"question":[
{
"question":"Key Product Name",
"question_key":"product_name",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Contribution to Business of the Product (%)",
"question_key":"contribution_business_product",
"place_holder":"Enter number",
"type":"1",
"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":"max",
"validator":"100",
"isactive":"1",
"message":"Number must be less than 100",
"value":null
}
]
},
{
"question":"Remarks if any",
"question_key":"remarks",
"place_holder":"Enter the text",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
],
"onchange_properties":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
}
]
}
],
"is_repeatable":"1",
"group_title":"Key Products and Business Contribution",
"group_key":"key_products_contribution"
},
{
"question":"Business Process Brief",
"question_key":"business_process",
"place_holder":"Enter the text",
"type":"7",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties":null
}
]
}

View File

@ -0,0 +1,697 @@
{
"section_id":"8",
"section_name":"Business Assets",
"onsubmit":null,
"questions":[
{
"question":" Is this the business address?",
"question_key":"is_business_address",
"type":"2",
"field_width":"100",
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"is_business_address",
"expression":"(String('is_business_address') == String('Yes'))",
"value_keys":[
"is_business_address"
],
"questions":[
{
"question":"No of Years",
"sub_title":"How Long has business been operated from visited premises? (Eg. If operating for 5 years and 4 months enter 5 in Years field and 4 in months field",
"question_key":"business_years",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"No of Months",
"question_key":"business_months",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":null,
"validations":[
]
},
{
"question":"Was any business activities seen during visit?",
"question_key":"business_is_pd_visited",
"place_holder":"",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_is_pd_visited",
"expression":"(String('business_is_pd_visited') != String('')) && (String('is_business_address') == String('Yes'))",
"value_keys":[
"business_is_pd_visited",
"is_business_address"
],
"questions":[
{
"question":"Remarks",
"question_key":"business_pd_visited_remark",
"place_holder":"",
"field_type":"string",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_is_pd_visited",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
]}],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Ownership type",
"question_key":"business_ownership_type",
"place_holder":"",
"type":"2",
"field_width":"100",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Owned')) && (String('is_business_address') == String('Yes'))",
"value_keys":[
"business_ownership_type",
"is_business_address"
],
"questions":[
{
"question":"Approximate Market value",
"question_key":"business_approximate_market_value",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Factory owned by",
"question_key":"business_name_of_the_owner",
"type":"3",
"field_width":"45",
"api_properties":
{
"purpose":"answer_options_local",
"master_name":"pd_applicants",
"fields":["pd_co_applicant_id","applicant_name"]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Age of asset in years",
"question_key":"business_vintage",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Purchase year",
"question_key":"business_purchase_year",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
}
,
{
"question":"Is there a Loan Existing against this asset",
"question_key":"business_emi",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":[
{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
]
},
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Rented')) && (String('is_business_address') == String('Yes'))",
"value_keys":[
"business_ownership_type",
"is_business_address"
],
"questions":[
{
"question":"Monthly Rent Amount",
"question_key":"business_monthly_rented_amt",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":[
{
"answer":"Owned",
"answer_id":"Owned"
},
{
"answer":"Rented",
"answer_id":"Rented"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Is there any other business asset available?",
"question_key":"asset_info_available",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":[{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"asset_info_available",
"expression":"(String('asset_info_available') == String('Yes'))",
"value_keys":[
"asset_info_available"
],
"questions":[
{
"question":[{
"question":"Asset Type",
"question_key":"business_assets_mode",
"type":"3",
"field_width":"45",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"ASSETTYPE"
},
"fields":[
"id",
"name"
]
},
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Description",
"question_key":"other_asset_description",
"type":"7",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Ownership type",
"question_key":"business_ownership_type",
"place_holder":"",
"type":"2",
"field_width":"100",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Owned'))",
"value_keys":[
"business_ownership_type"
],
"questions":[
{
"question":"Approximate Market value",
"question_key":"business_approximate_market_value",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Factory owned by",
"question_key":"business_name_of_the_owner",
"type":"3",
"field_width":"45",
"api_properties":
{
"purpose":"answer_options_local",
"master_name":"pd_applicants",
"fields":["pd_co_applicant_id","applicant_name"]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
},
{
"question":"Age of asset in years",
"question_key":"business_vintage",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(function(){let current_year = new Date().getFullYear(); return current_year-Number(business_vintage)}())",
"value_keys":[
"business_vintage"
],
"insert_control":"business_purchase_year"
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
},
{
"question":"Purchase year",
"question_key":"business_purchase_year",
"place_holder":"",
"field_type":"num",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(function(){let current_year = new Date().getFullYear(); return current_year-Number(business_purchase_year)}())",
"value_keys":[
"business_purchase_year"
],
"insert_control":"business_vintage"
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
]
}
,
{
"question":"Is there a Loan Existing against this asset",
"question_key":"business_emi",
"type":"2",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":[
{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
]
},
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"business_ownership_type",
"expression":"(String('business_ownership_type') == String('Rented'))",
"value_keys":[
"business_ownership_type"
],
"questions":[
{
"question":"Monthly Rent Amount",
"question_key":"business_monthly_rented_amt",
"place_holder":"",
"field_type":"numtoword",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"business_ownership_type",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"is_business_address",
"answers":[
{
"answer":"Owned",
"answer_id":"Owned"
},
{
"answer":"Rented",
"answer_id":"Rented"
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field 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
}
]
}],
"is_repeatable":"1",
"group_title":"Business Asset Details",
"group_key":"business_assets_details"
}
]
}
]
}],
"is_repeatable":null,
"answers":[{
"answer":"Yes",
"answer_id":"Yes"
},
{
"answer":"No",
"answer_id":"No"
}],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}