From 3ad6e5aa142c0b0def02e6094138908bbfa5bc94 Mon Sep 17 00:00:00 2001 From: gayathri1990 Date: Mon, 19 Apr 2021 20:53:02 +0530 Subject: [PATCH] cfpl,lfmp changes (add company) --- .../ques-form/ques-form.service.ts | 31 + ng6-seed/src/assets/data/LFMP.zip | Bin 0 -> 14250 bytes ng6-seed/src/assets/data/LFMP/10.json | 723 +++++++++++++++ ng6-seed/src/assets/data/LFMP/11.json | 359 ++++++++ ng6-seed/src/assets/data/LFMP/12.json | 359 ++++++++ ng6-seed/src/assets/data/LFMP/13.json | 330 +++++++ ng6-seed/src/assets/data/LFMP/5.json | 248 ++++++ ng6-seed/src/assets/data/LFMP/6.json | 139 +++ ng6-seed/src/assets/data/LFMP/8.json | 816 +++++++++++++++++ .../data/SMC_CREDIT_TEMPLATES/LFMP/10.json | 34 +- .../data/SMC_CREDIT_TEMPLATES/LFMP/11.json | 33 +- .../data/SMC_CREDIT_TEMPLATES/LFMP/12.json | 35 +- .../data/SMC_CREDIT_TEMPLATES/LFMP/13.json | 33 +- .../data/SMC_CREDIT_TEMPLATES/LFMP/5.json | 33 +- .../data/SMC_CREDIT_TEMPLATES/LFMP/6.json | 33 +- .../data/SMC_CREDIT_TEMPLATES/LFMP/8.json | 35 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/10.json | 31 + .../data/SMC_CREDIT_TEMPLATES/WCTL/11.json | 35 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/12.json | 35 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/13.json | 45 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/4.json | 12 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/5.json | 37 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/6.json | 33 +- .../data/SMC_CREDIT_TEMPLATES/WCTL/8.json | 39 +- ng6-seed/src/assets/data/WCTL.zip | Bin 0 -> 13665 bytes ng6-seed/src/assets/data/WCTL/10.json | 839 ++++++++++++++++++ ng6-seed/src/assets/data/WCTL/11.json | 406 +++++++++ ng6-seed/src/assets/data/WCTL/12.json | 406 +++++++++ ng6-seed/src/assets/data/WCTL/13.json | 355 ++++++++ ng6-seed/src/assets/data/WCTL/5.json | 234 +++++ ng6-seed/src/assets/data/WCTL/6.json | 125 +++ ng6-seed/src/assets/data/WCTL/8.json | 697 +++++++++++++++ 32 files changed, 6536 insertions(+), 34 deletions(-) create mode 100644 ng6-seed/src/assets/data/LFMP.zip create mode 100644 ng6-seed/src/assets/data/LFMP/10.json create mode 100644 ng6-seed/src/assets/data/LFMP/11.json create mode 100644 ng6-seed/src/assets/data/LFMP/12.json create mode 100644 ng6-seed/src/assets/data/LFMP/13.json create mode 100644 ng6-seed/src/assets/data/LFMP/5.json create mode 100644 ng6-seed/src/assets/data/LFMP/6.json create mode 100644 ng6-seed/src/assets/data/LFMP/8.json create mode 100644 ng6-seed/src/assets/data/WCTL.zip create mode 100644 ng6-seed/src/assets/data/WCTL/10.json create mode 100644 ng6-seed/src/assets/data/WCTL/11.json create mode 100644 ng6-seed/src/assets/data/WCTL/12.json create mode 100644 ng6-seed/src/assets/data/WCTL/13.json create mode 100644 ng6-seed/src/assets/data/WCTL/5.json create mode 100644 ng6-seed/src/assets/data/WCTL/6.json create mode 100644 ng6-seed/src/assets/data/WCTL/8.json diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/ques-form/ques-form.service.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/ques-form/ques-form.service.ts index 45df8e5..854abf0 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/ques-form/ques-form.service.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/ques-form/ques-form.service.ts @@ -305,7 +305,37 @@ export class QuesFormService { }) } apiCall(api_name:string,params,api_method?){ + 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) } else{ @@ -317,6 +347,7 @@ export class QuesFormService { if(params[val] == 'VAR_PD_ID') { params[val] = this.pd_all_details.pdmaster_details.pd_id } + httpParams = httpParams.set(val,params[val]) }) } diff --git a/ng6-seed/src/assets/data/LFMP.zip b/ng6-seed/src/assets/data/LFMP.zip new file mode 100644 index 0000000000000000000000000000000000000000..ac76037982cf3ce3d33992fdd3fec8e59f842b85 GIT binary patch literal 14250 zcmZ{r1B_&g7Ova2ZQJgiwr#toZQHhOd)l^bPn*-W@#dU!&%5(-^LA48@0IL)RjFj} zzn0{sfI*-D{yJ(36BYkH`Oh2ZZTg7Ijnvf1^@uC007{( z{BsE-1D%DVt<8mwyX^)C+E)*M53m?Nx$27j{3IOM29eg}0S1WKJOO1p1dvdk$@;D` z5i3dZ;{Iy~efdDM6>bs@w+l58AWrzz&1;ub=PyijD3wbN$qkkIiTw-(+C`r z-&@TCM7Gf$_cZszjxE0Z88jB|w(It;z!`ZaQePQxw>R+3%)Zf1A|IB1z$^3&Dz@Wf z+%+a(z>C=}oySJJ%D2ErA!-W0$4{=$D-OEK{THvtJwB^B)afbNqFWF`Ck zMFHGUI4#d0q{fw)wzR7P2S^W~7V*XsdM=!=K;ws)(&{sgFqol%B9jbJ&+d+psMnnF zd=E>6r_NxL8FJ>~CaBx!gez@6X}F)b0Wkcbgsb>~!XSqA#|O;d#NP*#5_iPdvD8(R zSmk*b>j4J89p7QtMnl650s}P=-M~--@Clyx<^*nGU$DIX=z^YVDp8goV!Smjj4nJ_ z02Gzo_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8Q|E!;r>90C2_%wzd0`agOtTn7LE literal 0 HcmV?d00001 diff --git a/ng6-seed/src/assets/data/LFMP/10.json b/ng6-seed/src/assets/data/LFMP/10.json new file mode 100644 index 0000000..fc6d37c --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/10.json @@ -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": [] + } + ] +} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/LFMP/11.json b/ng6-seed/src/assets/data/LFMP/11.json new file mode 100644 index 0000000..faaaa4c --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/11.json @@ -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":[ + ] + } + + + ] + } + \ No newline at end of file diff --git a/ng6-seed/src/assets/data/LFMP/12.json b/ng6-seed/src/assets/data/LFMP/12.json new file mode 100644 index 0000000..0076565 --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/12.json @@ -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":[ + ] + } + + + ] + } + \ No newline at end of file diff --git a/ng6-seed/src/assets/data/LFMP/13.json b/ng6-seed/src/assets/data/LFMP/13.json new file mode 100644 index 0000000..4fbfbe0 --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/13.json @@ -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":[ + ] + } + ] +} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/LFMP/5.json b/ng6-seed/src/assets/data/LFMP/5.json new file mode 100644 index 0000000..c73f156 --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/5.json @@ -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":[ + ] + } + ] + } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/LFMP/6.json b/ng6-seed/src/assets/data/LFMP/6.json new file mode 100644 index 0000000..462e3ec --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/6.json @@ -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":[ + ] + } + ] + } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/LFMP/8.json b/ng6-seed/src/assets/data/LFMP/8.json new file mode 100644 index 0000000..e25db33 --- /dev/null +++ b/ng6-seed/src/assets/data/LFMP/8.json @@ -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":[ + ] + } + + + ] + } + \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json index ab829b2..fc6d37c 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json @@ -15,7 +15,7 @@ "question_key":"financial_info_available", "type":"2", "field_width":"45", - "api_properties":null, + "api_properties":null, "onchange_properties":[ { "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 + } + ] + }, { diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/11.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/11.json index e23f725..faaaa4c 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/11.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/11.json @@ -283,7 +283,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/12.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/12.json index 8522211..0076565 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/12.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/12.json @@ -283,7 +283,38 @@ "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", @@ -311,7 +342,7 @@ "question_key":"common_remarks", "question":"Remarks", "place_holder":"Enter the text", - "type":"7", + "type":"7", "api_properties":null, "answers":null, "onchange_properties":null, diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/13.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/13.json index 3b10ab1..4fbfbe0 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/13.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/13.json @@ -9,7 +9,7 @@ "type": "2", "field_width": "45", "api_properties": null, - "onchange_properties": [ + "onchange_properties": [ { "purpose": "FORM_CTRL", "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/5.json index 9ea7618..c73f156 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/5.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/5.json @@ -193,7 +193,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/6.json index 50dd4e5..462e3ec 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/6.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/6.json @@ -64,7 +64,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/8.json index d2c09c7..e25db33 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/8.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/8.json @@ -4,7 +4,7 @@ "onsubmit":null, "questions":[ { - "question":"Address", + "question":"Address", "question_key":"initiated_address", "type":"7", "field_width":"100", @@ -741,7 +741,38 @@ "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" diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json index 46469e0..bfa0124 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json @@ -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":"Remarks", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json index 135293a..d29c657 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json @@ -118,7 +118,7 @@ "question":"Contact Person Designation", "question_key":"contact_person_designation", "type":"8", - "field_width":"100", + "field_width":"100", "api_properties":{ "api":"getListOfMaster", "api_method":"POST", @@ -338,7 +338,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/12.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/12.json index 318e9b3..f77687c 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/12.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/12.json @@ -6,7 +6,7 @@ { "question":"Is the Client information available?", "question_key":"client_info_available", - "type":"2", + "type":"2", "field_width":"45", "api_properties":null, "onchange_properties":[ @@ -338,7 +338,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/13.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/13.json index b465931..2fee665 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/13.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/13.json @@ -4,7 +4,7 @@ "onsubmit": [], "questions": [ { - "question": "Is stock applicable to the business (Yes / No)", + "question": "Is stock applicable to the business (Yes / No)", "question_key": "stock_info_available", "type": "2", "field_width": "45", @@ -236,17 +236,7 @@ "question_key": "estimated_uom", "type": "3", "field_width": "100", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "UOM" - }, - "fields": [ - "uom_id", - "name" - ] - }, + "api_properties":null, "onchange_properties": null, "is_repeatable": null, "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json index 846129f..1e41050 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json @@ -4,6 +4,8 @@ "onsubmit":null, "questions":[ { + "question":[ + { "question":"Type of Business Entity", "question_key":"business_entity_type", "type":"1", @@ -11,7 +13,7 @@ "answers":null, "api_properties":null, "onchange_properties":null, - "is_repeatable":null, + "is_repeatable":null, "validations":[ { "name":"required", @@ -158,6 +160,12 @@ } ] } - ] + ], + + "is_repeatable":"1", + "group_title":"Details of General Business Information", + "group_key":"general_business" + } + ] } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/5.json index 2fd83bf..42c543b 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/5.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/5.json @@ -7,7 +7,7 @@ { "question":[ { - "question":"Name of key Stakeholder", + "question":"Name of key Stakeholder11", "question_key":"stakeholder_name", "place_holder":"Enter text", "type":"1", @@ -16,7 +16,7 @@ "onchange_properties":null, "is_repeatable":null, "field_type":"string", - "validations":[ + "validations":[ { "name":"required", "isactive":"1", @@ -193,7 +193,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/6.json index 634c009..0ddf792 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/6.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/6.json @@ -64,7 +64,38 @@ "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", diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/8.json index f883d6c..b0d3cb4 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/8.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/8.json @@ -30,7 +30,7 @@ "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)", + "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", @@ -331,6 +331,9 @@ } ] } + + + ] } ] @@ -626,7 +629,38 @@ "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" @@ -655,6 +689,7 @@ } ] } + ] diff --git a/ng6-seed/src/assets/data/WCTL.zip b/ng6-seed/src/assets/data/WCTL.zip new file mode 100644 index 0000000000000000000000000000000000000000..037ce48355813c66a70d15bcb44a48ce9cd389d8 GIT binary patch literal 13665 zcmZ{r1CS=m)~?&OZTGb8?rGb$ZQHgz?P=RKrfu7{d1vo^cASYg_s^*OR%J!S^Ho(u z=9_D+OgTwl5Ga7Z%1A+?!rv$V`2qcHRRxu#=;VIig7Uio0r2dXsIYW%HM|4^0KgOh z0Px%Va|;7Kt%akl%>}Nu?Hcg`Z8~kG;YT8nh(>Ri{J~`CRe9!ev1O3?S>d z+NQb^)RV%l3f-pTxymn(!ARKViMR_0B&%4McAhr?utWSbfzsvk?GBhHV{Gb_oX7;_?xH zY(0KCXZkz$Q)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(CCeg_1=Z{zWS+m{V~sO5AurBa;NOfekj_Ia6`N0dT5O78EBw82;hU=q=p-%l z4Tta6mh+$xi-{fiHPzX=t$=G@3#5qX2@6)KGBp=lbBjE>dmjCpSi#=aC9#c zV1ojqhH|E|S_F+s1vuqeyIAh&(7&zhzfZ>UMm5ssi>;d~*N*6##~2Y>TRNlP_|^7S zO4@d#ArARqnBY~&-HMT2YMs~Cq;dgDl1`5a<<-{G!I*&5ivuU+8A^q%97{(hTV2)V z#c55crE#Usaski6izDgWy0*e1rh7h@CkgL%j~HYQk;*_o znM_AaN@qh(N?$@qN)K$FM|2xw@oyG-1Tj98{#|9+*XqVUU1_dLMF1zw-7h4jC}0=( zO1RjwWP{b==hR-%%-4=tpnl=@b z;dS!kc{V`)DqEE1-lqHgRAv&7`;_USBz8xE<^_KPxL=$&1*G~W15yTyfr#B4LVBZm^ghuXHP_FB@Fgvp*;}#q=c%~IAwvzY&g>6qND_#-ERyOE@ z3m3%p0%O`6bhwT-sIoE{ADZUw4rx|y>X0Zmp#nvGYMJw!Sxyl_K z0>%Vy(=crQeEI|vIAJ#_71K7)f8L^ zqm??v{6+QF`Wg3;AeFH5J3bU+28Pg?Vs@fbxQw)f0F(O{*R0LC;Vg8cIPiRh84x%@PF-}@c*6f y{|N`6{15z}+5eyLsheKTzdpLfB-P*Wf32J(={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":[ + ] + } + + ] +} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/WCTL/11.json b/ng6-seed/src/assets/data/WCTL/11.json new file mode 100644 index 0000000..d29c657 --- /dev/null +++ b/ng6-seed/src/assets/data/WCTL/11.json @@ -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 + } + ] + } + + + ] + } + \ No newline at end of file diff --git a/ng6-seed/src/assets/data/WCTL/12.json b/ng6-seed/src/assets/data/WCTL/12.json new file mode 100644 index 0000000..f77687c --- /dev/null +++ b/ng6-seed/src/assets/data/WCTL/12.json @@ -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 + } + ] + } + + + ] + } + \ No newline at end of file diff --git a/ng6-seed/src/assets/data/WCTL/13.json b/ng6-seed/src/assets/data/WCTL/13.json new file mode 100644 index 0000000..2fee665 --- /dev/null +++ b/ng6-seed/src/assets/data/WCTL/13.json @@ -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 + } + ] + } + ] +} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/WCTL/5.json b/ng6-seed/src/assets/data/WCTL/5.json new file mode 100644 index 0000000..42c543b --- /dev/null +++ b/ng6-seed/src/assets/data/WCTL/5.json @@ -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" + } + ] + } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/WCTL/6.json b/ng6-seed/src/assets/data/WCTL/6.json new file mode 100644 index 0000000..0ddf792 --- /dev/null +++ b/ng6-seed/src/assets/data/WCTL/6.json @@ -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 + } + ] + } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/WCTL/8.json b/ng6-seed/src/assets/data/WCTL/8.json new file mode 100644 index 0000000..b0d3cb4 --- /dev/null +++ b/ng6-seed/src/assets/data/WCTL/8.json @@ -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 + } + ] + } + + + + ] + } + \ No newline at end of file