diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.html index 7891428b6..f959b13e0 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.html @@ -43,11 +43,11 @@
- +
- +
diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts index d6beb2474..1135059c1 100755 --- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts +++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts @@ -1097,7 +1097,7 @@ export class PdTrigerService { if(form_group == 1){ return this._http.post(this.apiUrl+'getPDFormDetails',{ "pd_id":pd_id,"pd_form_id":pd_form_id,"company_id":1}) }else{ - return this._http.post(this.apiUrl+'getPDFormDetails',{ "pd_id":pd_id,"pd_form_id":pd_form_id,parent_pdid:"2904"}) + return this._http.post(this.apiUrl+'getPDFormDetails',{ "pd_id":pd_id.pd_id,"pd_form_id":pd_form_id,parent_pdid:pd_id.parent_pd_id}) } diff --git a/ng6-seed/src/app/template2/edit-template/edit-template.component.html b/ng6-seed/src/app/template2/edit-template/edit-template.component.html index 294da2663..f3317cf1f 100644 --- a/ng6-seed/src/app/template2/edit-template/edit-template.component.html +++ b/ng6-seed/src/app/template2/edit-template/edit-template.component.html @@ -1,6 +1,16 @@ +

+
+ Uncheck The Questions to be Disabled
+
+
+ + +
+

-
+ @@ -32,7 +42,7 @@ - + mat-card { + border-radius: 0px 0px 0px 15px; + box-shadow: $base-card-box-shadow; + transform: scale(0.95); + transition: box-shadow 0.5s, transform 0.5s; + border: 1px solid lavender; + &:hover { + cursor: pointer; + // background-color: #e00201 !important; + transform: scale(1); + box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.2); + } + + } \ No newline at end of file diff --git a/ng6-seed/src/app/template2/edit-template/edit-template.component.ts b/ng6-seed/src/app/template2/edit-template/edit-template.component.ts index 6fbf35905..4e035ce07 100644 --- a/ng6-seed/src/app/template2/edit-template/edit-template.component.ts +++ b/ng6-seed/src/app/template2/edit-template/edit-template.component.ts @@ -9,6 +9,7 @@ import { MasterService } from '../master.service'; import { NotifierService } from 'angular-notifier'; import { ActivatedRoute, Router, Params } from '@angular/router'; import { FocusTrap } from '@angular/cdk/a11y'; +import { LenderListComponent } from '../lender-list/lender-list.component'; /** * Node for to-do item */ @@ -336,12 +337,12 @@ export class EditTemplateComponent { form_id: any; constructor(private database: ChecklistDatabase, private masterService: MasterService, private notifier: NotifierService , private route: ActivatedRoute, - private router: Router) { + private router: Router, private LenderListComponent: LenderListComponent,) { this.treeFlattener = new MatTreeFlattener(this.transformer, this.getLevel, this.isExpandable, this.getChildren); this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable); this.dataSource = new MatTreeFlatDataSource(this.treeControl, this.treeFlattener); - + this.LenderListComponent.showListView(false); database.dataChange.subscribe(data => { this.dataSource.data = data; }); diff --git a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.html b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.html index 94861a183..5f578e63e 100644 --- a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.html +++ b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.html @@ -1,6 +1,16 @@ +

+
+ Lender product and Customer Segment (Add / Edit)
+
+
+ + +
+

-
+
@@ -33,7 +43,7 @@
- {{ prcd.name }} + {{ prcd.abbr }} Product Required.! @@ -43,7 +53,7 @@
- {{ cusSeg.name }} + {{ cusSeg.abbr }} Customer Segment Required.! diff --git a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.scss b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.scss index b0f8a2b6d..bf4244b6d 100644 --- a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.scss +++ b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.scss @@ -1,3 +1,38 @@ form{ display: unset !important; -} \ No newline at end of file +} + +.paragraph_change { + color: #fff !important; + background-color: #e00201 !important; + } + + .p-text { + color:#e00201 !important; + font-weight: bold; + } + ::ng-deep .mat-card-header-text{ + margin:0px !important; +} +.mat-purple{ + background-color: gray !important; +} + .cdk-global-overlay-wrapper{ + justify-content: center !important; +} + + $base-card-box-shadow:1.5px 2.6px 24px 0 rgba(0, 35, 136, 0.08) !important; +mat-card .child_mat_card > mat-card { + border-radius: 0px 0px 0px 15px; + box-shadow: $base-card-box-shadow; + transform: scale(0.95); + transition: box-shadow 0.5s, transform 0.5s; + border: 1px solid lavender; + &:hover { + cursor: pointer; + // background-color: #e00201 !important; + transform: scale(1); + box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.2); + } + + } \ No newline at end of file diff --git a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts index fa6a2d208..cfa84fb0f 100644 --- a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts +++ b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts @@ -56,6 +56,7 @@ export class LenderProductSegMappingComponent implements OnInit { } ngOnInit() { + this.LenderListComponent.showListView(false); this.getTemplateLenderDetails(); this.getLenderMasters(); this.getProductsMasters(); diff --git a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.html b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.html index 201b5d248..813dead23 100644 --- a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.html +++ b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.html @@ -1,6 +1,15 @@ - +

+
+ Section List Edit Items (Enable / Disable)
+
+
+ + +
+

-
+ diff --git a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.scss b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.scss index d44278cbe..d0c8aae1e 100644 --- a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.scss +++ b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.scss @@ -1,6 +1,41 @@ // .child_mat_card mat-card { // margin: 2 0%; // } + +.paragraph_change { + color: #fff !important; + background-color: #e00201 !important; + } + + .p-text { + color:#e00201 !important; + font-weight: bold; + } + ::ng-deep .mat-card-header-text{ + margin:0px !important; +} +.mat-purple{ + background-color: gray !important; +} + .cdk-global-overlay-wrapper{ + justify-content: center !important; +} + + $base-card-box-shadow:1.5px 2.6px 24px 0 rgba(0, 35, 136, 0.08) !important; +mat-card .child_mat_card > mat-card { + border-radius: 0px 0px 0px 15px; + box-shadow: $base-card-box-shadow; + transform: scale(0.95); + transition: box-shadow 0.5s, transform 0.5s; + border: 1px solid lavender; + &:hover { + cursor: pointer; + // background-color: #e00201 !important; + transform: scale(1); + box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.2); + } + + } ::ng-deep .mat-dialog-container{ overflow: hidden !important; } diff --git a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts index 8c652c265..a8d37fa82 100644 --- a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts +++ b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts @@ -4,7 +4,7 @@ import {ActivatedRoute, Router} from '@angular/router'; import {MatDialog } from '@angular/material'; import {NotifierService} from 'angular-notifier'; import {ListPdComponent} from '../../personal-discussion/manage-pd/list-pd/list-pd.component'; - + import { LenderListComponent } from '../lender-list/lender-list.component'; import { LoaderService } from 'app/shared/loaderService/loader.service'; import { PdTrigerService } from 'app/personal-discussion/pd-service/pd-triger.service'; import { MasterService } from '../master.service'; @@ -55,7 +55,7 @@ export class SelectionListViewComponent implements OnInit { isDisabled:any =true; constructor(notifier: NotifierService, private dialog: MatDialog, private fb: FormBuilder, private route: ActivatedRoute, - private router: Router, private masterService: MasterService, + private router: Router, private masterService: MasterService,private LenderListComponent: LenderListComponent, private _pd: PdTrigerService,private loaderService:LoaderService) { this.startPD = this.route.snapshot.params['pdid']; this.randomString = this.route.snapshot.params['rdmstr']; @@ -66,6 +66,7 @@ export class SelectionListViewComponent implements OnInit { } ngOnInit() { + this.LenderListComponent.showListView(false); this.masterService.list_2_observable$.subscribe(res=> { console.log("nav list 3",res) this.formvalue = res @@ -121,8 +122,10 @@ export class SelectionListViewComponent implements OnInit { console.log( this.entity_id) let map_id = localStorage.getItem('map_id'); console.log(map_id) + console.log( this.formvalue) // console.log('start pd component inside - loadTemplates params are,',startID,type,randomString); this.masterService.loadPDTemplates(this.formvalue.template_lender_map_id).subscribe( + data => { console.log("after reponse = ", data); //console.log("after reponse = ", data.records.pdmaster_details); diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/1.json deleted file mode 100644 index a2857c1ff..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/1.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "section_id":"1", - "section_name":"Borrower & Guarantor Details", - "onsubmit":null, - "questions":[ - { - "question":[{ - "question":"Borrower Type", - "question_key":"borrower_type", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "value_keys":[ - "borrower_type" - ], - "questions":[ - { - "question":"Numbers of years for which the business has been running", - "question_key":"numbers_of_years_business_running", - "type":"1", - "field_width":"45", - "field_type":"num", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - ] - }, - { - "purpose":"validations", - "validations":[{ - "value_keys":["borrower_type"], - "value":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "validation_to":"borrower_age", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Name", - "question_key":"borrower_name", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "questions_level_two":[ - { - "question":"Mobile Number", - "question_key":"mobile_no", - "type":"1", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"pattern", - "isactive":"1", - "validator":"[0-9]{10}", - "message":"Mobile number should be 10 digit", - "value":null - } - ] - } - ], - "is_repeatable":"2", - "group_key":"mobile_numbers", - "group_title":"Mobile Number" - }, - { - "question":"Entity Type", - "question_key":"entity_type", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Age", - "question_key":"borrower_age", - "type":"1", - "field_type":"num", - "field_width":"50", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ]}, - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Met / Not Met", - "question_key":"borrower_met", - "type":"2", - - "field_width":"20", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - - ] - }, - { - "purpose":"question_label", - "expression":"(function () {let label= '';(String('entity_type').toLowerCase().includes('individual')) ? label= 'Number of years the borrower has been in this business.' : label = 'Number of years for which the business has been running';return label}())", - "value_keys":[ - "entity_type" - ], - "insert_control":"numbers_of_years_business_running" - }, - { - "purpose":"validations", - "validations":[{ - "value_keys":["borrower_type"], - "value":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "validation_to":"borrower_age", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Designation", - "question_key":"designation", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship to", - "question_key":"relationship_to", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - - - - ], - "is_repeatable":"1", - "group_key":"borrower_details", - "group_title":"Borrower Details"}, - { - "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":[ - ] - } - ] -} diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/10.json deleted file mode 100644 index 9ee4a9b08..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/10.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "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('financial_info_available').toLowerCase() == 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":"Name of the Company", - "question_key":"company_name", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getCompanyListForSMCList", - "api_method":"POST", - "params":{"records":{ - "pd_id":"VAR_PD_ID", - "random_string":"VAR_RANDOM_STRING" - }}, - "fields":[ - "company_id", - "borrower_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Company Name Required", - "value":null - } - ] - }, - { - "question": "Number of financial years for which we have financials", - "question_key": "no_of_financial_years", - "place_holder": "Enter the number", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "num", - "validations": [ - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]*", - "message": "Numeric only ", - "value": null - } - ] - } - ] - }] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - }, - - { - "question_key": "common_remarks", - "question": "Remarks", - "place_holder": "Enter the text", - "type": "7", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/11.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/11.json deleted file mode 100644 index faaaa4c2a..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/11.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/BACKUP/12.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/12.json deleted file mode 100644 index 007656584..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/12.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/BACKUP/13.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/13.json deleted file mode 100644 index 4fbfbe025..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/13.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/BACKUP/14.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/14.json deleted file mode 100644 index 6f19b9e15..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/14.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "section_id":"14", - "section_name":"Future Plans & Business Environments", - "onsubmit":null, - "questions":[ - { - "question":"USP of the business- How is applicant's business different from others in the same line of business", - "question_key":"usp_of_business", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Future plans for business expansion", - "question_key":"future_business_expansion", - "type":"1", - "field_type":"string", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Key competitors", - "question_key":"key_competitors", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Sucession plan- who will look after the business after applicant retire/are unable to run business due to any reason", - "question_key":"sucession_plan", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Brief of other group concerns/Business run by the applicants", - "question_key":"other_group_business_applicants", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question_key":"common_remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/15.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/15.json deleted file mode 100644 index a6fd1c0c3..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/15.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "section_id": "15", - "section_name": "Existing Loan Obligations", - "onsubmit": null, - "questions": [ - { - "question": [ - { - "question": "Loan type", - "question_key": "loan_type", - "type": "1", - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan amount", - "question_key": "loan_amount", - "type": "1", - "field_type": "numtoword", - "field_width": "100", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Lender name", - "question_key": "lender_name", - "type": "1", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan taken by", - "question_key": "loan_taken_by", - "type": "1", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Installment Amount", - "question_key": "instalment_amount", - "type": "1", - "field_width": "100", - "field_type": "numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Installment frequency", - "question_key": "instalment_frequency", - "type": "3", - "field_width": "100", - "api_properties": null, - "answers": [ - { - "answer_id": "Daily", - "answer": "Daily" - }, - { - "answer_id": "Every 12 days", - "answer": "Every 12 days" - }, - { - "answer_id": "Every 15 days", - "answer": "Every 15 days" - }, - { - "answer_id": "Monthly", - "answer": "Monthly" - }, - { - "answer_id": "Every 3 months", - "answer": "Every 3 months" - }, - { - "answer_id": "Every 6 months", - "answer": "Every 6 months" - }, - { - "answer_id": "Yearly", - "answer": "Yearly" - } - ], - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Original tenure in months", - "question_key": "original_tenure_months", - "type": "1", - "field_width": "100", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Current balance tenure in months", - "question_key": "current_tenure_months", - "type": "1", - "field_type": "num", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Elapsed tenure in mths", - "question_key": "elapsed_tenure_months", - "type": "1", - "field_width": "45", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(elapsed_tenure_months))", - "value_keys":[ - "original_tenure_months", "elapsed_tenure_months" - ], - "insert_control":"current_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - } - ], - "is_repeatable": "1", - "group_title": "Existing Loan Obligations", - "group_key": "existing_loan_details" - }, - { - "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/BACKUP/16.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/16.json deleted file mode 100644 index 00388db3c..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/16.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "section_id":"16", - "section_name":"Family Members Involved in Business", - "onsubmit":null, - "questions":[ - { - "question":"Is any other family member involved in the business", - "question_key":"is_family_details_available", - "type":"2", - "field_width":"45", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_family_details_available", - "expression":"(String('is_family_details_available') == String('Yes'))", - "value_keys":[ - "is_family_details_available" - ], - "questions":[ - { - "question":[ - { - "question":"Name", - "question_key":"member_name", - "place_holder":"Enter text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Name Required", - "value":null - }, - { - "name":"pattern", - "isactive":"1", - "validator":"[A-Za-z ]*", - "message":"alphabets only ", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[{ - "insert_index":"relationship", - "expression":"(String('relationship').toLowerCase() == String('1'))", - "value_keys":[ - "relationship" - ], - "questions":[ - { - "question": "Specify Facility details", - "question_key": "relationship_other", - "type": "1", - "field_width": "45", - "field_type": "string", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Relation to Individual Stakeholders", - "question_key":"stakeholder_relation", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Relation to Company / Firm", - "question_key":"company_relation", - "place_holder":"Enter text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMPANYRELATIONSHIPS" - }, - "fields":[ - "company_relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Started Business (Yes / No)", - "question_key":"started_biz", - "place_holder":"Enter text", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - - ], - "is_repeatable":"1", - "group_title":"Family Members Involved in Business", - "group_key":"family_details" - } - ]}] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"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/SMC_CREDIT_TEMPLATES/BACKUP/17.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/17.json deleted file mode 100644 index 0f4bf4230..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/17.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "section_id":"17", - "section_name":"Neighbourhood Details", - "onsubmit":[], - "questions":[ - { - "question":[ - { - "question":"Neighbour name", - "question_key":"neighbourhood_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":"Do you know about the applicant or their business?", - "question_key":"do_know", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"As per you how long has this business been in operation", - "question_key":"know_business_operation", - "place_holder":"Enter the text", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer":"Know", - "answer_id":"yes" - }, - { - "answer":"Do not know", - "answer_id":"no" - } - ], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ], - "onchange_properties": [ { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"know_business_operation", - "expression":"(String('know_business_operation') === String('yes'))", - "value_keys":[ - "know_business_operation" - ], - "questions":[ - { - "question":"Years", - "question_key":"how_long_do_know_in_year", - "type":"1", - "field_width":"100", - "field_type":"num", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"know_business_operation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } , - { - "question":"Months", - "question_key":"how_long_do_know_in_month", - "type":"1", - "field_type":"num", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"know_business_operation", - "answers":null, - "validations":[ - ] - } - - ] } ] }] - }, - { - "question":"Who is the owner of organisation?", - "question_key":"know_organisation_owner", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer":"Know", - "answer_id":"yes" - }, - { - "answer":"Do not know", - "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":"know_organisation_owner", - "expression":"(String('know_organisation_owner') === String('yes'))", - "value_keys":[ - "know_organisation_owner" - ], - "questions":[ - { - "question":"Who is the owner of the organisation", - "question_key":"organisation_owner", - "type":"4", - "field_width":"100", - "field_type":"num", - "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":"know_organisation_owner", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - - ] } ] }] - } - - ], - "is_repeatable":"1", - "group_title":"Neighbourhood Details", - "group_key":"neighbourhood_list" - }, - { - "question":"Status of the neighbour check as per Credit Manager", - "question_key":"neighbourhood_status", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer":"Select", - "answer_id":"" - }, - { - "answer":"Positive", - "answer_id":"Positive" - }, - { - "answer":"Negative", - "answer_id":"Negative" - }, - { - "answer":"Could Not Verify", - "answer_id":"Could Not Verify" - } - ], - "onchange_properties":[ - { - "purpose":"validations", - "validations":[{ - "value_keys":["neighbourhood_status"], - "value":"(String('neighbourhood_status').toLowerCase() != String('positive'))", - "validation_to":"neighbourhood_remarks", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Remarks", - "question_key":"neighbourhood_remarks", - "type":"7", - "placeholder":"Enter the remarks", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/18.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/18.json deleted file mode 100644 index 481c1aa36..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/18.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "section_id":"18", - "section_name":"Credit manager specific queries", - "onsubmit":[], - "questions":[ - { - "question":[ - { - "question":"Question", - "question_key":"question", - "place_holder":"Enter text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - ] - }, - { - "question":"Answer", - "question_key":"answer", - "place_holder":"Enter the answer here", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - ] - } - ], - "is_repeatable":"1", - "group_title":"Query", - "group_key":"cm_queries" - }, - { - "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/BACKUP/19.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/19.json deleted file mode 100644 index fac96f75c..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/19.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "section_id":"19", - "section_name":"Final remarks", - "onsubmit":null, - "questions":[ - { - "question":"Customer Behaviour", - "question_key":"customer_behaviour", - "type":"3", - "field_width":"45", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"CUSTOMERBEHAVIOUR" - }, - "fields":[ - "customer_behaviour_id", - "description" - ] - }, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"customer_behaviour", - "expression":"(String('customer_behaviour') == String('1'))", - "value_keys":[ - "customer_behaviour" - ], - "questions":[ - { "question":"Specify Customer behaviour", - "question_key":"customer_behaviour_other", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"customer_behaviour", - "answers":null, - "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 the location of the business suited to the nature of the business provided?", - "question_key":"business_location_suited", - "type":"3", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":[ - { - "answer":"Well Suited", - "answer_id":"Well Suited" - }, - { - "answer":"Fairly suited", - "answer_id":"Fairly suited" - }, - { - "answer":"Not suited", - "answer_id":"Not suited" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Credit Manager recommendation (Positive/negative/ refer to credit)", - "question_key":"pd_officer_recommendation", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDOFFICERRECOMMENDATIONS" - }, - "fields":[ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"pd_officer_recommendation", - "expression":"(String('pd_officer_recommendation') == String('1'))", - "value_keys":[ - "pd_officer_recommendation" - ], - "questions":[ - { "question":"Specify Credit Manager Recommendation", - "question_key":"pd_officer_recommendation_other", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"pd_officer_recommendation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } ] } , - { - "insert_index":"pd_officer_recommendation", - "expression":"(String('pd_officer_recommendation') != String('1')) && (String('pdofficer_recommendation') != String(''))", - "value_keys":[ - "pd_officer_recommendation" - ], - "questions":[ - { - "question":[{ - "question":"Reasons for marking PD status as Positive/negative/ refer to credit", - "question_key":"reason", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"pd_officer_recommendation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - ], - "is_repeatable":"1", - "group_title":"Remarks", - "group_title_shown":"0", - "group_key":"pd_officer_recommendation_remarks" - } ] } - ] }, - { - "purpose":"question_label", - "expression":"(function () {let label= 'Reasons for marking PD status as ';('pd_officer_recommendation' == '2') ? label+= 'Positive' : ('pd_officer_recommendation' == '3') ? label+= 'Negative' : ('pd_officer_recommendation' == '4') ? label+= 'Refer to Credit' : label+= 'Positive/negative/ refer to credit';return label}())", - "value_keys":[ - "pd_officer_recommendation" - ], - "insert_control":"reason", - "insert_group_key":"pd_officer_recommendation_remarks" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Common Remarks", - "question_key":"final_form_remarks", - "place_holder":"Enter the remarks here", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - ] - } - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/2.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/2.json deleted file mode 100644 index 40302fa46..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/2.json +++ /dev/null @@ -1,389 +0,0 @@ -{ - "section_id":"2", - "section_name":"Address details", - "onsubmit":null, - "questions":[ - { - "question":"Address at which PD was initiated", - "question_key":"initiated_address", - "type":"7", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Is this the address where PD is done ?", - "question_key":"is_pd_done_on_initiated_address", - "type":"2", - "field_width":"45", - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_pd_done_on_initiated_address", - "expression":"(String('is_pd_done_on_initiated_address') == String('No'))", - "value_keys":[ - "is_pd_done_on_initiated_address" - ], - "questions":[ - { - "question":"Choose the actual PD address", - "question_key":"alternative_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":"is_pd_done_on_initiated_address", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - ] - } - ] - }], - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Type of PD address", - "question_key":"address_type", - "type":"3", - "field_width":"90", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ADDRESSTYPE" - }, - "fields":[ - "address_type_id", - "address_type" - ] - }, - "answers":null, - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"address_type", - "expression":"(String('address_type') == String('1'))", - "value_keys":[ - "address_type" - ], - "questions":[ - { - "question":"Specify the Address Type", - "question_key":"address_type_others", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"uom", - "answers":null, - "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":"PD locality", - "question_key":"pd_locality", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"LOCALITY" - }, - "fields":[ - "locality_id", - "locality_name" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[{ - "insert_index":"pd_locality", - "expression":"(String('pd_locality').toLowerCase() == String('1'))", - "value_keys":[ - "pd_locality" - ], - "questions":[ - { - "question": "Specify Locality", - "question_key": "locality_other", - "type": "1", - "field_width": "45", - "field_type": "string", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Approach to PD location*", - "question_key":"pd_location", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDLOCATIONAPPROACH" - }, - "fields":[ - "pd_location_approach_id", - "description" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Comment on locality", - "question_key":"comment_locality", - "type":"3", - "field_width":"25", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMMENTSONLOCALITY" - }, - "fields":[ - "comments_on_locality_id", - "rating" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Estimated Area of the business", - "question_key":"business_estimated_area", - "type":"1", - "field_width":"30", - "field_type":"num", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"UOM", - "question_key":"uom", - "type":"8", - "field_width":"30", - "api_properties":null, - "answers":[ - { - "answer":"Acres", - "answer_id":"Acres" - }, - { - "answer":"Hectares", - "answer_id":"Hectares" - }, - { - "answer":"Square Feet", - "answer_id":"Square Feet" - }, - { - "answer":"Square Meters", - "answer_id":"Square Meters" - }, - { - "answer":"Square Yards", - "answer_id":"Square Yards" - } - ], - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"uom", - "expression":"(String('uom') == String('1'))", - "value_keys":[ - "uom" - ], - "questions":[ - { - "question":"Specify the UOM", - "question_key":"uom_specify", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"uom", - "answers":null, - "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_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/BACKUP/3.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/3.json deleted file mode 100644 index 7032ca8d9..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/3.json +++ /dev/null @@ -1,409 +0,0 @@ -{ - "section_id":"2", - "section_name":"Loan details", - "onsubmit":null, - "questions":[ - { - "question":"Loan amount applied for", - "question_key":"loan_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - { - "question":"Remarks on source of funds for balance amount required", - "question_key":"remarks_fund_source_balance", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"total_fund_requirement", - "answers":null, - "validations":[ - - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Loan Tenure (in months)", - "question_key":"loan_tenure", - "type":"1", - "field_type":"num", - "field_width":"100", - "onchange_properties": null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Sub Product", - "question_key":"sub_product", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"SUBPRODUCTS" - }, - "fields":[ - "subproduct_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"End use of loan", - "question_key":"end_use", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Total fund requirement", - "question_key":"total_fund_requirement", - "type":"1", - "field_width":"45", - "api_properties":null, - "field_type":"numtoword", - "answers":null, - "onchange_properties": [ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - { - "question":"Remarks on source of funds for balance amount required", - "question_key":"remarks_fund_source_balance", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"total_fund_requirement", - "answers":null, - "validations":[ - - ] - } - ] - }] - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Is there a BT?", - "question_key":"is_transfer", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_transfer", - "expression":"(String('is_transfer') == String('Yes'))", - "value_keys":[ - "is_transfer" - ], - "questions":[ - { - "question":"What is the amount of balance transfer", - "question_key":"balance_transfer_amount", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_transfer", - "answers":null, - "validations":[ - - ] - }, - { - "question":"Lender from where BT is done", - "question_key":"lender", - "type":"8", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Top up amount", - "question_key":"topup_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - } - ] - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Type of property being Mortgaged", - "question_key":"property_type", - "type":"1", - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Name of Owner", - "question_key":"owner_name", - "type":"4", - "field_width":"45", - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Property Completion Stage", - "question_key":"construction_status", - "type":"1", - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ { - "insert_index":"construction_status", - "expression":"(String('construction_status') != String(''))", - "value_keys":[ - "construction_status" - ], - "questions":[ - { - "question":"Stage of Construction", - "question_key":"construction_stage", - "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":"construction_status", - "answers":null, - "validations":[ - - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Estimated market value as per customer", - "question_key":"emv_per_customer", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question":"Market Value Considered for LTV Calculation (Rs)", - "question_key":"ltv_market_value_calculation", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question":"Address of the proposed property", - "question_key":"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, - "answers":null, - "validations":[ - ] - }, - { - "question":"Property Usage", - "question_key":"property_usage", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question":"Structure Type", - "question_key":"structure_type", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "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/BACKUP/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/4.json deleted file mode 100644 index 80dea62ca..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/4.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "section_id": "4", - "section_name": "General Business Information", - "onsubmit": null, - "questions": [ - { - "question": [ - { - "question":"Name of the Company", - "question_key":"company_name", - "place_holder":"Enter text", - "type":"3", - "default_index_if_len_one":true, - "api_properties":{ - "api":"getCompanyListForSMCList", - "api_method":"POST", - "params":{"records":{ - "pd_id":"VAR_PD_ID", - "random_string":"VAR_RANDOM_STRING" - }}, - "fields":[ - "company_id", - "borrower_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Company Name Required", - "value":null - } - ] - }, - { - "question": "Type of Business Entity", - "question_key": "business_entity_type", - "type": "1", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Type of Business activities", - "question_key": "select_business_activity_type", - "type": "1", - "field_width": "45", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Area of Sale", - "question_key": "area_of_sale", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Within India", - "answer_id": "Within India" - }, - { - "answer": "Export", - "answer_id": "Export" - }, - { - "answer": "Both (within India and Export)", - "answer_id": "Both (within India and Export)" - } - ], - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Is the business seasonal (Yes / No)", - "question_key": "seasonality", - "type": "2", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Yes", - "answer_id": "Yes" - }, - { - "answer": "No", - "answer_id": "No" - } - ], - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "seasonality", - "expression": "(String('seasonality') == String('Yes'))", - "value_keys": [ - "seasonality" - ], - "questions": [ - { - "question_key": "low_sale_month_reason", - "question": "Reason for Months in which sales/services is low?", - "place_holder": "Enter the text", - "type": "1", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "is_subfield": "1", - "field_width": "45", - "parent_question_key": "seasonality", - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Required", - "value": null - } - ] - }, - { - "question_key": "low_sale_month", - "question": "Months in which sales/services is low?", - "place_holder": "", - "type": "4", - "api_properties": null, - "answers": [ - { - "answer_id": "January", - "answer": "January" - }, - { - "answer_id": "February", - "answer": "February" - }, - { - "answer_id": "March", - "answer": "March" - }, - { - "answer_id": "April", - "answer": "April" - }, - { - "answer_id": "May", - "answer": "May" - }, - { - "answer_id": "June", - "answer": "June" - }, - { - "answer_id": "July", - "answer": "July" - }, - { - "answer_id": "August", - "answer": "August" - }, - { - "answer_id": "September", - "answer": "September" - }, - { - "answer_id": "October", - "answer": "October" - }, - { - "answer_id": "November", - "answer": "November" - }, - { - "answer_id": "December", - "answer": "December" - } - ], - "onchange_properties": null, - "is_repeatable": null, - "field_type": "num", - "field_width": "45", - "is_subfield": "1", - "parent_question_key": "seasonality", - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Required", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - } - ], - "is_repeatable": "1", - "group_title": "Details of General Business Information", - "group_key": "business_entity" - }, - { - "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/BACKUP/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/5.json deleted file mode 100644 index eeb246cc2..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/5.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "section_id":"5", - "section_name":"Key Stakeholders in Business", - "onsubmit":[ - ], - "questions":[ - { - "question":[ - { - "question":"Name of the Entity", - "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":"Entity Name Required", - "value":null - } - ] - - }, - { - "question":"length", - "question_key":"stakeholder_length", - "type":"hidden", - - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string" - }, - - { - "question":"Name of key Stakeholder", - "question_key":"stakeholder_name0", - "place_holder":"Enter text", - "type":"1", - "field_width":"19", - "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_holding0", - "place_holder":"Enter number", - "type":"1", - "field_width":"19", - "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_biz0", - "place_holder":"Enter in years", - "type":"1", - "field_width":"19", - "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":"started_biz0", - "expression":"(total_work_exp0 > vintage_in_current_biz0)", - "value_keys":[ - "total_work_exp0", - "vintage_in_current_biz0" - ], - "questions":[ - { - "question_key":"previous_experience_details0", - "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_biz0", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Previous Experience Required", - "value":null - } - ] - } - ] - } - ] - } - ] - }, - { - "question":"Total Work Experience (in years)", - "question_key":"total_work_exp0", - "place_holder":"Enter in years", - "type":"1", - "field_width":"19", - "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":"started_biz0", - "expression":"(total_work_exp0 > vintage_in_current_biz0)", - "value_keys":[ - "total_work_exp0", - "vintage_in_current_biz0" - ], - "questions":[ - { - "question":"Previous Experience Details", - "question_key":"previous_experience_details0", - "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_exp0", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Previous Experience Required", - "value":null - } - ] - } - ] - } - ] - } - ] - }, - { - "question":"Started Business (Yes / No)", - "question_key":"started_biz0", - "type":"2", - "field_width":"19", - "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 - } - ] - - } - - - ], - "is_repeatable":"1", - "group_title":"Details of Key Stakeholders in the Business", - "group_key":"key_stakeholders", - "form_name":"Key Stakeholders in Business" - }, - { - "question_key":"common_remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/6.json deleted file mode 100644 index 462e3ece7..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/6.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/BACKUP/7.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/7.json deleted file mode 100644 index 6d511686f..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/7.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "section_id":"7", - "section_name":"Employee Strength", - "onsubmit":[], - "questions":[ - { - "question":"Permanent Employees", - "sub_title":"No of Employees (As per person met)", - "question_key":"permanant_employees_person_met", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Temporary Employees", - "question_key":"temporary_employees_person_met", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - ] - }, - { - "question":"Permanent Employees", - "sub_title":"No of Employees (Sighted by Credit Manager)", - "question_key":"permanant_employees_cm", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Temporary Employees", - "question_key":"temporary_employees_cm", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - ] - }, - { - "question":"Permanent Employees", - "sub_title":"Approximate Salary Paid (Rs Per Month)", - "question_key":"permanant_employees_salary", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Temporary Employees", - "question_key":"temporary_employees_salary", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"45", - "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/BACKUP/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/8.json deleted file mode 100644 index e25db336b..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/8.json +++ /dev/null @@ -1,816 +0,0 @@ -{ - "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/BACKUP/9.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/9.json deleted file mode 100644 index 95c2d22cd..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/BACKUP/9.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "section_id": "9", - "section_name": "Business and Personal Banking Details", - "onsubmit": [], - "questions": [ - { - "question": [ - { - "question": "Account holder name", - "question_key": "applicant_name", - "type": "1", - "api_properties": { - "purpose": "answer_options_local", - "master_name": "pd_applicants", - "fields": [ - "pd_co_applicant_id", - "applicant_name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Bank Name", - "question_key": "bank_name", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Account type", - "question_key": "account_type", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Savings", - "answer_id": "Savings" - }, - { - "answer": "OD", - "answer_id": "OD" - }, - { - "answer": "Current", - "answer_id": "Current" - }, - { - "answer": "CC", - "answer_id": "CC" - } - ], - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "account_type", - "expression": "(String('account_type').toLowerCase() != String('savings') && String('account_type').toLowerCase() != String('current'))", - "value_keys": [ - "account_type" - ], - "questions": [ - { - "question": "OD/CC Limit", - "question_key": "cc_limit", - "type": "1", - "field_width": "45", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": "1", - "group_title": "Banking Details", - "group_key": "banking_details" - }, - { - "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/DONE/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/1.json deleted file mode 100644 index a2857c1ff..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/1.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "section_id":"1", - "section_name":"Borrower & Guarantor Details", - "onsubmit":null, - "questions":[ - { - "question":[{ - "question":"Borrower Type", - "question_key":"borrower_type", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "value_keys":[ - "borrower_type" - ], - "questions":[ - { - "question":"Numbers of years for which the business has been running", - "question_key":"numbers_of_years_business_running", - "type":"1", - "field_width":"45", - "field_type":"num", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - ] - }, - { - "purpose":"validations", - "validations":[{ - "value_keys":["borrower_type"], - "value":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "validation_to":"borrower_age", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Name", - "question_key":"borrower_name", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "questions_level_two":[ - { - "question":"Mobile Number", - "question_key":"mobile_no", - "type":"1", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"pattern", - "isactive":"1", - "validator":"[0-9]{10}", - "message":"Mobile number should be 10 digit", - "value":null - } - ] - } - ], - "is_repeatable":"2", - "group_key":"mobile_numbers", - "group_title":"Mobile Number" - }, - { - "question":"Entity Type", - "question_key":"entity_type", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Age", - "question_key":"borrower_age", - "type":"1", - "field_type":"num", - "field_width":"50", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ]}, - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Met / Not Met", - "question_key":"borrower_met", - "type":"2", - - "field_width":"20", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - - ] - }, - { - "purpose":"question_label", - "expression":"(function () {let label= '';(String('entity_type').toLowerCase().includes('individual')) ? label= 'Number of years the borrower has been in this business.' : label = 'Number of years for which the business has been running';return label}())", - "value_keys":[ - "entity_type" - ], - "insert_control":"numbers_of_years_business_running" - }, - { - "purpose":"validations", - "validations":[{ - "value_keys":["borrower_type"], - "value":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "validation_to":"borrower_age", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Designation", - "question_key":"designation", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship to", - "question_key":"relationship_to", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - - - - ], - "is_repeatable":"1", - "group_key":"borrower_details", - "group_title":"Borrower Details"}, - { - "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":[ - ] - } - ] -} diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/10.json deleted file mode 100644 index 78f61e139..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/10.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "section_id": "10", - "section_name": "Neighbourhood / Reference Check", - "onsubmit": [ - - ], - "questions": [ - { - "question":[ - { - "question_key": "Neighbour_Name", - "question": "Neighbour Name", - "place_holder": "Enter the text", - "type": "1", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - }, { - "question_key": "Do_you_known_about_the_applicants_or_their_business", - "question": "Do you known about the applicants or their business?", - "place_holder": "Enter the text", - "type": "3", - "api_properties": null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Do_you_known_about_the_applicants_or_their_business", - "expression":"(String('Do_you_known_about_the_applicants_or_their_business') == String('Yes'))", - "value_keys":[ - "Do_you_known_about_the_applicants_or_their_business" - ], - "questions":[ - { - "question_key": "As_per_you_how_long_has_this_business_been_in_operation", - "question": "As per you how long has this business been in operation?", - "place_holder": "Enter the text", - "type": "5", - "api_properties": null, - "answers":[ - { - "answer_id":"Do_not_know", - "answer":"Do not know" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"As_per_you_how_long_has_this_business_been_in_operation", - "expression":"(String('As_per_you_how_long_has_this_business_been_in_operation') != String('Do_not_know'))", - "value_keys":[ - "As_per_you_how_long_has_this_business_been_in_operation" - ], - "questions":[ - { "question":"Year", - "question_key":"Year", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"As_per_you_how_long_has_this_business_been_in_operation", - "answers":null, - "validations":[ - - ] - }, - { "question":"Month", - "question_key":"YeMonthar", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"As_per_you_how_long_has_this_business_been_in_operation", - "answers":null, - "validations":[ - - ] - } ] } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "100", - "validations": [] - }, - { - "question_key": "Who_is_the_owner_of_the_organisation", - "question": "Who is the owner of the organisation?", - "place_holder": "Enter the text", - "type": "5", - "api_properties": null, - "answers":[ - { - "answer_id":"Do_not_know", - "answer":"Do not know" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Who_is_the_owner_of_the_organisation", - "expression":"(String('Who_is_the_owner_of_the_organisation') != String('Do_not_know'))", - "value_keys":[ - "Who_is_the_owner_of_the_organisation" - ], - "questions":[ - { "question_key": "Who_is_the_owner_of_the_organisations", - "question": "Who is the owner of the organisation?", - "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":"Who_is_the_owner_of_the_organisation", - "answers":null, - "validations":[ - - ] - } - ] } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "100", - "validations": [] - } - ] - } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - } - ], - "is_repeatable":"1", - "hidden_button":true, - "group_title":"Neighbourhood", - "group_key":"Neighbourhood" - }, - - { - "question_key": "Status of the check as per PD officer?", - "question": "Status of the check as per PD officer?", - "place_holder": "Enter the text", - "type": "3", - "api_properties": null, - "answers":[ - { - "answer_id":"Positive", - "answer":"Positive" - }, - { - "answer_id":"Negative", - "answer":"Negative" - }, { - "answer_id":"Could_not_verify", - "answer":"Could not verify" - } - ], - "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/DONE/11.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/11.json deleted file mode 100644 index 69fa506dd..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/11.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "section_id":"11", - "section_name":"Credit Manager Queries", - "onsubmit":null, - "questions":[ - { - "question":"Is your business adversely impacted by coronavirus outbreak ?", - "question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "type":"2", - "sub_title":"Covid 19 Questions", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "expression":"(String('Is_your_business_adversely_impacted_by_coronavirus_outbreak') == String('No'))", - "value_keys":[ - "Is_your_business_adversely_impacted_by_coronavirus_outbreak" - ], - "questions":[ - { "question":"Enter Your Remarks", - "question_key":"Enter_Your_Remarks", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "answers":null, - "validations":[ - - ] - } ] } ] }, - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "expression":"(String('Is_your_business_adversely_impacted_by_coronavirus_outbreak') == String('Yes'))", - "value_keys":[ - "Is_your_business_adversely_impacted_by_coronavirus_outbreak" - ], - "questions":[ - { "question":"Enter Your Remarks", - "question_key":"enter_Your_Remarks", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Did you avail the loan moratorium facility on your existing loans which is extended by your bank or financial institution?", - "question_key":"your_bank_or_financial_institution", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - ], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Are you planning to avail/ or already availed any loan or any other term facility for your business or personal use?", - "question_key":"your_business_or_personal_use", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"your_business_or_personal_use", - "expression":"(String('your_business_or_personal_use') == String('Yes'))", - "value_keys":[ - "your_business_or_personal_use" - ], - "questions":[ - { "question":"How much is your sales/revenue from April till date?", - "question_key":"sales/revenue_April_till_date", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - }, { - "question":"Please specify amount,lender etc", - "question_key":"Please_specify_amount_lender_etc", - "type":"7", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"your_business_or_personal_use", - "expression":"(String('your_business_or_personal_use') == String('No'))", - "value_keys":[ - "your_business_or_personal_use" - ], - "questions":[ - { "question":"How much is your sales/revenue from April till date?", - "question_key":"How_much_is_your_sales/revenue_from_April_till_date", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Is turnover mentioned above (sales/revenue from April till date) validated?", - "question_key":"sales/revenue_from_April_till_date_validated", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"sales/revenue_from_April_till_date_validated", - "expression":"(String('sales/revenue_from_April_till_date_validated') == String('Yes'))", - "value_keys":[ - "sales/revenue_from_April_till_date_validated" - ], - "questions":[ - { "question":"Choose any ", - "question_key":"Choose any", - "type":"3", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":[ - { - "answer_id":"Bills", - "answer":"Bills" - }, - { - "answer_id":"Gst_returns", - "answer":"Gst returns" - }, - { - "answer_id":"records_shown", - "answer":"records shown" - } - ], - "validations":[ - - ] - } - - - - ] - } - ] - } ], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - } - - - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/12.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/12.json deleted file mode 100644 index 91a7eebc3..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/12.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "section_id":"12", - "section_name":"Final Remarks Details", - "onsubmit":null, - "questions":[ - { - "question":"Customer Behaviour", - "question_key":"Customer_Behaviour", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"CUSTOMERBEHAVIOUR" - }, - "fields":[ - "customer_behaviour_id", - "description" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - { - "question":"Is the location of the business / profession suited to the nature of business / service provided?", - "question_key":"location_of_the_business", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - "answer":"Well Suited", - "answer_id":"Well Suited" - }, - { - "answer":"Fairly Suited", - "answer_id":"Fairly Suited" - },{ - "answer":"Not Suited", - "answer_id":"Not Suited" - }], - "onchange_properties":null, - "is_repeatable":null, - "sub_title":"Location", - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question":"Personal feedback or market intelligence on the case (if any)", - "question_key":"Personal_feedback_or_market_intelligence_on_the_case", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"PD_Officers_Recommendation", - "question":"PD Officers Recommendation", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDOFFICERRECOMMENDATIONS" - }, - "fields":[ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('2'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Positive", - "question_key":"Reasons_for_marking_PD_status_as_Positive", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Positive", - "group_title":"Reasons for marking PD status as Positive" - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('3'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Negative", - "question_key":"Reasons_for_marking_PD_status_as_Negative", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Negative", - "group_title":"Reasons for marking PD status as Negative" - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('1'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":"Specify PD Officers Recommendation", - "question_key":"Specify_PD_Officers_Recommendation", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('4'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Refer to Credit", - "question_key":"Reasons_for_marking_PD_status_as_Refer_to_Credit", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Refer_to_Credit", - "group_title":"Reasons for marking PD status as Refer to Credit" - }] - }] - - - -}], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, { - "question_key":"Any_additional_visit_(Godown/multiple_rental_properties)", - "question":"Any additional visit (Godown /multiple rental properties)", - "place_holder":"Enter the text", - "type":"12", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question":"Mode of Transport Used to Visit the PD address", - "question_key":"Mode_of_Transport_Used_to_Visit_the_PD_address", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Two_Wheeler", - "answer":"Two Wheeler" - },{ - "answer_id":"Four_Wheeler", - "answer":" Four Wheeler" - },{ - "answer_id":"Public_Transport", - "answer":"Public Transport" - }, - { - "answer_id":"Others", - "answer":"Others" - } - - ], - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Mode_of_Transport_Used_to_Visit_the_PD_address", - "expression":"(String('Mode_of_Transport_Used_to_Visit_the_PD_address') == String('Others'))", - "value_keys":[ - "Mode_of_Transport_Used_to_Visit_the_PD_address" - ], - "questions":[ - { - "question":"Specify the Mode of Transport Used to Visit the PD address", - "question_key":"Specify_the_Mode_of_Transport_Used_to_Visit_the_PD_address", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - }] - - - - }], - "is_repeatable":null, - "validations":[ - - ] - } - - - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/13.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/13.json deleted file mode 100644 index 4fbfbe025..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/13.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/DONE/2.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/2.json deleted file mode 100644 index 002a01fcb..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/2.json +++ /dev/null @@ -1,498 +0,0 @@ -{ - "section_id":"5", - "section_name":"Address details", - "onsubmit":null, - "questions":[ - { - "question":"Address at which PD was initiated", - "question_key":"initiated_address", - "type":"7", - "disable":false, - "field_width":"100", - "title":"Address Details", - "answers":true, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - }, - { - "question":"Is this the address where PD is done ?", - "question_key":"is_pd_done_on_initiated_address", - "type":"2", - "disable":false, - "field_width":"100", - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_pd_done_on_initiated_address", - "expression":"(String('is_pd_done_on_initiated_address') == String('No'))", - "value_keys":[ - "is_pd_done_on_initiated_address" - ], - "questions":[ - { - "question":"Reason for change in PD visit address", - "question_key":"end_use", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question": "Pincode", - "question_key": "pincode2", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - }, { - "question": "City", - "question_key": "city2", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question":"State", - "question_key":"State_list", - "type":"3", - "disable":false, - "field_width":"25", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"STATE" - }, - "fields":[ - "state_id", - "name" - ] - - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Enter actual PD address", - "question_key":"actual_pd_address", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - } - - ] - } - ] - }], - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Address Type", - "question_key":"Address_Type", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ADDRESSTYPE" - }, - "fields":[ - "address_type_id", - "address_type" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Locality", - "question_key":"Locality", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"LOCALITY" - }, - "fields":[ - "locality_id", - "locality_name" - ] - }, - - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Approach to PD location*", - "question_key":"Approach_to_PD_location", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDLOCATIONAPPROACH" - }, - "fields":[ - "pd_location_approach_id", - "description" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Comment on Locality", - "question_key":"Comment_on_Locality", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMMENTSONLOCALITY" - }, - "fields":[ - "comments_on_locality_id", - "rating" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Unit of Measurement", - "question_key":"Unit_of_Measurement", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"UOM" - }, - "fields":[ - "uom_id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - },{ - "question":"Estimate area of the Residence", - "question_key":"Estimate_area_of_the_Residence", - "type":"1", - "disable":false, - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "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/SMC_CREDIT_TEMPLATES/DONE/3.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/3.json deleted file mode 100644 index 80140a283..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/3.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "section_id":"3", - "section_name":"Loan details", - "onsubmit":null, - "questions":[ - { - "question":"Loan amount applied for ?", - "question_key":"loan_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - { - "question":"Remarks on source of funds for balance amount required", - "question_key":"remarks_fund_source_balance", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"total_fund_requirement", - "answers":null, - "validations":[ - - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Loan Tenure applied for ?", - "question_key":"loan_tenure", - "type":"1", - "field_type":"num", - "field_width":"25", - "onchange_properties": null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Sub Product", - "question_key":"sub_product", - "type":"3", - "field_width":"65", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"SUBPRODUCTS" - }, - "fields":[ - "subproduct_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"What is the end use", - "question_key":"end_use", - "type":"3", - "field_width":"65", - "api_properties":{ - "api":"getEndUseOfLoan", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":["enduse_of_loan_id","enduse_of_loan"] - }, - - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Is there a balance transfer?", - "question_key":"balance_transfer", - "type":"3", - "field_width":"65", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"EMI Amount comfortable paying", - "question_key":"emi_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Type of Property", - "question_key":"is_transfer", - "type":"3", - "sub_title":"Details of Property being Mortgaged", - "field_width":"55", - "api_properties":null, - "answers":[ - { - "answer_id":"Chawl", - "answer":"Chawl" - },{ - "answer_id":"Flat", - "answer":"Flat" - },{ - "answer_id":"Floor", - "answer":"Floor" - }, - { - "answer_id":"Independent House", - "answer":"Independent House" - }, { - "answer_id":"Row House", - "answer":"Row House" - } - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Specify Type of Property*", - "question_key":"Specify_Type", - "type":"1", - "field_width":"55", - "api_properties":null, - "answers":[ - { - "answer_id":"other", - "answer":"other" - } - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Name of Owner", - "question_key":"owner_name", - "type":"4", - "field_width":"45", - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Status of Construction", - "question_key":"is_transfer", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"STATUSOFCONSTRUCTION" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - - { - "question":"Estimated market value as per customer", - "question_key":"emv_per_customer", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question":"Address of Property*", - "question_key":"Address_of_Property", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - } - - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/4.json deleted file mode 100644 index ef9f27ef7..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/4.json +++ /dev/null @@ -1,764 +0,0 @@ -{ - "section_id": "4", - "section_name": "Employement Information", - "onsubmit": null, - "questions": [ - - - - { - "question": "Name of Employer*", - "question_key": "Name_of_Employer", - "type": "3", - "disable":false, - "field_width": "35", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Company profile in brief", - "question_key": "Company_profile_in_brief", - "type": "7", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Since how long working with this employer?", - "question_key": "Since_how_long_working_with_this_employer?", - "field_type":"null", - "sub_title":"Since how long working with this employer?", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question": "Year*", - "question_key": "Year", - "type": "1", - "field_type":"num", - - "disable":false, - "field_width": "25", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Month", - "question_key": "Month", - "type": "1", - "disable":false, - "field_type":"num", - "field_width": "25", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Total Work Experience", - "question_key": "Total_Work_Experience", - "type": "1", - "disable":false, - "field_width": "25", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question":"Was the employee met?", - "question_key":"Was_the_employee_met", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Was_the_employee_met", - "expression":"(String('Was_the_employee_met') == String('Yes'))", - "value_keys":[ - "Was_the_employee_met" - ], - "questions":[ - { - "question":"Name of the Person met", - "question_key":"Name_of_the_Person_met", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":null, - "validations":[ - ] - },{ - "question":"Designation of Person met", - "question_key":"Designation_of_Person_met", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":null, - "validations":[ - ] - },{ - "question":"Photograph of 'Photo ID card of the Employee/Manager'", - "question_key":"Photograph", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":null, - "validations":[ - ] - },{ - "question":"Employer's/Manager's Company ID card / Visiting card provided?", - "question_key":"Visiting_card_provided", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary Amount confirmed?", - "question_key":"Salary_Amount_confirmed", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Salary_Amount_confirmed", - "expression":"(String('Salary_Amount_confirmed') == String('No'))", - "value_keys":[ - "Salary_Amount_confirmed" - ], - "questions":[ - { - "question":"why salary amount was not confirmed", - "question_key":"why_salary_amount_was_not_confirmed", - "place_holder":"why salary amount was not confirmed", - "field_type":"text", - "type":"7", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Salary_Amount_confirmed", - "answers":null, - "validations":[ - ] - - }] - }] - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Attendance register seen?", - "question_key":"Attendance_register_seen", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary register seen?", - "question_key":"Salary_register_seen", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Cash Voucher", - "question_key":"Cash_Voucher", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary Certificate", - "question_key":"Salary_Certificate", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary Slip", - "question_key":"Salary_Slip", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Others please specify", - "question_key":"Others_please_specify", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Others_please_specify", - "expression":"(String('Others_please_specify') == String('Yes'))", - "value_keys":[ - "Others_please_specify" - ], - "questions":[ - { - "question":"Specify the Document", - "question_key":"Specify_the_Document", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"Others_please_specify", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Others_please_specify", - "expression":"(String('Others_please_specify') == String('No'))", - "value_keys":[ - "Others_please_specify" - ], - "questions":[ - { - "question":"Why Documents are not available?", - "question_key":"Why_Documents_are_not_available", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Others_please_specify", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - - { - "question":"Mode of getting salary", - "question_key":"Mode_of_getting_salary", - "type":"3", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer":"Bank Transfer", - "answer_id":"Bank_Transfer" - }, - { - "answer":"Paid in Cash", - "answer_id":"Paid_in_Cash" - }, - { - "answer":"Both Bank Transfer & Cash", - "answer_id":"Both_Bank_Transfer_and _Cash" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question": "Salary Details", - "question_key": "Salary_Details", - "field_type":"null", - "sub_title":"Salary Details", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question": "Date of Salary", - "question_key": "Date_of_Salary", - "field_type":"null", - "sub_title":"Date of Salary", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question":"From", - "question_key":"from", - "type":"3", - - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer":"Bank Transfer", - "answer_id":"Bank_Transfer" - }, - { - "answer":"Paid in Cash", - "answer_id":"Paid_in_Cash" - }, - { - "answer":"Both Bank Transfer & Cash", - "answer_id":"Both_Bank_Transfer_and _Cash" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"To", - "question_key":"to", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer":"Bank Transfer", - "answer_id":"Bank_Transfer" - }, - { - "answer":"Paid in Cash", - "answer_id":"Paid_in_Cash" - }, - { - "answer":"Both Bank Transfer & Cash", - "answer_id":"Both_Bank_Transfer_and _Cash" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Has salary been paid regularly in last 3 months", - "question_key":"Has_salary_been_paid_regularly_in_last_3_months", - "type":"3", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - } - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Gross Monthly Salary", - "question_key":"Gross_Monthly_Salary", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "api_properties":null, - "answers":[ - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Net Monthly Salary", - "question_key":"Net_Monthly_Salary", - "type":"1", - "field_width":"65", - "field_type":"numtoword", - "api_properties":null, - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Bounce or incentive*", - "question_key":"Bounce_or_incentive", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "api_properties":null, - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question": "Bonus Frequency", - "question_key": "Bonus_Frequency", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Daily", - "answer_id": "Daily" - }, - { - "answer": "Every 12 days", - "answer_id": "Every_12_days" - }, - { - "answer": " Every 15 days", - "answer_id": " Every_15_days" - }, - { - "answer": " Every 3 months", - "answer_id": " Every_3_months" - }, - { - "answer": " Every 6 month", - "answer_id": " Every_6_month" - }, - { - "answer": " Monthly", - "answer_id": "Monthly" - }, - { - "answer": " Yearly", - "answer_id": "Yearly" - } - ], - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Type of Bonus", - "question_key": "Type_of_Bonus", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Fixed", - "answer_id": "Fixed" - }, - { - "answer": "Variable depending on performance", - "answer_id": "Variable_depending_on_performance" - }, - { - "answer": " Others", - "answer_id": "Others" - } - - ], - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - },{ - "question":"ID card issued by the Company seen?*", - "question_key":"ID_card_issued_by_the_Company_seen", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"ID_card_issued_by_the_Company_seen", - "expression":"(String('ID_card_issued_by_the_Company_seen') == String('No'))", - "value_keys":[ - "ID_card_issued_by_the_Company_seen" - ], - "questions":[ - { - "question_key": "common_remarks", - "question": "Remarks", - "place_holder": "Enter the text", - "type": "7", - "disable":false, - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - }] - }] - }], - "is_repeatable":null, - "validations":[ - - ] - } - - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/5.json deleted file mode 100644 index c7b1124d0..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/5.json +++ /dev/null @@ -1,1141 +0,0 @@ -{ - "section_id":"5", - "section_name":"Other Assets Details", - "onsubmit":[ - ], - "questions":[ { - "question":"Is the Asset Information Available?", - "question_key":"Is_the_Asset_Information_Available", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Asset_Information_Available", - "expression":"(String('Is_the_Asset_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Asset_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question":"Assets Type", - "question_key":"Assets_Type", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ASSETTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('4'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Description", - "question_key":"Description", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_Market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - }] - }] - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('7'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Type", - "question_key":"type", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"INVESTMENTTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('6'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done1", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value1", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('3'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Bank Name", - "question_key":"BankName1", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } ,{ - "question":"Current Market Value", - "question_key":"Current_MarketValue2", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('4'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done2", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value3", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('2'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Bank Name", - "question_key":"Bank_Name2", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value4", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('5'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done3", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value4", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('1'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Specify Type", - "question_key":"Specify_Type", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Bank Name", - "question_key":"Bank_Name3", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value5", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - } ,{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('6'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Premium Paid", - "question_key":"Premium_Paid", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Frequency", - "question_key":"Frequency", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Sum Assured", - "question_key":"Sum_Assured", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Member Covered", - "question_key":"Member_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('2'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Property Type", - "question_key":"Property_Type", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PROPERTIES" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Area Covered", - "question_key":"Area_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"appromximate_market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - },{ - "question":"Unit of Measurement", - "question_key":"Unit_of_Measurement", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties": null, - "answers": [ - { - "answer": "Acres", - "answer_id": "Acres" - }, - { - "answer": "Hectares", - "answer_id": "Hectares" - }, - { - "answer": " Square Feet", - "answer_id": " Square_Feet" - }, - { - "answer": "Square Meters", - "answer_id": "Square_Meters" - }, - { - "answer": "Others", - "answer_id": "Others" - } - - ], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_in_years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_in_months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchase_year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('1'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Description of Assets*", - "question_key":"Description_of_Assets", - "place_holder":"Enter text", - "type":"1", - "field_width":"100", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - },{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_Years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_Months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchases_Year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('3'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Type of Vehicle", - "question_key":"Type_of_Vehicle", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"VEHICLETYPE" - }, - "fields":[ - "vehicle_type_id", - "vehicle_type_name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Description of Vehicle(example - Toyota Altis)", - "question_key":"Description_of_Vehicle", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_marketValue", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - },{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_in_Years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_in_Months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchase_Year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - }, - - { - "question":"Name of the Owner", - "question_key":"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, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Is there a Loan Exiting Against the Assets? ", - "question_key":"Is_there_a_Loan_Exiting_Against_the_Assets", - "type":"3", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - - ], - "is_repeatable":"1", - "group_title":"Assets Information", - "group_key":"Assets Information", - "form_name":"Assets Information" - } - ] - }] - - }], - "is_repeatable":null, - "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":"65", - "validations":[ - ] - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json deleted file mode 100644 index 7f8fd455e..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json +++ /dev/null @@ -1,683 +0,0 @@ -{ - "section_id":"6", - "section_name":"Banking Details", - "onsubmit":[ - ], - "questions":[ { - "question":"Is the Personal Banking Information Available", - "question_key":"Is_the_Personal_Banking_Information_Available", - "type":"3", - "sub_title":"Personal Banking Details", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Personal_Banking_Information_Available", - "expression":"(String('Is_the_Personal_Banking_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Personal_Banking_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question_key":"Account_Holder_Name", - "question":"Account Holder's Name", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Banking_name", - "question":"Banking Name", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Banking_name", - "expression":"(String('Banking_name') == String('1'))", - "value_keys":[ - "Banking_name" - ], - "questions":[ - { - "question":"Salary Credited in this account", - "question_key":"Salary_Credited_in_this_account", - "type":"1", - "field_width":"30", - "api_properties":null, - "parent_question_key":"Banking_name", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - }, { - "answer_id":"NA", - "answer":"NA" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - }, { - "question":"Account Type", - "question_key":"Is_the_Personal_Banking_Information_Available", - "place_holder":"Enter text", - "type":"3", - "field_width":"30", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ACCOUNTTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Personal_Banking_Information_Available", - "expression":"(String('Is_the_Personal_Banking_Information_Available') == String('4'))", - "value_keys":[ - "Is_the_Personal_Banking_Information_Available" - ], - "questions":[ - { - "question":"Limit in case of OD / CC account", - "question_key":"Limit_in_case_of_OD_CC_account", - "type":"1", - "field_type":"numtoword", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Personal_Banking_Information_Available", - "expression":"(String('Is_the_Personal_Banking_Information_Available') == String('3'))", - "value_keys":[ - "Is_the_Personal_Banking_Information_Available" - ], - "questions":[ - { - "question":"Limit in case of OD / CC account", - "question_key":"limit_in_case_of_OD_CC_account", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Personal Banking Information Required", - "value":null - } - ] - }, { - "question_key":null, - "question":null, - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"Number of Years / Months since account was started", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, { - "question_key":"month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, - { - "question":"Is this same AC used for?", - "question_key":"Is_this_same_AC_used_for", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Personal", - "answer":"Personal" - }, - { - "answer_id":"Business", - "answer":"Business" - }, - { - "answer_id":"Both", - "answer":"Both" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - } - ], - "is_repeatable":"1", - "group_title":"Personal Banking Details", - "group_key":"Personal_Banking_Details", - "form_name":"Personal Banking Details" - } - ] - }] - -}], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Is the Business Information Available", - "question_key":"Is_the_Business_Information_Available", - "type":"3", - "sub_title":"Business Details", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Business_Information_Available", - "expression":"(String('Is_the_Business_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Business_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question_key":"Account_Holder_name", - "question":"Account Holder's Name", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"banking_name", - "question":"Banking Name", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"banking_name", - "expression":"(String('banking_name') == String('1'))", - "value_keys":[ - "banking_name" - ], - "questions":[ - { - "question":"Salary Credited in this account", - "question_key":"salary_Credited_in_this_account", - "type":"1", - "field_width":"30", - "api_properties":null, - "parent_question_key":"banking_name", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - }, { - "answer_id":"NA", - "answer":"NA" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - }, { - "question":"Account Type", - "question_key":"Account_Type", - "place_holder":"Enter text", - "type":"3", - "field_width":"30", - "api_properties":null, - "answers":[ - { - "answer_id":"CC", - "answer":"CC" - }, - { - "answer_id":"Current", - "answer":"Current" - }, - { - "answer_id":"OD", - "answer":"OD" - }, - { - "answer_id":"Savings", - "answer":"Savings" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('4'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - - { - "question":"Limit in case of OD / CC account", - "question_key":"Limit_in_case_of_OD_CC_account", - "type": "1", - "field_width": "45", - "field_type":"numtoword", - "api_properties": null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Is the main business account", - "question_key":"Is_the_main_business_account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('3'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - { - "question":"Limit in case of OD / CC account", - "question_key":"limit_in_case_of_OD_CC_account", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Is the main business account", - "question_key":"is_the_main_business_account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('2'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - { - "question":"Is the main business account", - "question_key":"is_the_main_Business_account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('1'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - { - "question":"Is the main business account", - "question_key":"is_the_main_Business_Account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Business Details Required", - "value":null - } - ] - }, { - "question_key":null, - "question":null, - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"Number of Years / Months since account was started", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, { - "question_key":"month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - } - - ], - "is_repeatable":"1", - "group_title":"Business Details", - "group_key":"Business_Details", - "form_name":"Business Details" - } - ] - }] - -}], - "is_repeatable":null, - "validations":[ - - ] -} - - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/7.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/7.json deleted file mode 100644 index 8d9e560b3..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/7.json +++ /dev/null @@ -1,472 +0,0 @@ -{ - "section_id": "7", - "section_name": "Existing Loan Obligations", - "onsubmit": null, - "questions": [ - { - "question":"Do you have any exiting loan", - "question_key":"Do_you_have_any_exiting_loan", - "type":"3", - "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":"Do_you_have_any_exiting_loan", - "expression":"(String('Do_you_have_any_exiting_loan') == String('yes'))", - "value_keys":[ - "Do_you_have_any_exiting_loan" - ], - "questions":[ - { - "question": [ - - - { - "question": "Loan type", - "question_key": "loan_type", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"EXISTINGLOANTYPES" - }, - "fields":[ - "existing_loan_type_id", - "loan_type_name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"loan_type", - "expression":"(String('loan_type') == String('1'))", - "value_keys":[ - "loan_type" - ], - "questions":[ - { - "question":"Specify Loan Type", - "question_key":"Specify_Loan_Type", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan amount", - "question_key": "loan_amount", - "type": "1", - "field_type": "numtoword", - "field_width": "65", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Lender name", - "question_key": "lender_name", - "type": "4", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan taken by", - "question_key": "loan_taken_by", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - - { - "question": "Instalment frequency", - "question_key": "instalment_frequency", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('5'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Daily Instalment Amount", - "question_key":"Daily_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('8'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Instalment Amount", - "question_key":"Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('4'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Fortnightly Instalment Amount", - "question_key":"Fortnightly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('6'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Quartly Instalment Amount", - "question_key":"Quartly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('3'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Halfyearly Instalment Amount", - "question_key":"Halfyearly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('7'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Monthly Instalment Amount", - "question_key":"Monthly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('2'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Annual Instalment Amount", - "question_key":"Annual_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Original tenure in months", - "question_key": "original_tenure_months", - "type": "1", - "field_width": "65", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Current balance tenure in months", - "question_key": "current_tenure_months", - "type": "1", - "field_type": "num", - "field_width": "65", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Elapsed tenure in mths", - "question_key": "elapsed_tenure_months", - "type": "1", - "field_width": "65", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(elapsed_tenure_months))", - "value_keys":[ - "original_tenure_months", "elapsed_tenure_months" - ], - "insert_control":"current_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - } - ], - "is_repeatable": "1", - "group_title": "Loan Details", - "group_key": "Loan_Details" - } ] - }] - - }], - "is_repeatable":null, - "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/DONE/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/8.json deleted file mode 100644 index 5c91cc62e..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/8.json +++ /dev/null @@ -1,630 +0,0 @@ -{ - "section_id": "8", - "section_name": "Family Details", - "onsubmit": [], - "questions": [{ - "question":"Select a person*", - "question_key":"Select_a_person", - "type":"3", - "field_width":"65", - "answers":null, - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, { - "question": "Residence Details of", - "question_key": "Residence_Details_of", - "field_type":"null", - "sub_title":"Residence Details of", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question":"Place*", - "question_key":"Place_list", - "type":"1", - "disable":false, - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - },{ - "question":"Year*", - "question_key":"Year", - "type":"1", - "disable":false, - "field_width":"25", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Month*", - "question_key":"Month", - "type":"1", - "disable":false, - "field_width":"25", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Ownership*", - "question_key":"Ownership", - "type":"3", - "disable":false, - "field_width":"25", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RESIDENCEOWNERSHIP" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Ownership", - "expression":"(String('Ownership') == String('3'))", - "value_keys":[ - "Ownership" - ], - "questions":[ - { - "question":"Monthly Rent Amount", - "question_key":"Monthly_Rent_Amount", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":null, - "validations":[ - ] - - }] - }] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Ownership", - "expression":"(String('Ownership') == String('1'))", - "value_keys":[ - "Ownership" - ], - "questions":[ - { - "question":"Specify Ownership", - "question_key":"Specify_Ownership", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "text", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":null, - "validations":[ - ] - - }] - }] - }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question": [ - { - "question": "Title", - "question_key": "Title", - "type": "3", - "field_width": "20", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TITLES" - }, - "fields":[ - "title_id", - "name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Name*", - "question_key": "name", - "type": "1", - "field_width": "20", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - },{ - "question": "Relationship*", - "question_key": "Relationship", - "type": "3", - "field_width": "20", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - },{ - "question": "Age*", - "question_key": "Age", - "type": "1", - "field_width": "20", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - },{ - "question": "Earning Status*", - "question_key": "Earning_Status", - "type": "3", - "field_width": "25", - "api_properties": null, - "answers":[ - { - "answer_id":"Earning", - "answer":"Earning" - }, - { - "answer_id":"Non_Earning", - "answer":"Non Earning" - } - ], - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Earning_Status", - "expression":"(String('Earning_Status') == String('Earning'))", - "value_keys": [ - "Earning_Status" - ], - "questions": [ - { - "question": "Segment*", - "question_key": "Segment", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"EARNINGMEMBERSSTATUS" - }, - "fields":[ - "earning_member_status_id", - "earning_member_status" - ] - }, - "answers": null, - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Segment", - "expression":"(String('Segment') == String('1'))", - "value_keys": [ - "Segment" - ], - "questions": [ - { - "question": "Specify Others", - "question_key": "SpecifyOthers", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Segment", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - - ] - }, { - "question": "Income Per Month", - "question_key": "Income_Per_Month", - "type": "1", - "field_width": "45", - "field_type": "numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, { - "question": "Name of the Employer/Business", - "question_key": "Name_of_the_Employer/Business", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, { - "question": "No of Years in Employment/Business", - "question_key": "No_of_Years_in_Employment/Business", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - - ], - "is_repeatable": null, - "validations": [ - - ] - }, { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Earning_Status", - "expression":"(String('Earning_Status') == String('Non_Earning'))", - "value_keys": [ - "Earning_Status" - ], - "questions": [ - { - "question": "Occupation*", - "question_key": "Occupation", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"OCCUPATIONMEMBERS" - }, - "fields":[ - "occupation_non_earning_member_id", - "name" - ] - }, - - "answers": null, - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Occupation", - "expression":"(String('Occupation') == String('1'))", - "value_keys": [ - "Occupation" - ], - "questions": [ - { - "question": "Specify Others", - "question_key": "SpecifyOthers", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Occupation", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - },{ - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Occupation", - "expression":"(String('Occupation') == String('3'))", - "value_keys": [ - "Occupation" - ], - "questions": [ - { - "question": "Retired Form", - "question_key": "Retired_Form", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Occupation", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - },{ - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Occupation", - "expression":"(String('Occupation') == String('2'))", - "value_keys": [ - "Occupation" - ], - "questions": [ - { - "question": "Specify School/College Name", - "question_key": "Specify_School/College_Name", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Occupation", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - - ] - } ] - } - - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": null, - "validations": [ - ] - } - - ], - "is_repeatable": "1", - "group_title": "Family Details", - "group_key": "Family_Details" - } - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/9.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/9.json deleted file mode 100644 index 11a21e8aa..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/9.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "section_id": "9", - "section_name": "Other Income Details", - "onsubmit": [], - "questions": [ - { - "question":"Other Income of Loan Application", - "question_key":"Other_Income_of_Loan_Application", - "type":"3", - "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":"Other_Income_of_Loan_Application", - "expression":"(String('Other_Income_of_Loan_Application') == String('yes'))", - "value_keys":[ - "Other_Income_of_Loan_Application" - ], - "questions":[ - { - "question": [ - { - "question": "Source", - "question_key": "Source", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers":[{ - - "answer":"Agricultural Income", - "answer_id":"Agricultural_Income" - }, - { - "answer":"Dividend Income", - "answer_id":"Dividend_Income" - }, { - "answer":"Interest Income", - "answer_id":"Interest_Income" - }, { - "answer":"Rental Income", - "answer_id":"Rental_Income" - }, - { - "answer":"Others(Please Specify)", - "answer_id":"Others(Please_Specify)" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('Rental_Income'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Address", - "question_key":"Address", - "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":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('Others(Please_Specify)'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Specify Source", - "question_key":"Specify_Source", - "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":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Income earned by", - "question_key": "Income_earned_by", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Amount", - "question_key": "amount", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Frequency", - "question_key": "account_type", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers":null, - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": "1", - "group_title": "Income Details", - "group_key": "Income_Details" - }] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question": [ - { - "question": "Source", - "question_key": "Source", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"SOURCEOFOTHERINCOME" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('5'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Address", - "question_key":"Address", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('1'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Specify Source", - "question_key":"Specify_Source", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Income earned by", - "question_key": "Income_earned_by", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Amount", - "question_key": "amount", - "type": "1", - "field_width": "45", - "field_type":"numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Frequency", - "question_key": "account_type", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": "1", - "group_title": "Income Details", - "group_key": "Income_Details" - } - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json deleted file mode 100644 index 43dab818e..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json +++ /dev/null @@ -1,2941 +0,0 @@ -{ - "section_id":"13", - "section_name":"About Business", - "onsubmit":null, - "questions":[ - - { - "question": [ - { - "question":"Name", - "question_key":"name", - "type":"4", - "field_width":"45", - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Share of Profit / Shareholding (%)", - "question_key":"Share of Profit / Shareholding (%)", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Started Business", - "question_key":"Started Business", - "type":"3", - "field_width":"45", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question_key":"No of Years in Current Business", - "question":"No of Years in Current Business", - "place_holder":"Enter the text", - "type":null, - "sub_title":"No of Years in Current Business", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"Year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Total Work Experience (in years)", - "question":"Total Work Experience (in years)", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Director Details", - "group_key": "Director Details" - }, - { - "question": [ - { - "question":"Title", - "question_key":"Title", - "type":"3", - "field_width":"25", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TITLES" - }, - "fields":[ - "title_id", - "name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Name", - "question_key":"Name", - "type":"1", - "field_width":"25", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Relation", - "question_key":"Relation", - "type":"3", - "field_width":"25", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Relationship To", - "question_key":"Relationship to", - "type":"4", - "field_width":"25", - "answers":null, - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Relationship with Company", - "question_key":"Relationship_with_Company", - "type":"3", - "field_width":"25", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMPANYRELATIONSHIPS" - }, - "fields":[ - "company_relationship_id", - "name" - ] - }, - - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } , { - "question":"Started Busniess", - "question_key":"Started_Busniess", - "type":"3", - "field_width":"25", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ], - "is_repeatable": "1", - "group_title": "Add Other Family Members Involved In Business", - "group_key": "Add Other Family Members Involved In Business" - }, - - - - { - "question_key":"Type_of_Business_Activity", - "question":"Type of Business Activity", - "place_holder":"Enter the text", - "type":"4", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TYPEOFACTIVITY" - }, - "fields":[ - "type_of_activity_id", - "name" - ] - }, - "answers": null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Type_of_Business_Activity", - "expression":"(String('Type_of_Business_Activity') == String('2'))", - "value_keys":[ - "Type_of_Business_Activity" - ], - "questions":[ - { - "question": [ - { - "question":"Main Product*", - "question_key":"Main Product", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } , { - "question":"Area of Sales*", - "question_key":"Area_of_Sales", - "type":"3", - "field_width":"45", - "answers":[{ - "answer":"Within India", - "answer_id":"within_India" - }, - { - "answer":"Export", - "answer_id":"Export" - }, { - "answer":"Both", - "answer_id":"Both" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('within_India'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { "question_key": "Is_Pan_india", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('yes'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - { "question_key": "States_Where_Max_Sales_Done_for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"100", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Pan_india", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('no'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - },{ - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - } - - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - } - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Export'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Both'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "question_key":"Within India", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Within India", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key": "is_Pan_India", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('yes'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"65", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('no'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, - { - "questions_level_two":[ - { - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"city", - "group_title":"city" - }, - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - }, - { - "question_key":"Export", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Export", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } ,{ - "question_key":"Description of manufacturing process", - "question":"Description of manufacturing process", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Manufacturing", - "group_key": "Manufacturing" - } - ] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Type_of_Business_Activity", - "expression":"(String('Type_of_Business_Activity') == String('5'))", - "value_keys":[ - "Type_of_Business_Activity" - ], - "questions":[ - { - "question": [ - { - "question":"Main Product*", - "question_key":"Main Product", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } , { - "question":"Area of Sales*", - "question_key":"Area_of_Sales", - "type":"3", - "field_width":"45", - "answers":[{ - "answer":"Within India", - "answer_id":"within_India" - }, - { - "answer":"Export", - "answer_id":"Export" - }, { - "answer":"Both", - "answer_id":"Both" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('within_India'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { "question_key": "Is_Pan_india", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('yes'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - { "question_key": "States_Where_Max_Sales_Done_for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"100", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Pan_india", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('no'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - },{ - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - } - - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - } - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Export'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Both'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "question_key":"Within India", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Within India", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key": "is_Pan_India", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('yes'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"65", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('no'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, - { - "questions_level_two":[ - { - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"city", - "group_title":"city" - }, - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - }, - { - "question_key":"Export", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Export", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } ,{ - "question_key":"Description of manufacturing process", - "question":"Description of manufacturing process", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Service Provider ", - "group_key": "Service Provider" - } - ] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Type_of_Business_Activity", - "expression":"(String('Type_of_Business_Activity') == String('3'))", - "value_keys":[ - "Type_of_Business_Activity" - ], - "questions":[ - { - "question": [ - { - "question":"Main Product*", - "question_key":"Main Product", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } , { - "question":"Area of Sales*", - "question_key":"Area_of_Sales", - "type":"3", - "field_width":"45", - "answers":[{ - "answer":"Within India", - "answer_id":"within_India" - }, - { - "answer":"Export", - "answer_id":"Export" - }, { - "answer":"Both", - "answer_id":"Both" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('within_India'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { "question_key": "Is_Pan_india", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('yes'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - { "question_key": "States_Where_Max_Sales_Done_for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"100", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Pan_india", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('no'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, - { - "questions_level_two":[ - { - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"city", - "group_title":"city" - }, - - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - } - - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - } - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Export'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Both'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "question_key":"Within India", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Within India", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key": "is_Pan_India", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('yes'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"65", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('no'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, - { - "questions_level_two":[ - { - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"city", - "group_title":"city" - }, - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - }, - { - "question_key":"Export", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Export", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } ,{ - "question_key":"Description of manufacturing process", - "question":"Description of manufacturing process", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Retail trading ", - "group_key": "Retail trading" - } - ] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Type_of_Business_Activity", - "expression":"(String('Type_of_Business_Activity') == String('4'))", - "value_keys":[ - "Type_of_Business_Activity" - ], - "questions":[ - { - "question": [ - { - "question":"Main Product*", - "question_key":"Main Product", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } , { - "question":"Area of Sales*", - "question_key":"Area_of_Sales", - "type":"3", - "field_width":"45", - "answers":[{ - "answer":"Within India", - "answer_id":"within_India" - }, - { - "answer":"Export", - "answer_id":"Export" - }, { - "answer":"Both", - "answer_id":"Both" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('within_India'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { "question_key": "Is_Pan_india", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('yes'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - { "question_key": "States_Where_Max_Sales_Done_for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"100", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Pan_india", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Pan_india", - "expression":"(String('Is_Pan_india') == String('no'))", - "value_keys":[ - "Is_Pan_india" - ], - "questions":[ - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, - { - "questions_level_two":[ - { - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"city", - "group_title":"city" - }, - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_pan_india", - "answers":null, - "validations":[ - - ] - } - - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - } - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Export'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Area_of_Sales", - "expression":"(String('Area_of_Sales') == String('Both'))", - "value_keys":[ - "Area_of_Sales" - ], - "questions":[ - { - "question_key":"Within India", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Within India", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key": "is_Pan_India", - "question": "Is Pan India", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('yes'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"65", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } ] }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_Pan_India", - "expression":"(String('is_Pan_India') == String('no'))", - "value_keys":[ - "is_Pan_India" - ], - "questions":[ - { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - },{ - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, { - "questions_level_two":[ - { - "question":"State", - "question_key":"State", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"State", - "group_title":"State" - }, - { - "questions_level_two":[ - { - "question":"city", - "question_key":"city", - "type":"3", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"city", - "group_title":"city" - }, - - { "question_key": "States Where Max Sales Done for ", - "question": "States Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - }, - { "question_key": "Cities Where Max Sales Done for ", - "question": "Cities Where Max Sales Done for ", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"is_Pan_India", - "answers":null, - "validations":[ - - ] - } - - ] } - ] }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - }, - { - "question_key":"Export", - "question":"Within India", - "place_holder":"Enter the text", - "type":null, - "sub_title":"Export", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "questions_level_two":[ - { "question_key": "Countries_Where_The_Export_Is_Being_Done_for", - "question": "Countries Where The Export Is Being Done for ", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - }, { - "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", - "question": "Out of Total Export Sales what % of Sales is done in", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfStatesCities", - "api_method":"POST", - - "fields":[ - "state_id", - "state_name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Area_of_Sales", - "answers":null, - "validations":[ - - ] - } - ], - "is_repeatable":"2", - "group_key":"Countries", - "group_title":"Countries" - } - - ] } ] }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } ,{ - "question_key":"Description of manufacturing process", - "question":"Description of manufacturing process", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Wholesale Trade", - "group_key": "Wholesale Trade" - } - ] - }] - - - - } ], - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"Does the Applicant Use Mobile Wallets / UPI Apps", - "question":"Does the Applicant Use Mobile Wallets / UPI Apps", - "place_holder":"Enter the text", - "type":"3", - "sub_title":"Digital Payments", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, { - "question_key":"Does the Applicant Use POS Machines in His Business / Profession", - "question":"Does the Applicant Use POS Machines in His Business / Profession", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Is The Business Seasonal", - "question":"Is The Business Seasonal", - "place_holder":"Enter the text", - "type":"3", - "sub_title":"Digital Payments", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No Major Changes In Sales", - "answer_id":"No Major Changes In Sales" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, - { - "question":"Employees As Per Applicant", - "question_key":"Employees As Per Applicant", - "place_holder":"", - "type":null, - "sub_title":"Employees As Per Applicant", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Permanent", - "question_key":"Permanent", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Temporary", - "question_key":"Temporary", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Total", - "question_key":"Total", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Approximate total monthly salary paid to employees", - "question_key":"Approximate total monthly salary paid to employees", - "place_holder":"", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, - { - "question":"No of Employees Sighted By PD Officer During His Visit", - "question_key":"No of Employees Sighted By PD Officer During His Visit", - "place_holder":"", - "type":null, - "sub_title":"No of Employees Sighted By PD Officer During His Visit", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Total", - "question_key":"total", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Was the Company name board sighted ?", - "question_key":"Was the Company name board sighted ?", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - ] - } , - { - "question":"Documents Sighted", - "question_key":"Documents Sighted", - "place_holder":"", - "type":null, - "sub_title":"Documents Sighted", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Shop and Est Act Cert", - "question_key":"Shop and Est Act Cert", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"GST Regn Cert", - "question_key":"GST Regn Cert", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"Cert of Practice", - "question_key":"Cert of Practice", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"PF Regn", - "question_key":"PF Regn", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"ESIC Regn", - "question_key":"ESIC Regn", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"Do You Want to Add Other Documents?", - "question_key":"Do You Want to Add Other Documents?", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - } ], - "validations":[ - ] - } - ] -} 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 deleted file mode 100644 index 007d8e200..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/10.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "section_id": "10", - "section_name": "Neighbourhood / Reference Check", - "onsubmit": [ - - ], - "questions": [ - { - "question":[ - { - "question_key": "Neighbour_Name", - "question": "Neighbour Name", - "place_holder": "Enter the text", - "type": "1", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - }, { - "question_key": "Do_you_known_about_the_applicants_or_their_business", - "question": "Do you known about the applicants or their business?", - "place_holder": "Enter the text", - "type": "3", - "api_properties": null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Do_you_known_about_the_applicants_or_their_business", - "expression":"(String('Do_you_known_about_the_applicants_or_their_business') == String('Yes'))", - "value_keys":[ - "Do_you_known_about_the_applicants_or_their_business" - ], - "questions":[ - { - "question_key": "As_per_you_how_long_has_this_business_been_in_operation", - "question": "As per you how long has this business been in operation?", - "place_holder": "Enter the text", - "type": "5", - "api_properties": null, - "answers":[ - { - "answer_id":"Do_not_know", - "answer":"Do not know" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"As_per_you_how_long_has_this_business_been_in_operation", - "expression":"(String('As_per_you_how_long_has_this_business_been_in_operation') != String('Do_not_know'))", - "value_keys":[ - "As_per_you_how_long_has_this_business_been_in_operation" - ], - "questions":[ - { "question":"Year", - "question_key":"Year", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"As_per_you_how_long_has_this_business_been_in_operation", - "answers":null, - "validations":[ - - ] - }, - { "question":"Month", - "question_key":"YeMonthar", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"As_per_you_how_long_has_this_business_been_in_operation", - "answers":null, - "validations":[ - - ] - } ] } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "100", - "validations": [] - }, - { - "question_key": "Who_is_the_owner_of_the_organisation", - "question": "Who is the owner of the organisation?", - "place_holder": "Enter the text", - "type": "5", - "api_properties": null, - "answers":[ - { - "answer_id":"Do_not_know", - "answer":"Do not know" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Who_is_the_owner_of_the_organisation", - "expression":"(String('Who_is_the_owner_of_the_organisation') != String('Do_not_know'))", - "value_keys":[ - "Who_is_the_owner_of_the_organisation" - ], - "questions":[ - { "question_key": "Who_is_the_owner_of_the_organisations", - "question": "Who is the owner of the organisation?", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Who_is_the_owner_of_the_organisation", - "answers":null, - "validations":[ - - ] - } - ] } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "100", - "validations": [] - } - ] - } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - } - ], - "is_repeatable":"1", - "hidden_button":true, - "group_title":"Neighbourhood", - "group_key":"Neighbourhood" - }, - - { - "question_key": "Status of the check as per PD officer?", - "question": "Status of the check as per PD officer?", - "place_holder": "Enter the text", - "type": "3", - "api_properties": null, - "answers":[ - { - "answer_id":"Positive", - "answer":"Positive" - }, - { - "answer_id":"Negative", - "answer":"Negative" - }, { - "answer_id":"Could_not_verify", - "answer":"Could not verify" - } - ], - "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/11.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/11.json deleted file mode 100644 index 69fa506dd..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/11.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "section_id":"11", - "section_name":"Credit Manager Queries", - "onsubmit":null, - "questions":[ - { - "question":"Is your business adversely impacted by coronavirus outbreak ?", - "question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "type":"2", - "sub_title":"Covid 19 Questions", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "expression":"(String('Is_your_business_adversely_impacted_by_coronavirus_outbreak') == String('No'))", - "value_keys":[ - "Is_your_business_adversely_impacted_by_coronavirus_outbreak" - ], - "questions":[ - { "question":"Enter Your Remarks", - "question_key":"Enter_Your_Remarks", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "answers":null, - "validations":[ - - ] - } ] } ] }, - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "expression":"(String('Is_your_business_adversely_impacted_by_coronavirus_outbreak') == String('Yes'))", - "value_keys":[ - "Is_your_business_adversely_impacted_by_coronavirus_outbreak" - ], - "questions":[ - { "question":"Enter Your Remarks", - "question_key":"enter_Your_Remarks", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Did you avail the loan moratorium facility on your existing loans which is extended by your bank or financial institution?", - "question_key":"your_bank_or_financial_institution", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - ], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Are you planning to avail/ or already availed any loan or any other term facility for your business or personal use?", - "question_key":"your_business_or_personal_use", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"your_business_or_personal_use", - "expression":"(String('your_business_or_personal_use') == String('Yes'))", - "value_keys":[ - "your_business_or_personal_use" - ], - "questions":[ - { "question":"How much is your sales/revenue from April till date?", - "question_key":"sales/revenue_April_till_date", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - }, { - "question":"Please specify amount,lender etc", - "question_key":"Please_specify_amount_lender_etc", - "type":"7", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"your_business_or_personal_use", - "expression":"(String('your_business_or_personal_use') == String('No'))", - "value_keys":[ - "your_business_or_personal_use" - ], - "questions":[ - { "question":"How much is your sales/revenue from April till date?", - "question_key":"How_much_is_your_sales/revenue_from_April_till_date", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Is turnover mentioned above (sales/revenue from April till date) validated?", - "question_key":"sales/revenue_from_April_till_date_validated", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"sales/revenue_from_April_till_date_validated", - "expression":"(String('sales/revenue_from_April_till_date_validated') == String('Yes'))", - "value_keys":[ - "sales/revenue_from_April_till_date_validated" - ], - "questions":[ - { "question":"Choose any ", - "question_key":"Choose any", - "type":"3", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":[ - { - "answer_id":"Bills", - "answer":"Bills" - }, - { - "answer_id":"Gst_returns", - "answer":"Gst returns" - }, - { - "answer_id":"records_shown", - "answer":"records shown" - } - ], - "validations":[ - - ] - } - - - - ] - } - ] - } ], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - } - - - - ] - } - \ No newline at end of file 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 deleted file mode 100644 index 91a7eebc3..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/12.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "section_id":"12", - "section_name":"Final Remarks Details", - "onsubmit":null, - "questions":[ - { - "question":"Customer Behaviour", - "question_key":"Customer_Behaviour", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"CUSTOMERBEHAVIOUR" - }, - "fields":[ - "customer_behaviour_id", - "description" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - { - "question":"Is the location of the business / profession suited to the nature of business / service provided?", - "question_key":"location_of_the_business", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - "answer":"Well Suited", - "answer_id":"Well Suited" - }, - { - "answer":"Fairly Suited", - "answer_id":"Fairly Suited" - },{ - "answer":"Not Suited", - "answer_id":"Not Suited" - }], - "onchange_properties":null, - "is_repeatable":null, - "sub_title":"Location", - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question":"Personal feedback or market intelligence on the case (if any)", - "question_key":"Personal_feedback_or_market_intelligence_on_the_case", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"PD_Officers_Recommendation", - "question":"PD Officers Recommendation", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDOFFICERRECOMMENDATIONS" - }, - "fields":[ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('2'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Positive", - "question_key":"Reasons_for_marking_PD_status_as_Positive", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Positive", - "group_title":"Reasons for marking PD status as Positive" - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('3'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Negative", - "question_key":"Reasons_for_marking_PD_status_as_Negative", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Negative", - "group_title":"Reasons for marking PD status as Negative" - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('1'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":"Specify PD Officers Recommendation", - "question_key":"Specify_PD_Officers_Recommendation", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('4'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Refer to Credit", - "question_key":"Reasons_for_marking_PD_status_as_Refer_to_Credit", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Refer_to_Credit", - "group_title":"Reasons for marking PD status as Refer to Credit" - }] - }] - - - -}], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, { - "question_key":"Any_additional_visit_(Godown/multiple_rental_properties)", - "question":"Any additional visit (Godown /multiple rental properties)", - "place_holder":"Enter the text", - "type":"12", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question":"Mode of Transport Used to Visit the PD address", - "question_key":"Mode_of_Transport_Used_to_Visit_the_PD_address", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Two_Wheeler", - "answer":"Two Wheeler" - },{ - "answer_id":"Four_Wheeler", - "answer":" Four Wheeler" - },{ - "answer_id":"Public_Transport", - "answer":"Public Transport" - }, - { - "answer_id":"Others", - "answer":"Others" - } - - ], - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Mode_of_Transport_Used_to_Visit_the_PD_address", - "expression":"(String('Mode_of_Transport_Used_to_Visit_the_PD_address') == String('Others'))", - "value_keys":[ - "Mode_of_Transport_Used_to_Visit_the_PD_address" - ], - "questions":[ - { - "question":"Specify the Mode of Transport Used to Visit the PD address", - "question_key":"Specify_the_Mode_of_Transport_Used_to_Visit_the_PD_address", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - }] - - - - }], - "is_repeatable":null, - "validations":[ - - ] - } - - - - ] - } - \ No newline at end of file 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 deleted file mode 100644 index 4fbfbe025..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/13.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/LFMP/14.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/14.json deleted file mode 100644 index 6f19b9e15..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/14.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "section_id":"14", - "section_name":"Future Plans & Business Environments", - "onsubmit":null, - "questions":[ - { - "question":"USP of the business- How is applicant's business different from others in the same line of business", - "question_key":"usp_of_business", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Future plans for business expansion", - "question_key":"future_business_expansion", - "type":"1", - "field_type":"string", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Key competitors", - "question_key":"key_competitors", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Sucession plan- who will look after the business after applicant retire/are unable to run business due to any reason", - "question_key":"sucession_plan", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Brief of other group concerns/Business run by the applicants", - "question_key":"other_group_business_applicants", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question_key":"common_remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/15.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/15.json deleted file mode 100644 index 305e590b0..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/15.json +++ /dev/null @@ -1,506 +0,0 @@ -{ - "section_id": "15", - "section_name": "Existing Loan Obligations", - "onsubmit": null, - "questions": [ - { - "question":"Do you have any exiting loan", - "question_key":"Do_you_have_any_exiting_loan", - "type":"3", - "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":"Do_you_have_any_exiting_loan", - "expression":"(String('Do_you_have_any_exiting_loan') == String('yes'))", - "value_keys":[ - "Do_you_have_any_exiting_loan" - ], - "questions":[ - { - "question": [ - - - { - "question": "Loan type", - "question_key": "loan_type", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers":[ - - - { - "answer":" Business Loan", - "answer_id":"Business_Loan" - }, - { - "answer":"Consumer Loan", - "answer_id":"Consumer_Loan" - }, - { - "answer":" Education Loan", - "answer_id":" Education_Loan" - }, { - "answer":"Gold Loan", - "answer_id":" Gold_Loan" - }, { - "answer":"Home Loan", - "answer_id":"Home_Loan" - }, { - "answer":"Loan Against Property", - "answer_id":"Loan_Against_Property" - }, { - "answer":"Loan Against Shares", - "answer_id":"Loan_Against_Shares" - }, { - "answer":" Personal Loan", - "answer_id":" Personal_Loan" - }, { - "answer":"Vehicle Loan", - "answer_id":"Vehicle_Loan" - }, { - "answer":" Others (Please Specify)", - "answer_id":"Others_(Please Specify)" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"loan_type", - "expression":"(String('loan_type') == String('Others_(Please Specify)'))", - "value_keys":[ - "loan_type" - ], - "questions":[ - { - "question":"Specify Loan Type", - "question_key":"Specify_Loan_Type", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan amount", - "question_key": "loan_amount", - "type": "1", - "field_type": "numtoword", - "field_width": "65", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Lender name", - "question_key": "lender_name", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan taken by", - "question_key": "loan_taken_by", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - - { - "question": "Instalment frequency", - "question_key": "instalment_frequency", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer_id": "Daily", - "answer": "Daily" - }, - { - "answer_id": "Every_12_days", - "answer": "Every 12 days" - }, - { - "answer_id": "Every_15_days", - "answer": "Every 15 days" - }, - { - "answer_id": "Monthly", - "answer": "Monthly" - }, - { - "answer_id": "Every_3_months", - "answer": "Every 3 months" - }, - { - "answer_id": "Every_6_months", - "answer": "Every 6 months" - }, - { - "answer_id": "Yearly", - "answer": "Yearly" - } - ], - - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Daily'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Daily Instalment Amount", - "question_key":"Daily_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Every_12_days'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Instalment Amount", - "question_key":"Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Every_15_days'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Fortnightly Instalment Amount", - "question_key":"Fortnightly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Every_3_months'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Quartly Instalment Amount", - "question_key":"Quartly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Every_6_months'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Halfyearly Instalment Amount", - "question_key":"Halfyearly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Monthly'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Monthly Instalment Amount", - "question_key":"Monthly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('Yearly'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Annual Instalment Amount", - "question_key":"Annual_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Original tenure in months", - "question_key": "original_tenure_months", - "type": "1", - "field_width": "65", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Current balance tenure in months", - "question_key": "current_tenure_months", - "type": "1", - "field_type": "num", - "field_width": "65", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Elapsed tenure in mths", - "question_key": "elapsed_tenure_months", - "type": "1", - "field_width": "65", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(elapsed_tenure_months))", - "value_keys":[ - "original_tenure_months", "elapsed_tenure_months" - ], - "insert_control":"current_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - } - ], - "is_repeatable": "1", - "group_title": "Loan Details", - "group_key": "Loan_Details" - } ] - }] - - }], - "is_repeatable":null, - "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": "60", - "validations": [] - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/16.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/16.json deleted file mode 100644 index 00388db3c..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/16.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "section_id":"16", - "section_name":"Family Members Involved in Business", - "onsubmit":null, - "questions":[ - { - "question":"Is any other family member involved in the business", - "question_key":"is_family_details_available", - "type":"2", - "field_width":"45", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_family_details_available", - "expression":"(String('is_family_details_available') == String('Yes'))", - "value_keys":[ - "is_family_details_available" - ], - "questions":[ - { - "question":[ - { - "question":"Name", - "question_key":"member_name", - "place_holder":"Enter text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Name Required", - "value":null - }, - { - "name":"pattern", - "isactive":"1", - "validator":"[A-Za-z ]*", - "message":"alphabets only ", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[{ - "insert_index":"relationship", - "expression":"(String('relationship').toLowerCase() == String('1'))", - "value_keys":[ - "relationship" - ], - "questions":[ - { - "question": "Specify Facility details", - "question_key": "relationship_other", - "type": "1", - "field_width": "45", - "field_type": "string", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Relation to Individual Stakeholders", - "question_key":"stakeholder_relation", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Relation to Company / Firm", - "question_key":"company_relation", - "place_holder":"Enter text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMPANYRELATIONSHIPS" - }, - "fields":[ - "company_relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Started Business (Yes / No)", - "question_key":"started_biz", - "place_holder":"Enter text", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - - ], - "is_repeatable":"1", - "group_title":"Family Members Involved in Business", - "group_key":"family_details" - } - ]}] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"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/SMC_CREDIT_TEMPLATES/LFMP/17.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/17.json deleted file mode 100644 index 0f4bf4230..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/17.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "section_id":"17", - "section_name":"Neighbourhood Details", - "onsubmit":[], - "questions":[ - { - "question":[ - { - "question":"Neighbour name", - "question_key":"neighbourhood_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":"Do you know about the applicant or their business?", - "question_key":"do_know", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"As per you how long has this business been in operation", - "question_key":"know_business_operation", - "place_holder":"Enter the text", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer":"Know", - "answer_id":"yes" - }, - { - "answer":"Do not know", - "answer_id":"no" - } - ], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ], - "onchange_properties": [ { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"know_business_operation", - "expression":"(String('know_business_operation') === String('yes'))", - "value_keys":[ - "know_business_operation" - ], - "questions":[ - { - "question":"Years", - "question_key":"how_long_do_know_in_year", - "type":"1", - "field_width":"100", - "field_type":"num", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"know_business_operation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } , - { - "question":"Months", - "question_key":"how_long_do_know_in_month", - "type":"1", - "field_type":"num", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"know_business_operation", - "answers":null, - "validations":[ - ] - } - - ] } ] }] - }, - { - "question":"Who is the owner of organisation?", - "question_key":"know_organisation_owner", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer":"Know", - "answer_id":"yes" - }, - { - "answer":"Do not know", - "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":"know_organisation_owner", - "expression":"(String('know_organisation_owner') === String('yes'))", - "value_keys":[ - "know_organisation_owner" - ], - "questions":[ - { - "question":"Who is the owner of the organisation", - "question_key":"organisation_owner", - "type":"4", - "field_width":"100", - "field_type":"num", - "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":"know_organisation_owner", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - - ] } ] }] - } - - ], - "is_repeatable":"1", - "group_title":"Neighbourhood Details", - "group_key":"neighbourhood_list" - }, - { - "question":"Status of the neighbour check as per Credit Manager", - "question_key":"neighbourhood_status", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer":"Select", - "answer_id":"" - }, - { - "answer":"Positive", - "answer_id":"Positive" - }, - { - "answer":"Negative", - "answer_id":"Negative" - }, - { - "answer":"Could Not Verify", - "answer_id":"Could Not Verify" - } - ], - "onchange_properties":[ - { - "purpose":"validations", - "validations":[{ - "value_keys":["neighbourhood_status"], - "value":"(String('neighbourhood_status').toLowerCase() != String('positive'))", - "validation_to":"neighbourhood_remarks", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Remarks", - "question_key":"neighbourhood_remarks", - "type":"7", - "placeholder":"Enter the remarks", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/18.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/18.json deleted file mode 100644 index 481c1aa36..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/18.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "section_id":"18", - "section_name":"Credit manager specific queries", - "onsubmit":[], - "questions":[ - { - "question":[ - { - "question":"Question", - "question_key":"question", - "place_holder":"Enter text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - ] - }, - { - "question":"Answer", - "question_key":"answer", - "place_holder":"Enter the answer here", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - ] - } - ], - "is_repeatable":"1", - "group_title":"Query", - "group_key":"cm_queries" - }, - { - "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/2.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/2.json deleted file mode 100644 index 5820e7029..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/2.json +++ /dev/null @@ -1,1678 +0,0 @@ -{ - "section_id":"2", - "section_name":"Business Assets", - "onsubmit":[ - ], - "questions":[ { - "question":"Is this the business address ?*", - "question_key":"Is_this_the_business_address", - "type":"3", - "sub_title":"Address Details : ", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_this_the_business_address", - "expression":"(String('Is_this_the_business_address') == String('Yes'))", - "value_keys":[ - "Is_this_the_business_address" - ], - "questions":[ - { - "question":"OwnerShip Type", - "question_key":"OwnerShip_Type", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Owned", - "answer":"Owned" - }, - { - "answer_id":"Rented", - "answer":"Rented" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"OwnerShip_Type", - "expression":"(String('OwnerShip_Type') == String('Rented'))", - "value_keys":[ - "OwnerShip_Type" - ], - "questions":[ - { - "question_key":"Monthly_Residence_Rent_Amount", - "question":"Monthly Residence Rent Amount", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - - ] - }] - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - { - "question_key":"Remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"Was_any_business_activity_seen_at_the_Residence_during_PD_visit", - "question":"Was any business activity seen at the Residence during PD visit?", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[], - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - },{ - "question_key":"year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, { - "question_key":"How long has business been operated from this premise?", - "question":"How long has business been operated from this premise?", - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"How long has business been operated from this premise?", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - - ] - - } - ] - - -}], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Is the Asset Information Available?", - "question_key":"Is_the_Asset_Information_Available", - "type":"3", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Asset_Information_Available", - "expression":"(String('Is_the_Asset_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Asset_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question":"Assets Type", - "question_key":"Assets_Type", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ASSETTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('4'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Description", - "question_key":"Description", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - }, - { - "question":"OwnerShip Type", - "question_key":"OwnerShip_type", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Owned", - "answer":"Owned" - }, - { - "answer_id":"Rented", - "answer":"Rented" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"OwnerShip_Type", - "expression":"(String('OwnerShip_Type') == String('Rented'))", - "value_keys":[ - "OwnerShip_Type" - ], - "questions":[ - { - "question_key":"Monthly_Residence_Rent_Amount", - "question":"Monthly Residence Rent Amount", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - - ] - }] - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_Market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - },{ - "question":"Assets Owned by", - "question_key":"Assets_Owned_by", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - },{ - "question":"Age of Assets in Years", - "question_key":"age_of_Assets_in_years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"age_of_Assets_in_months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"purchase_year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - }, { - "question":"Is there a Loan Exiting Against the Assets? ", - "question_key":"Is_there_a_Loan_Exiting_Against_the_Assets", - "type":"3", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - ] - }] - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('7'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Type", - "question_key":"type", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"INVESTMENTTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('6'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done1", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value1", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('3'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Bank Name", - "question_key":"BankName1", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } ,{ - "question":"Current Market Value", - "question_key":"Current_MarketValue2", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('4'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done2", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value3", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('2'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Bank Name", - "question_key":"Bank_Name2", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value4", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('5'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done3", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value4", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('1'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Specify Type", - "question_key":"Specify_Type", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Bank Name", - "question_key":"Bank_Name3", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value5", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - } ,{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('6'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Premium Paid", - "question_key":"Premium_Paid", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Frequency", - "question_key":"Frequency", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Sum Assured", - "question_key":"Sum_Assured", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Member Covered", - "question_key":"Member_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('2'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Is there a Loan Exiting Against the Assets? ", - "question_key":"Is_there_a_Loan_Exiting_Against_the_Assets", - "type":"3", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - }, - { - "question":"Assets Owned by", - "question_key":"Assets_Owned_by", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - }, - { - "question":"OwnerShip Type", - "question_key":"OwnerShip_type", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Owned", - "answer":"Owned" - }, - { - "answer_id":"Rented", - "answer":"Rented" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"OwnerShip_Type", - "expression":"(String('OwnerShip_Type') == String('Rented'))", - "value_keys":[ - "OwnerShip_Type" - ], - "questions":[ - { - "question_key":"Monthly_Residence_Rent_Amount", - "question":"Monthly Residence Rent Amount", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - - ] - }] - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - - { - "question":"Property Type", - "question_key":"Property_Type", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PROPERTIES" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Area Covered", - "question_key":"Area_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"appromximate_market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - } ,{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_in_years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_in_months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchase_year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('1'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Description of Assets*", - "question_key":"Description_of_Assets", - "place_holder":"Enter text", - "type":"1", - "field_width":"100", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - }, { - "question":"Is there a Loan Exiting Against the Assets? ", - "question_key":"is_there_a_Loan_Exiting_Against_the_Assets", - "type":"3", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - }, - { - "question":"Assets Owned by", - "question_key":"assets_Owned_by", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - }, - { - "question":"OwnerShip Type", - "question_key":"OwnerShip_type", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Owned", - "answer":"Owned" - }, - { - "answer_id":"Rented", - "answer":"Rented" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"OwnerShip_Type", - "expression":"(String('OwnerShip_Type') == String('Rented'))", - "value_keys":[ - "OwnerShip_Type" - ], - "questions":[ - { - "question_key":"monthly_Residence_Rent_Amount", - "question":"onthly Residence Rent Amount", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - - ] - }] - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - - { - "question":"Area Covered", - "question_key":"area_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"appromximate_market_value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - } ,{ - "question":"Age of Assets in Years", - "question_key":"age_of_Assets_in_years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"age_of_Assets_in_months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"purchase_year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('3'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Type of Vehicle", - "question_key":"Type_of_Vehicle", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"VEHICLETYPE" - }, - "fields":[ - "vehicle_type_id", - "vehicle_type_name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Description of Vehicle(example - Toyota Altis)", - "question_key":"Description_of_Vehicle", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - }, { - "question":"Is there a Loan Exiting Against the Assets? ", - "question_key":"Is_there_a_Loan_Exiting_Against_the_Assets", - "type":"3", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - }, - { - "question":"Assets Owned by", - "question_key":"Assets_Owned_by", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - }, - { - "question":"OwnerShip Type", - "question_key":"OwnerShip_type", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Owned", - "answer":"Owned" - }, - { - "answer_id":"Rented", - "answer":"Rented" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"OwnerShip_Type", - "expression":"(String('OwnerShip_Type') == String('Rented'))", - "value_keys":[ - "OwnerShip_Type" - ], - "questions":[ - { - "question_key":"Monthly_Residence_Rent_Amount", - "question":"Monthly Residence Rent Amount", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - - ] - }] - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - - { - "question":"Area Covered", - "question_key":"Area_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"appromximate_market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - } ,{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_in_years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_in_months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchase_year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - - - ], - "is_repeatable":"1", - "group_title":"Business Assets", - "group_key":"Business Assets", - "form_name":"Business Assets" - } - ] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - } - - - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/22.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/22.json deleted file mode 100644 index 4159343bc..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/22.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "section_id":"22", - "section_name":"Final remarks", - "onsubmit":null, - "questions":[ - { - "question":"Customer Behaviour", - "question_key":"customer_behaviour", - "type":"3", - "field_width":"45", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"CUSTOMERBEHAVIOUR" - }, - "fields":[ - "customer_behaviour_id", - "description" - ] - }, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"customer_behaviour", - "expression":"(String('customer_behaviour') == String('1'))", - "value_keys":[ - "customer_behaviour" - ], - "questions":[ - { "question":"Specify Customer behaviour", - "question_key":"customer_behaviour_other", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"customer_behaviour", - "answers":null, - "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 the location of the business suited to the nature of the business provided?", - "question_key":"business_location_suited", - "type":"3", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":[ - { - "answer":"Well Suited", - "answer_id":"Well Suited" - }, - { - "answer":"Fairly suited", - "answer_id":"Fairly suited" - }, - { - "answer":"Not suited", - "answer_id":"Not suited" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Credit Manager recommendation (Positive/negative/ refer to credit)", - "question_key":"pd_officer_recommendation", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDOFFICERRECOMMENDATIONS" - }, - "fields":[ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"pd_officer_recommendation", - "expression":"(String('pd_officer_recommendation') == String('1'))", - "value_keys":[ - "pd_officer_recommendation" - ], - "questions":[ - { "question":"Specify Credit Manager Recommendation", - "question_key":"pd_officer_recommendation_other", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"pd_officer_recommendation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } ] } , - { - "insert_index":"pd_officer_recommendation", - "expression":"(String('pd_officer_recommendation') != String('1')) && (String('pdofficer_recommendation') != String(''))", - "value_keys":[ - "pd_officer_recommendation" - ], - "questions":[ - { - "question":[{ - "question":"Reasons for marking PD status as Positive/negative/ refer to credit", - "question_key":"reason", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"pd_officer_recommendation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - ], - "is_repeatable":"1", - "group_title":"Remarks", - "group_title_shown":"0", - "group_key":"pd_officer_recommendation_remarks" - } ] } - ] }, - { - "purpose":"question_label", - "expression":"(function () {let label= 'Reasons for marking PD status as ';('pd_officer_recommendation' == '2') ? label+= 'Positive' : ('pd_officer_recommendation' == '3') ? label+= 'Negative' : ('pd_officer_recommendation' == '4') ? label+= 'Refer to Credit' : label+= 'Positive/negative/ refer to credit';return label}())", - "value_keys":[ - "pd_officer_recommendation" - ], - "insert_control":"reason", - "insert_group_key":"pd_officer_recommendation_remarks" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Common Remarks", - "question_key":"final_form_remarks", - "place_holder":"Enter the remarks here", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - ] - } - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/3.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/3.json deleted file mode 100644 index 40d020701..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/3.json +++ /dev/null @@ -1,519 +0,0 @@ -{ - "section_id": "3", - "section_name": "Financial Information", - "onsubmit": [], - "questions": [ - { - "question":"Financial Statements Available ?", - "question_key":"Financial_Statements_Available", - "type":"3", - "sub_title":"Data as Per Financial Statements", - "field_width":"65", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Financial_Statements_Available", - "expression":"(String('Financial_Statements_Available') == String('yes'))", - "value_keys":[ - "Financial_Statements_Available" - ], - "questions":[ - - { - "question": "Latest year’s financials as per applicant met ?", - "question_key": "Latest_years_financials_as_per_applicant_met", - "type": "3", - "field_width": "65", - "api_properties": null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Latest_years_financials_as_per_applicant_met", - "expression":"(String('Latest_years_financials_as_per_applicant_met') == String('no'))", - "value_keys":[ - "Latest_years_financials_as_per_applicant_met" - ], - "questions":[ - { - "question":"Enter year from which financials provided", - "question_key":"Enter_year_from_which_financials_provided", - "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":"Latest_years_financials_as_per_applicant_met", - "answers":null, - "validations":[ - ] - }, { - "question":"Number of Financial Years", - "question_key":"Number_of_Financial_Years", - "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":"Latest_years_financials_as_per_applicant_met", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - } - - - - ] - - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Same as Financial Statements ?", - "question_key":"Same_as_Financial_Statements", - "type":"3", - "sub_title":"Latest year’s financials as per Applicant met ", - "field_width":"65", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Same_as_Financial_Statements", - "expression":"(String('Same_as_Financial_Statements') == String('no'))", - "value_keys":[ - "Same_as_Financial_Statements" - ], - "questions":[ - { - "question":"Were the Kuccha records shown to the PD officer", - "question_key":"Were_the_Kuccha_records_shown_to_the_PD_officer", - "place_holder":"Enter the text", - "type":"2", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Were_the_Kuccha_records_shown_to_the_PD_officer", - "expression":"(String('Were_the_Kuccha_records_shown_to_the_PD_officer') == String('yes'))", - "value_keys":[ - "Were_the_Kuccha_records_shown_to_the_PD_officer" - ], - "questions":[ - { - "question_key":"Photograph of Kuchha bills allowed", - "question":"Photograph of Kuchha bills allowed", - "place_holder":"Enter the text", - "type":"2", - "api_properties":null, - "field_width":"100", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Were_the_Kuccha_records_shown_to_the_PD_officer", - - "validations":[ - ] - }, { - "question":"Does the Number of Kuccha Bills and Values therein, justify the customer declared turnover?", - "question_key":"Does the Number of Kuccha Bills and Values therein, justify the customer declared turnover?", - "place_holder":"", - "field_type":"num", - "type":"2", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Latest_years_financials_as_per_applicant_met", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "parent_question_key":"Same_as_Financial_Statements", - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question":" Was there Net Profit or Net Loss?", - "question_key": "Was_there_Net_Profit_or_Net_Loss", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers":[{ - "answer":"Net Profit", - "answer_id":"Net_Profit" - }, - { - "answer":"Net Loss", - "answer_id":"Net_Loss" - }], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Was_there_Net_Profit_or_Net_Loss", - "expression":"(String('Was_there_Net_Profit_or_Net_Loss') == String('Net_Profit'))", - "value_keys":[ - "Was_there_Net_Profit_or_Net_Loss" - ], - "questions":[ - { - "question":"Is there Net Margin Information Available", - "question_key":"Is_there_Net_Margin_Information_Available", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_there_Net_Margin_Information_Available", - "expression":"(String('Is_there_Net_Margin_Information_Available') == String('yes'))", - "value_keys":[ - "Is_there_Net_Margin_Information_Available" - ], - "questions":[ - { - "question":"Net Profit % From", - "question_key":"Net Profit % From", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - }, { - "question":"Net Profit % To", - "question_key":"Net Profit % To", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - }, { - "question":"Net Profit % Considered", - "question_key":"Net Profit % Considered", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - }, { - "question":"Net Profit Amount Considered", - "question_key":"Net Profit Amount Considered", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - } ] - }] - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_there_Net_Margin_Information_Available", - "expression":"(String('Is_there_Net_Margin_Information_Available') == String('no'))", - "value_keys":[ - "Is_there_Net_Margin_Information_Available" - ], - "questions":[ - - { - "question":"Net Profit Amount From", - "question_key":"Net Profit Amount From", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - }, { - "question":"Net Profit Amount To", - "question_key":"Net Profit Amount To", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - }, { - "question":"Considered Net Profit % ", - "question_key":"Considered Net Profit % ", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - }, { - "question":"Considered Profit Amount", - "question_key":"Considered Profit Amount", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_there_Net_Margin_Information_Available", - "answers": null, - "validations":[ - ] - } ] - }] - - }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_there_Net_Profit_or_Net_Loss", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - ] - } ] - }] - - }], - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - },{ - "question":"Considered Sales Average", - "question_key":"Considered Sales Average", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Same_as_Financial_Statements", - "answers":null, - "validations":[ - ] - }, { - "question":"Annual Sales To", - "question_key":"Annual Sales To", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Same_as_Financial_Statements", - "answers":null, - "validations":[ - ] - }, { - "question":"Annual Sales From", - "question_key":"Annual Sales From", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Same_as_Financial_Statements", - "answers":null, - "validations":[ - ] - } - - - - - ] - - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - },{ - "question_key":"In case of Credit Sales, what is the average no of days taken to receive the money?", - "question":"In case of Credit Sales, what is the average no of days taken to receive the money?", - "place_holder":"Enter the text", - "type":"1", - "sub_title":"Total Banking Facilities", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"In case of Credit Purchase, what is the average no of days taken to pay the money?", - "question":"In case of Credit Purchase, what is the average no of days taken to pay the money?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"Is there Working Capital Facilities?", - "question":"Is there Working Capital Facilities?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json deleted file mode 100644 index 3652dd0b2..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/4.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "section_id": "4", - "section_name": "Supplier Details", - "onsubmit": [], - "questions": [ - { - "question":"Is the Supplier information Available", - "question_key":"Is_the_Supplier_information_Available", - "type":"3", - "field_width":"65", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Supplier_information_Available", - "expression":"(String('Is_the_Supplier_information_Available') == String('yes'))", - "value_keys":[ - "Is_the_Supplier_information_Available" - ], - "questions":[ - { - "question":"Is the Billing Infomation Available", - "question_key":"Is the Billing Infomation Available", - "type":"3", - "field_width":"65", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "place_holder":"Enter the text", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - ] - }, - { - "question": [ - { - "question_key":"Service_Name", - "question":"Service Name", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Supplier_Name", - "question":"Supplier Name", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Title", - "question":"Title", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TITLES" - }, - "fields":[ - "title_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"20", - "validations":[ - ] - },{ - "question_key":"Contact_person_Name", - "question":"Contact Name", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"Contact_person_Designation", - "question":"Contact person Designation", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMPANYRELATIONSHIPS" - }, - "fields":[ - "company_relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"Contact_person_Mobile_number", - "question":"Contact person Mobile Number", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"STD_code", - "question":"STD Code", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"20", - "validations":[ - ] - },{ - "question_key":"Contact_person_Landline_number", - "question":"Contact person Landline Number", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"Payment_Terms", - "question":"Payment Terms", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PAYMENTMODE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Payment_Terms", - "expression":"(String('Payment_Terms') == String('3'))", - "value_keys":[ - "Payment_Terms" - ], - "questions":[ - { - "question_key":"What % of Total Purchase is done on Credit?", - "question":"What % of Total Purchase is done on Credit?", - "place_holder":"", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"Day_To", - "question":"Day To", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - }, { - "question_key":"Day_From", - "question":"Day From", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - }, { - "question_key":"No.of days of Credit Provided by Supplier", - "question":"No.of days of Credit Provided by Supplier", - "place_holder":"Enter the text", - "type":null, - "sub_title":"No.of days of Credit Provided by Supplier", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } ] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Payment_Mode", - "question":"Payment Mode", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - - "answer":"Payment made in Cash.", - "answer_id":"Payment made in Cash." - }, - { - "answer":"Payment made through Banking channels.", - "answer_id":"Payment made through Banking channels." - }, { - "answer":"Payment made through Cash and Banking channels.", - "answer_id":"Payment made through Cash and Banking channels." - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Service Provider Details", - "group_key": "Service Provider Details" - }] - }] - - }], - "is_repeatable":null, - "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/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/5.json deleted file mode 100644 index eabf2c9f0..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/5.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "section_id": "5", - "section_name": "Client Details", - "onsubmit": [], - "questions": [ - { - "question":"Is the Client information Available", - "question_key":"Is_the_Client_information_Available", - "type":"3", - "field_width":"65", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Client_information_Available", - "expression":"(String('Is_the_Client_information_Available') == String('yes'))", - "value_keys":[ - "Is_the_Client_information_Available" - ], - "questions":[ - { - "question":"Is the Billing Infomation Available", - "question_key":"Is the Billing Infomation Available", - "type":"3", - "field_width":"65", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "place_holder":"Enter the text", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - ] - }, - { - "question": [ - { - "question_key":"Select_the_Service_Provider", - "question":"Select the Service Provider", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Client_Name", - "question":"Client Name", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Title", - "question":"Title", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TITLES" - }, - "fields":[ - "title_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"20", - "validations":[ - ] - },{ - "question_key":"Contact_person_Name", - "question":"Contact Name", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"Contact_person_Designation", - "question":"Contact person Designation", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMPANYRELATIONSHIPS" - }, - "fields":[ - "company_relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"Contact_person_Mobile_number", - "question":"Contact person Mobile Number", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"STD_code", - "question":"STD Code", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"20", - "validations":[ - ] - },{ - "question_key":"Contact_person_Landline_number", - "question":"Contact person Landline Number", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - },{ - "question_key":"Payment_Terms", - "question":"Payment Terms", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PAYMENTMODE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Payment_Terms", - "expression":"(String('Payment_Terms') == String('3'))", - "value_keys":[ - "Payment_Terms" - ], - "questions":[ - { - "question_key":"What % of Total Purchase is done on Credit?", - "question":"What % of Total Purchase is done on Credit?", - "place_holder":"", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"Day_To", - "question":"Day To", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - }, { - "question_key":"Day_From", - "question":"Day From", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"40", - "validations":[ - ] - }, { - "question_key":"No.of days of Credit Provided by Supplier", - "question":"No.of days of Credit Provided by Supplier", - "place_holder":"Enter the text", - "type":null, - "sub_title":"No.of days of Credit Provided by Supplier", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } ] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Payment_Mode", - "question":"Payment Mode", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - - "answer":"Payment made in Cash.", - "answer_id":"Payment made in Cash." - }, - { - "answer":"Payment made through Banking channels.", - "answer_id":"Payment made through Banking channels." - }, { - "answer":"Payment made through Cash and Banking channels.", - "answer_id":"Payment made through Cash and Banking channels." - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Service Provider Details", - "group_key": "Service Provider Details" - } - ] - }] - - }], - "is_repeatable":null, - "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/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/6.json deleted file mode 100644 index d314ab33b..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/6.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "section_id": "6", - "section_name": "Stock Details", - "onsubmit": [], - - "questions":[ - - { - "question": [ - { - "question_key":"Name", - "question":"Name", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } , - { - "question_key":"stock", - "question":"Stock", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - "answer":"Add Stock Details", - "answer_id":"Add_Stock_Details" - }, - { - "answer":"No Stock Observed", - "answer_id":"No_Stock_Observed" - }], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"stock", - "expression":"(String('stock') == String('Add_Stock_Details'))", - "value_keys":[ - "stock" - ], - "questions":[ - { - "question_key":"Estimated_Value_of_Stock_Observed", - "question":"Estimated Value of Stock Observed", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } , - { - "question_key":"Unit_of_Measurement", - "question":"Unit of Measurement", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"UOM" - }, - "fields":[ - "uom_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, { - "question_key":"Estimated Quantity", - "question":"Estimated Quantity", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Service Provider Details", - "group_key": "Service Provider Details" - }, { - "question":"Is the stock of finished / goods observed, sufficient considering the size of operations", - "question_key":"sufficient_considering_the_size_of_operations", - "type":"3", - "field_width":"65", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - },{ - "answer":"Stock not required to be maintained", - "answer_id":"Stock not required to be maintained" - }], - "place_holder":"Enter the text", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"sufficient_considering_the_size_of_operations", - "expression":"(String('sufficient_considering_the_size_of_operations') == String('no'))", - "value_keys":[ - "sufficient_considering_the_size_of_operations" - ], - "questions":[ - { - "question_key":"Please comment on the stock level observed?", - "question":"Please comment on the stock level observed?", - "place_holder":"Please comment on the stock level observed?", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - ] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "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/7.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/7.json deleted file mode 100644 index 7938d11c6..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/7.json +++ /dev/null @@ -1,396 +0,0 @@ -{ - "section_id": "7", - "section_name": "Facility & Anchor Details Section", - "onsubmit": null, - "questions": [ - { - "question_key":"Facility Amount Applied For?", - "question":"Facility Amount Applied For?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "title":"Anchor Details Section", - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, { - "question_key":"Name of the Anchor", - "question":"Name of the Anchor", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"35", - "validations":[ - ] - }, - { - "question_key":"Applicant's association vintage with the Anchor", - "question":"Applicant's association vintage with the Anchor", - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"Applicant's association vintage with the Anchor", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Monthly business (sale/purchase) with the Anchor", - "question":"Monthly business (sale/purchase) with the Anchor", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Business concentration with Anchor %", - "question":"Business concentration with Anchor %", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - }, { - "question_key":"Credit period with the Anchor (Days)", - "question":"Credit period with the Anchor (Days)", - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"Credit period with the Anchor (Days)", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Number of Days", - "question":"Number of Days", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"35", - "validations":[ - ] - },{ - "question_key":"Payment Mechanism", - "question":"Payment Mechanism", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":[ - - { - "answer_id":"Bill-Wise", - "answer":"Bill-Wise" - }, - { - "answer_id":"Open Account", - "answer":"Open Account" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Average Invoice Value", - "question":"Average Invoice Value", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"35", - "validations":[ - ] - },{ - "question_key":"Are_there_peak_seasons_for_the_business_with_Anchor", - "question":"Are there peak seasons for the business with Anchor", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No Major Changes In Sales", - "answer":"No Major Changes In Sales" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Are_there_peak_seasons_for_the_business_with_Anchor", - "expression":"(String('Are_there_peak_seasons_for_the_business_with_Anchor') == String('Yes'))", - "value_keys":[ - "Are_there_peak_seasons_for_the_business_with_Anchor" - ], - "questions":[ - { - "question":"Comments*", - "question_key":"Comments", - "place_holder":"", - "field_type":"text", - "type":"7", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Are_there_peak_seasons_for_the_business_with_Anchor", - "answers":null, - "validations":[ - ] - }, { - "question":"Months in which sales/service is low?", - "question_key":"Months in which sales/service is low?", - "place_holder":"", - "field_type":"text", - "type":"4", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"STATE" - }, - "fields":[ - "state_id", - "name" - ] - - }, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Are_there_peak_seasons_for_the_business_with_Anchor", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Are_there_debit_credit_notes_being_issued_to_by_Anchor", - "question":"Are there debit/credit notes being issued to/by Anchor", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Are_there_debit_credit_notes_being_issued_to_by_Anchor", - "expression":"(String('Are_there_debit_credit_notes_being_issued_to_by_Anchor') == String('Yes'))", - "value_keys":[ - "Are_there_debit_credit_notes_being_issued_to_by_Anchor" - ], - "questions":[ - { - "question":"Reason for such debit/credit notes", - "question_key":"Reason for such debit/credit notes", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Are_there_debit_credit_notes_being_issued_to_by_Anchor", - "answers":null, - "validations":[ - ] - } ] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Reason for such debit/credit notes", - "question":"Reason for such debit/credit notes", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Value of stock related to Anchor", - "question":"Value of stock related to Anchor", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"45", - "validations":[ - ] - },{ - "question_key":"Observations_on_Sample_Invoices", - "question":"Observations on Sample Invoices", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Observations_on_Sample_Invoices", - "expression":"(String('Observations_on_Sample_Invoices') == String('Yes'))", - "value_keys":[ - "Observations_on_Sample_Invoices" - ], - "questions":[ - { - "question_key":"observations on Invoice and lorry receipts", - "question":"observations on Invoice and lorry receipts", - "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":[ - ] - } ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Observations_on_Sample_Invoices", - "expression":"(String('Observations_on_Sample_Invoices') == String('No'))", - "value_keys":[ - "Observations_on_Sample_Invoices" - ], - "questions":[ - { - "question_key":"reason for no sample invoices", - "question":"reason for no sample invoices", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } ] - }] - - }], - "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/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/8.json deleted file mode 100644 index 84bfded35..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/8.json +++ /dev/null @@ -1,87 +0,0 @@ - { - "section_id": "8", - "section_name": "Future Plans & Business Environments", - "onsubmit": [], - "questions": [ - { - "question_key":"USP of the business - How is the applicants business different from others in the same line of business?", - "question":"USP of the business - How is the applicants business different from others in the same line of business?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Future plans for business expansion", - "question":"Future plans for business expansion", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Impact of GST on the business", - "question":"Impact of GST on the business", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Key Competitors", - "question":"Key Competitors", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Succession plan - who will look after the business after applicants retire / are unable to run the business due to any reason?", - "question":"Succession plan - who will look after the business after applicants retire / are unable to run the business due to any reason?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Brief of Other Group Concerns / Businesses run by the applicants", - "question":"Brief of Other Group Concerns / Businesses run by the applicants", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - } - - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/9.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/9.json deleted file mode 100644 index e679e4b84..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/9.json +++ /dev/null @@ -1,1244 +0,0 @@ -{ - "section_id": "4", - "section_name": "Rental Information", - "onsubmit": [], - "questions": [ - { - "question_key":"Address of the Property", - "question":"Address of the Property", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"30", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"30", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"30", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - },{ - "question_key":"Is_This_the_Address_Visited", - "question":"Is This the Address Visited ?", - "place_holder":"Enter the text", - "type":"5", - "api_properties":null, - "answers":[ - - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_This_the_Address_Visited", - "expression":"(String('Is_This_the_Address_Visited') == String('No'))", - "value_keys":[ - "Is_This_the_Address_Visited" - ], - "questions":[ - { - "question":"Actual Address Visited", - "question_key":"Actual Address Visited", - "place_holder":"", - "field_type":"text", - "type":"7", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Nature_of_Let_Out_Property_as_per_Loan_Applicant", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Name of the Person Who is Showing the Property to Sineedge Officer", - "question":"Name of the Person Who is Showing the Property to Sineedge Officer", - "place_holder":"Enter the text", - "type":"3", - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Name of the Owner/Owners of the Let out Property as per Loan Applicants", - "question":"Name of the Owner/Owners of the Let out Property as per Loan Applicants", - "place_holder":"Enter the text", - "type":"4", - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - },{ - "question_key":"Ownership_Proof_Documents_Sighted", - "question":"Ownership Proof Documents Sighted", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Ownership_Proof_Documents_Sighted", - "expression":"(String('Ownership_Proof_Documents_Sighted') == String('Yes'))", - "value_keys":[ - "Ownership_Proof_Documents_Sighted" - ], - "questions":[ - { - "question":"Type of Document Sighted", - "question_key":"Type_of_Document_Sighted", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Type_of_Document_Sighted", - "expression":"(String('Type_of_Document_Sighted') == String('Others_Please_Specify'))", - "value_keys":[ - "Type_of_Document_Sighted" - ], - "questions":[ - { - "question":"Other Type of Document", - "question_key":"TOther Type of Document", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Type_of_Document_Sighted", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Ownership_Proof_Documents_Sighted", - "answers":[ - - { - "answer_id":"Property Title Document", - "answer":"Property Title Document" - }, - { - "answer_id":"Electricity Bill With Name Of Owner Mentioned Therein", - "answer":"Electricity Bill With Name Of Owner Mentioned Therein" - },{ - "answer_id":"Property Tax Receipts", - "answer":"Property Tax Receipts" - }, - { - "answer_id":"Others_Please_Specify", - "answer":"Others (Please Specify)" - } - ], - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Nature_of_Let_Out_Property_as_per_Loan_Applicant", - "question":"Nature of Let Out Property as per Loan Applicant", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - - { - "answer_id":"Residential Property", - "answer":"Residential Property" - }, - { - "answer_id":"Commercial Property", - "answer":"Commercial Property" - },{ - "answer_id":"Industrial Property", - "answer":"Industrial Property" - }, - { - "answer_id":"Others_Please_Specify", - "answer":"Others (Please Specify)" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Nature_of_Let_Out_Property_as_per_Loan_Applicant", - "expression":"(String('Nature_of_Let_Out_Property_as_per_Loan_Applicant') == String('Others_Please_Specify'))", - "value_keys":[ - "Nature_of_Let_Out_Property_as_per_Loan_Applicant" - ], - "questions":[ - { - "question":"Other Property", - "question_key":"Other Property", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Nature_of_Let_Out_Property_as_per_Loan_Applicant", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Type_of_Units_as_per_Loan_Applicants", - "question":"Type of Units as per Loan Applicants", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - - - { - "answer_id":"Others_Please_Specify", - "answer":"Others (Please Specify)" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Type_of_Units_as_per_Loan_Applicants", - "expression":"(String('Type_of_Units_as_per_Loan_Applicants') == String('Others_Please_Specify'))", - "value_keys":[ - "Type_of_Units_as_per_Loan_Applicants" - ], - "questions":[ - { - "question":"Specify_Other_Unit_Type", - "question_key":"Specify Other Unit Type", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Type_of_Units_as_per_Loan_Applicants", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"Tot No of Units", - "question":"Tot No of Units", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, { - "question": [ - { - "question": "Is Name of the Tenant(s)/Lessees(s) of the Let out Property Provided ?", - "question_key": "Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided", - "type": "3", - "field_width": "45", - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, { - "answer_id":"Name_not_provided", - "answer":"Name(s) not provided" - } - ], - "api_properties": null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided", - "expression":"(String('Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided') == String('Yes'))", - "value_keys":[ - "Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided" - ], - "questions":[ - { - "question":"Name of Tenant(s)/Lessees(s)", - "question_key":"Name of Tenant(s)/Lessees(s)", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided", - "answers":null, - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided", - "expression":"(String('Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided') == String('Name_not_provided'))", - "value_keys":[ - "Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided" - ], - "questions":[ - { - "question":"Why Tenant(s)/Lessees(s) Name not Provided", - "question_key":"Why Tenant(s)/Lessees(s) Name not Provided", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Name_of_the_Tenant_Lesseess_of_the_Let_out_Property_Provided", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Monthly Rent Amount as per Loan Applicant", - "question_key": "Monthly Rent Amount as per Loan Applicant", - "type": "1", - "field_type": "numtoword", - "field_width": "45", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Mode of Payment of Rent as per Loan Applicant", - "question_key": "Mode_of_Payment_of_Rent_as_per_Loan_Applicant", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers":[ - - { - "answer_id":"Received in Cash", - "answer":"Received in Cash" - }, { - "answer_id":"Received through Banking Channel", - "answer":"Received through Banking Channel" - },{ - "answer_id":"Combination_of_Cash_Bank", - "answer":"Combination of Cash & Bank" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Mode_of_Payment_of_Rent_as_per_Loan_Applicant", - "expression":"(String('Mode_of_Payment_of_Rent_as_per_Loan_Applicant') == String('Combination_of_Cash_Bank'))", - "value_keys":[ - "Mode_of_Payment_of_Rent_as_per_Loan_Applicant" - ], - "questions":[ - { - "question":"Amount Received in Bank", - "question_key":"Amount Received in Bank", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Mode_of_Payment_of_Rent_as_per_Loan_Applicant", - "answers":null, - "validations":[ - ] - }, { - "question":"Amount Received in Cash", - "question_key":"Amount Received in Cash", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Mode_of_Payment_of_Rent_as_per_Loan_Applicant", - "answers":null, - "validations":[ - ] - },{ - "question":"Reason for Receiving Multiple Payment Mode", - "question_key":"Reason for Receiving Multiple Payment Mode", - "place_holder":"", - "field_type":"text", - "type":"7", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Mode_of_Payment_of_Rent_as_per_Loan_Applicant", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Securtity Deposit amount as per Loan Applicant", - "question_key": "Securtity Deposit amount as per Loan Applicant", - "type": "3", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Area Covered by the Unit", - "question_key": "Area Covered by the Unit", - "type": "1", - "field_width": "45", - "field_type": "string", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Unit of Measurement", - "question_key": "Unit of Measurement", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"UOM" - }, - "fields":[ - "uom_id", - "name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - - { - "question": "Is Rent Agreement executed for the Property let out", - "question_key": "Is_Rent_Agreement_executed_for_the_Property_let_out", - "type": "3", - "field_type": "num", - "field_width": "100", - "api_properties": null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_Rent_Agreement_executed_for_the_Property_let_out", - "expression":"(String('Is_Rent_Agreement_executed_for_the_Property_let_out') == String('Yes'))", - "value_keys":[ - "Is_Rent_Agreement_executed_for_the_Property_let_out" - ], - "questions":[ - { - "question":"Rent Agreement Seen", - "question_key":"Rent_Agreement_Seen", - "place_holder":"", - "field_type":"text", - "type":"3", - "sub_title":"As per rent agreement Questions", - "field_width":"100", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Rent_Agreement_Seen", - "expression":"(String('Rent_Agreement_Seen') == String('Yes'))", - "value_keys":[ - "Rent_Agreement_Seen" - ], - "questions":[ - { - "question":"Is the Rent Agreement Registered at Sub-Registrar Office", - "question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "place_holder":"", - "field_type":"text", - "type":"3", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "expression":"(String('Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office') == String('Yes'))", - "value_keys":[ - "Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office" - ], - "questions":[ - { - "question":"Name of Tenants / Lessees as per Rent Agreement", - "question_key":"Name of Tenants / Lessees as per Rent Agreement", - "place_holder":"", - "field_type":"text", - "type":"7", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"Name of Owner / Owners of Rented Property as per Rent Agreement", - "question_key":"Name of Owner / Owners of Rented Property as per Rent Agreement", - "place_holder":"", - "field_type":"text", - "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":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"Security Deposit Amount as per Agreement", - "question_key":"Security Deposit Amount as per Agreement", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"Monthly Rent Amount as per Agreement", - "question_key":"Monthly Rent Amount as per Agreement", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"No of Rental Months Remaining as per Agreement", - "question_key":"No of Rental Months Remaining as per Agreement", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"Date on which Agreement is Expiring", - "question_key":"Date on which Agreement is Expiring", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"No of Months for Which Property has been let out as per Agreement", - "question_key":"No of Months for Which Property has been let out as per Agreement", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }, - { - "question":"Date of Agreement", - "question_key":"Date of Agreement", - "place_holder":"", - "field_type":"text", - "type":"11", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_the_Rent_Agreement_Registered_at_Sub_Registrar_Office", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Rent_Agreement_Seen", - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, { - "answer_id":"No", - "answer":"No" - } - ], - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_Rent_Agreement_executed_for_the_Property_let_out", - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, { - "answer_id":"No", - "answer":"No" - } - ], - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Tenant(s) / Lessee(s) Met During Visit of the Rented Property", - "question_key": "Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "type": "3", - "sub_title":"As per Tenant(s)/Lessee Met Questions", - "field_width": "100", - "field_type": "num", - "api_properties": null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "expression":"(String('Tenant_Lessee_Met_During_Visit_of_the_Rented_Property') == String('Yes'))", - "value_keys":[ - "Tenant_Lessee_Met_During_Visit_of_the_Rented_Property" - ], - "questions":[ - { - "question":"Period (Months) of Stay as per Tenant / Lessee Met", - "question_key":"Period (Months) of Stay as per Tenant / Lessee Met", - "place_holder":"", - "field_type":"text", - "type":"1", - "sub_title":null, - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "answers": null, - "validations":[ - ] - }, - { - "question":"Monthly Rent Amount Paid as per Tenant / Lessee Met", - "question_key":"Monthly Rent Amount Paid as per Tenant / Lessee Met", - "place_holder":"", - "field_type":"text", - "type":"1", - "sub_title":null, - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "answers": null, - "validations":[ - ] - }, - { - "question":"Name of Owner as per Tenant / Lessee Met", - "question_key":"Name_of_Owner_as_per_Tenant_Lessee_Met", - "place_holder":"", - "field_type":"text", - "type":"4", - "field_width":"100", - "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":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "answers": null, - "validations":[ - ] - }, - { - "question":"Name of the Tenant / Lessee Met", - "question_key":"Name of the Tenant / Lessee Met", - "place_holder":"", - "field_type":"text", - "type":"1", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "answers": null, - "validations":[ - ] - }, - { - "question":"Mode of Payment of Rent as Validated by PD Officer with Tenant / Lessee During Visit", - "question_key":"Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit", - "place_holder":"", - "field_type":"text", - "type":"3", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit", - "expression":"(String('Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit') == String('Combination_of_Cash_Bank'))", - "value_keys":[ - "Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit" - ], - "questions":[ - { - "question":"Reason for Paid Multiple Payment Mode", - "question_key":"Reason for Paid Multiple Payment Mode", - "place_holder":"", - "field_type":"text", - "type":"7", - "sub_title":null, - "field_width":"35", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit", - "answers": null, - "validations":[ - ] - } , - { - "question":"Amount Paid in Cash", - "question_key":"Amount Paid in Cash", - "place_holder":"", - "field_type":"text", - "type":"1", - "sub_title":null, - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit", - "answers": null, - "validations":[ - ] - },{ - "question":"Amount Paid in Bank", - "question_key":"Amount Paid in Bank", - "place_holder":"", - "field_type":"text", - "type":"1", - "sub_title":null, - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Mode_of_Payment_of_Rent_as_Validated_by_PD_Officer_with_Tenant_Lessee_During_Visit", - "answers": null, - "validations":[ - ] - } - ] - }] - - }], - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "answers":[ - - { - "answer_id":"Paid in Cash", - "answer":"Paid in Cash" - }, { - "answer_id":"Paid through Banking Channel", - "answer":"Paid through Banking Channel" - }, { - "answer_id":"Combination_of_Cash_Bank", - "answer":"Combination of Cash & Bank" - } - ], - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "expression":"(String('Tenant_Lessee_Met_During_Visit_of_the_Rented_Property') == String('No'))", - "value_keys":[ - "Tenant_Lessee_Met_During_Visit_of_the_Rented_Property" - ], - "questions":[ - { - "question":"Why Tenant / Lessee not Met ?", - "question_key":"Why Tenant / Lessee not Met ?", - "place_holder":"", - "field_type":"text", - "type":"7", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Tenant_Lessee_Met_During_Visit_of_the_Rented_Property", - "answers": null, - "validations":[ - ] - } - ] - }] - - }], - "is_repeatable": null, - "validations": [ - ] - } - ], - "is_repeatable": "1", - "group_title": "Unit", - "group_key": "Unit" - },{ - "question": "Third party check done on prevailing rent in the area", - "question_key": "Third_party_check_done_on_prevailing_rent_in_the_area", - "type": "3", - "sub_title":"Third Party Check", - "field_width": "100", - "field_type": "num", - "api_properties": null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Third_party_check_done_on_prevailing_rent_in_the_area", - "expression":"(String('Third_party_check_done_on_prevailing_rent_in_the_area') == String('Yes'))", - "value_keys":[ - "Third_party_check_done_on_prevailing_rent_in_the_area" - ], - "questions":[ - { - "question":"Rental rates in the area as per the person with whom Third Party Check is done", - "question_key":"Rental rates in the area as per the person with whom Third Party Check is done", - "place_holder":"", - "field_type":"text", - "type":"7", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Third_party_check_done_on_prevailing_rent_in_the_area", - "answers": null, - "validations":[ - ] - }, - { - "question":"Description of the person with whom the Third Party Check is done", - "question_key":"Description of the person with whom the Third Party Check is done", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Third_party_check_done_on_prevailing_rent_in_the_area", - "answers": null, - "validations":[ - ] - }, { - "question":"Name of person with whom Third Party Check on going rentals in the area done", - "question_key":"Name of person with whom Third Party Check on going rentals in the area done", - "place_holder":"", - "field_type":"text", - "type":"1", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Third_party_check_done_on_prevailing_rent_in_the_area", - "answers": null, - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Third_party_check_done_on_prevailing_rent_in_the_area", - "expression":"(String('Third_party_check_done_on_prevailing_rent_in_the_area') == String('No'))", - "value_keys":[ - "Third_party_check_done_on_prevailing_rent_in_the_area" - ], - "questions":[ - { - "question":"Why Third party check not done", - "question_key":"Why Third party check not done", - "place_holder":"", - "field_type":"text", - "type":"7", - "sub_title":null, - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Third_party_check_done_on_prevailing_rent_in_the_area", - "answers": null, - "validations":[ - ] - } - ] - }] - - }], - "is_repeatable": null, - "validations": [ - ] - } - - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/Unconfirmed 207808.crdownload b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/Unconfirmed 207808.crdownload deleted file mode 100644 index fcd273380..000000000 Binary files a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/Unconfirmed 207808.crdownload and /dev/null differ diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/sample.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/sample.json deleted file mode 100644 index 76605dc37..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/sample.json +++ /dev/null @@ -1 +0,0 @@ -{"section_id":"2","section_name":"Address details","onsubmit":null,"questions":[{"question":"Address at which PD was initiated","question_key":"initiated_address","type":"7","disable":true,"field_width":"100","answers":null,"api_properties":null,"onchange_properties":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Is this the address where PD is done ?","question_key":"is_pd_done_on_initiated_address","type":"2","disable":true,"field_width":"45","onchange_properties":[{"purpose":"FORM_CTRL","form_controls":[{"insert_index":"is_pd_done_on_initiated_address","expression":"(String('is_pd_done_on_initiated_address') == String('No'))","value_keys":["is_pd_done_on_initiated_address"],"questions":[{"question":"Choose the actual PD address","question_key":"alternative_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":"is_pd_done_on_initiated_address","answers":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field required","value":null}]}]}]}],"api_properties":null,"answers":[{"answer_id":"Yes","answer":"Yes"},{"answer_id":"No","answer":"No"}],"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Type of PD address","question_key":"address_type","type":"3","disable":false,"field_width":"90","api_properties":{"api":"getListOfMaster","api_method":"POST","params":{"master_name":"ADDRESSTYPE"},"fields":["address_type_id","address_type"]},"answers":[{"answer_id":"10","answer":"Business Centre","is_others":"0"},{"answer_id":"2","answer":"Clinic","is_others":"0"},{"answer_id":"3","answer":"Factory","is_others":"0"},{"answer_id":"8","answer":"Industrial Shed","is_others":"0"},{"answer_id":"12","answer":"Office","is_others":"0"},{"answer_id":"6","answer":"Residence","is_others":"0"},{"answer_id":"7","answer":"Residence cum Office","is_others":"0"},{"answer_id":"11","answer":"Shared Office","is_others":"0"},{"answer_id":"5","answer":"Shop","is_others":"0"},{"answer_id":"4","answer":"Warehouse / Godown","is_others":"0"},{"answer_id":"9","answer":"Workshop","is_others":"0"},{"answer_id":"1","answer":"Others ","is_others":"1"}],"onchange_properties":[{"purpose":"FORM_CTRL","form_controls":[{"insert_index":"address_type","expression":"(String('address_type') == String('1'))","value_keys":["address_type"],"questions":[{"question":"Specify the Address Type","question_key":"address_type_others","place_holder":"","field_type":"string","type":"1","field_width":"100","api_properties":null,"onchange_properties":null,"is_repeatable":null,"is_subfield":"1","parent_question_key":"uom","answers":null,"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}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"PD locality","question_key":"pd_locality","type":"3","disable":true,"field_width":"45","api_properties":{"api":"getListOfMaster","api_method":"POST","params":{"master_name":"LOCALITY"},"fields":["locality_id","locality_name"]},"answers":[{"answer_id":"2","answer":"Commercial (Office type) Area","is_others":"0"},{"answer_id":"7","answer":"Commercial (Shop type) Area","is_others":"0"},{"answer_id":"3","answer":"Industrial Area","is_others":"0"},{"answer_id":"4","answer":"Residential Area","is_others":"0"},{"answer_id":"6","answer":"Rural (Village) area","is_others":"0"},{"answer_id":"5","answer":"Mix Use Area","is_others":"1"},{"answer_id":"1","answer":"Others","is_others":"1"}],"onchange_properties":[{"purpose":"FORM_CTRL","form_controls":[{"insert_index":"pd_locality","expression":"(String('pd_locality').toLowerCase() == String('1'))","value_keys":["pd_locality"],"questions":[{"question":"Specify Locality","question_key":"locality_other","type":"1","field_width":"45","field_type":"string","api_properties":null,"answers":null,"onchange_properties":null,"is_repeatable":null,"validations":[]}]}]}],"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Approach to PD location*","question_key":"pd_location","type":"3","disable":true,"field_width":"45","api_properties":{"api":"getListOfMaster","api_method":"POST","params":{"master_name":"PDLOCATIONAPPROACH"},"fields":["pd_location_approach_id","description"]},"answers":[{"answer_id":"1","answer":"Very Easy to locate & Reach","is_others":"0"},{"answer_id":"2","answer":"Easy to locate & Reach","is_others":"0"},{"answer_id":"3","answer":"Difficult to locate & Reach","is_others":"0"},{"answer_id":"4","answer":"Very Difficult to locate & Reach","is_others":"0"}],"onchange_properties":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Comment on locality","question_key":"comment_locality","type":"3","disable":true,"field_width":"25","api_properties":{"api":"getListOfMaster","api_method":"POST","params":{"master_name":"COMMENTSONLOCALITY"},"fields":["comments_on_locality_id","rating"]},"answers":[{"answer_id":"5","answer":"Excellent","is_others":"0"},{"answer_id":"2","answer":"Good","is_others":"0"},{"answer_id":"3","answer":"Poor","is_others":"0"},{"answer_id":"4","answer":"Very Poor","is_others":"0"}],"onchange_properties":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Estimated Area of the business","question_key":"business_estimated_area","type":"1","disable":true,"field_width":"30","field_type":"num","api_properties":null,"answers":null,"onchange_properties":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"UOM","question_key":"uom","type":"8","disable":true,"field_width":"30","api_properties":null,"answers":[{"answer":"Acres","answer_id":"Acres"},{"answer":"Hectares","answer_id":"Hectares"},{"answer":"Square Feet","answer_id":"Square Feet"},{"answer":"Square Meters","answer_id":"Square Meters"},{"answer":"Square Yards","answer_id":"Square Yards"}],"onchange_properties":[{"purpose":"FORM_CTRL","form_controls":[{"insert_index":"uom","expression":"(String('uom') == String('1'))","value_keys":["uom"],"questions":[{"question":"Specify the UOM","question_key":"uom_specify","place_holder":"","field_type":"string","type":"1","field_width":"100","api_properties":null,"onchange_properties":null,"is_repeatable":null,"is_subfield":"1","parent_question_key":"uom","answers":null,"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}],"raw_validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question_key":"common_remarks","question":"Remarks","place_holder":"Enter the text","type":"7","disable":true,"api_properties":null,"answers":null,"onchange_properties":null,"is_repeatable":null,"field_type":"string","field_width":"45","validations":[],"raw_validations":[]}]} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/sample2.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/sample2.json deleted file mode 100644 index 625be28ce..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/sample2.json +++ /dev/null @@ -1 +0,0 @@ -{"section_id":"4","section_name":"General Business Information","onsubmit":null,"questions":[{"question":[{"question":"Name of the Company","question_key":"company_name","place_holder":"Enter text","type":"3","disable":false,"default_index_if_len_one":true,"api_properties":{"api":"getCompanyListForSMCList","api_method":"POST","params":{"records":{"pd_id":"VAR_PD_ID","random_string":"VAR_RANDOM_STRING"}},"fields":["company_id","borrower_name"]},"answers":null,"onchange_properties":null,"is_repeatable":null,"field_type":"string","validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Company Name Required","value":null}]},{"question":"Type of Business Entity","question_key":"business_entity_type","type":"1","disable":false,"field_width":"45","answers":null,"api_properties":null,"onchange_properties":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Type of Business activities","question_key":"select_business_activity_type","type":"1","disable":false,"field_width":"45","onchange_properties":null,"api_properties":null,"answers":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Area of Sale","question_key":"area_of_sale","type":"3","disable":false,"field_width":"45","api_properties":null,"answers":[{"answer":"Within India","answer_id":"Within India"},{"answer":"Export","answer_id":"Export"},{"answer":"Both (within India and Export)","answer_id":"Both (within India and Export)"}],"onchange_properties":null,"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]},{"question":"Is the business seasonal (Yes / No)","question_key":"seasonality","type":"2","disable":true,"field_width":"45","api_properties":null,"answers":[{"answer":"Yes","answer_id":"Yes"},{"answer":"No","answer_id":"No"}],"onchange_properties":[{"purpose":"FORM_CTRL","form_controls":[{"insert_index":"seasonality","expression":"(String('seasonality') == String('Yes'))","value_keys":["seasonality"],"questions":[{"question_key":"low_sale_month_reason","question":"Reason for Months in which sales/services is low?","place_holder":"Enter the text","type":"1","disable":false,"api_properties":null,"answers":null,"onchange_properties":null,"is_repeatable":null,"field_type":"string","is_subfield":"1","field_width":"45","parent_question_key":"seasonality","validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Required","value":null}]},{"question_key":"low_sale_month","question":"Months in which sales/services is low?","place_holder":"","type":"4","disable":false,"api_properties":null,"answers":[{"answer_id":"January","answer":"January"},{"answer_id":"February","answer":"February"},{"answer_id":"March","answer":"March"},{"answer_id":"April","answer":"April"},{"answer_id":"May","answer":"May"},{"answer_id":"June","answer":"June"},{"answer_id":"July","answer":"July"},{"answer_id":"August","answer":"August"},{"answer_id":"September","answer":"September"},{"answer_id":"October","answer":"October"},{"answer_id":"November","answer":"November"},{"answer_id":"December","answer":"December"}],"onchange_properties":null,"is_repeatable":null,"field_type":"num","field_width":"45","is_subfield":"1","parent_question_key":"seasonality","validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Required","value":null}]}]}]}],"is_repeatable":null,"validations":[{"name":"required","isactive":"1","validator":"Validators.required","message":"Field Required","value":null}]}],"is_repeatable":"1","group_title":"Details of General Business Information","group_key":"business_entity","disable":false},{"question_key":"common_remarks","question":"Remarks","place_holder":"Enter the text","type":"7","disable":false,"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/NBFCMFI.zip b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI.zip deleted file mode 100644 index cf5fd5e4a..000000000 Binary files a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI.zip and /dev/null differ diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/1.json deleted file mode 100644 index 5c6bcca14..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/1.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "section_id": "1", - "section_name": "General Information", - "onsubmit": null, - "questions": [ - { - "question": "Name", - "question_key": "name", - "type": "1", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Loan amount ", - "question_key": "loan_amount", - "type": "1", - "field_width": "45", - "field_type": "numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Product", - "question_key": "product", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Location", - "question_key": "location", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/10.json deleted file mode 100644 index bc27a346f..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/10.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "section_id": "19", - "section_name": "Final remarks", - "onsubmit": null, - "questions": [ - { - "question": "Customer Behaviour", - "question_key": "customer_behaviour", - "type": "3", - "field_width": "45", - "answers": null, - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "CUSTOMERBEHAVIOUR" - }, - "fields": [ - "customer_behaviour_id", - "description" - ] - }, - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "customer_behaviour", - "expression": "(String('customer_behaviour') == String('1'))", - "value_keys": [ - "customer_behaviour" - ], - "questions": [ - { - "question": "Specify Customer behaviour", - "question_key": "customer_behaviour_other", - "type": "1", - "field_width": "45", - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "is_subfield": "1", - "parent_question_key": "customer_behaviour", - "answers": null - } - ] - } - ] - } - ], - "is_repeatable": null - }, - { - "question": "Credit Manager recommendation (Positive/negative/ refer to credit)", - "question_key": "pd_officer_recommendation", - "type": "7", - "field_width": "45", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "PDOFFICERRECOMMENDATIONS" - }, - "fields": [ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers": null, - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pd_officer_recommendation", - "expression": "(String('pd_officer_recommendation') == String('1'))", - "value_keys": [ - "pd_officer_recommendation" - ], - "questions": [ - { - "question": "Specify Credit Manager Recommendation", - "question_key": "pd_officer_recommendation_other", - "type": "7", - "field_width": "45", - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "is_subfield": "1", - "parent_question_key": "pd_officer_recommendation", - "answers": null - } - ] - }, - { - "insert_index": "pd_officer_recommendation", - "expression": "(String('pd_officer_recommendation') != String('1')) && (String('pdofficer_recommendation') != String(''))", - "value_keys": [ - "pd_officer_recommendation" - ], - "questions": [ - { - "question": [ - { - "question": "Reasons for marking PD status as Positive/negative/ refer to credit", - "question_key": "reason", - "type": "1", - "field_width": "100", - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "is_subfield": "1", - "parent_question_key": "pd_officer_recommendation", - "answers": null - } - ], - "is_repeatable": "1", - "group_title": "Remarks", - "group_title_shown": "0", - "group_key": "pd_officer_recommendation_remarks" - } - ] - } - ] - }, - { - "purpose": "question_label", - "expression": "(function () {let label= 'Reasons for marking PD status as ';('pd_officer_recommendation' == '2') ? label+= 'Positive' : ('pd_officer_recommendation' == '3') ? label+= 'Negative' : ('pd_officer_recommendation' == '4') ? label+= 'Refer to Credit' : label+= 'Positive/negative/ refer to credit';return label}())", - "value_keys": [ - "pd_officer_recommendation" - ], - "insert_control": "reason", - "insert_group_key": "pd_officer_recommendation_remarks" - } - ], - "is_repeatable": null - }, - { - "question": "Common Remarks", - "question_key": "final_form_remarks", - "place_holder": "Enter the remarks here", - "type": "7", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/2.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/2.json deleted file mode 100644 index af68b1614..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/2.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "section_id": "22", - "section_name": "Profile", - "onsubmit": null, - "questions": [ - { - "question": "History & Vintage and Lineage ", - "question_key": "history_vintage", - "type": "7", - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": " Primary shareholding , promoters and major equity partners", - "question_key": "primary_partners", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "The capital structure and details of the various investments vehicles ", - "question_key": "capital_details", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/3.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/3.json deleted file mode 100644 index a4f79b53b..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/3.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "section_id": "23", - "section_name": "Size and Geographical Reach", - "onsubmit": null, - "questions": [ - { - "question": "AUM ( off book & on book ) &e. Trend of Disbursement in last 2 quarters", - "question_key": "aum_book", - "type": "7", - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "States and geographical regions & Branches & geographical customer base", - "question_key": "geographical_details", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Branches /employees / structure", - "question_key": "branches_employees", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Portfolio concentration and Cuts to be discussed", - "question_key": "portfolio_concentration", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Who are the competitors to the business", - "question_key": "business_competitors", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Estimated Market Size of the Business& Market share", - "question_key": "estimated_market", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/4.json deleted file mode 100644 index f417283e1..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/4.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "section_id": "24", - "section_name": "Product and Process", - "onsubmit": null, - "questions": [ - { - "question": "Products", - "question_key": "products", - "type": "7", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Policies", - "question_key": "policies", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Credit appraisal mechanism", - "question_key": "credit_appraisal", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Technology and usage for acquisition and credit", - "question_key": "technology_credit", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": " Collection policy and mechanism -Collection efficiency trends in last 12 months (CC/CD, TC/CD,TC/TD) any deviation to be discussed in detail", - "question_key": "collection_policy", - "type": "7", - "field_width": "100", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": " Provisioning policy", - "question_key": "provisioning_policy", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Restructuring policy", - "question_key": "restructuring_policy", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Covid impact and policy", - "question_key": "covid_policy", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/5.json deleted file mode 100644 index 7f917e2e4..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/5.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "section_id": "25", - "section_name": "Portfolio Health", - "onsubmit": null, - "questions": [ - { - "question": "Par own book /Par off book -d", - "question_key": "par_book", - "type": "7", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "NPAs/Provisioning & resolution strategy", - "question_key": "provisioning_resolution", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Strategy to manage flow as well as post moratorium stress", - "question_key": "post_morotorium", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Strategy for non-paying customers", - "question_key": " non-paying_customers", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": " PAR (Productwise)/Net NPAs/Write offs Movement of Bucket ,PAR 90+", - "question_key": "par", - "type": "7", - "field_width": "100", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/6.json deleted file mode 100644 index 859177cb1..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/6.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "section_id": "26", - "section_name": "Total Overall Debt/Equity Profile", - "onsubmit": null, - "questions": [ - { - "question": "Types of debt structures and major debt providers", - "question_key": "dept_structures", - "type": "7", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Future plan for additional funding ", - "question_key": "future_plan", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Funding received during covid times including liquidity support from DFIs & Banks", - "question_key": "dfi_banks", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Fresh sanctions lined up in the present month and coming quarters", - "question_key": "fresh_sanctions", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "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/SMC_CREDIT_TEMPLATES/NBFCMFI/7.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/7.json deleted file mode 100644 index f4a9e42e4..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/7.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "section_id": "27", - "section_name": "Financial analysis", - "onsubmit": null, - "questions": [ - { - "question": "CAR (Tier-1)/CAR (Tier-1 + Tier-2)", - "question_key": "car_type", - "type": "1", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Leverage (D/E) (excluding Managed)", - "question_key": "leverage", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "ALM", - "question_key": "alm", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Opex", - "question_key": "opex", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "NIM (%) - as per Audited B/S", - "question_key": "nim", - "type": "1", - "field_width": "100", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Opex (% of Avg. Book)", - "question_key": "opex_average", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": " Opex (% of NII)", - "question_key": "opex_nii", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Return on Assets", - "question_key": "return_asset", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Return on Equity", - "question_key": "return_equity", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": " IRR (Derived)", - "question_key": "irr", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Avg. Borrowing Cost (Derived)", - "question_key": "avg_borrowing", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Spread (Derived)", - "question_key": "spread", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/8.json deleted file mode 100644 index 53b121905..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/8.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "section_id": "28", - "section_name": "Overall Plan of Action", - "onsubmit": null, - "questions": [ - { - "question": "Future plan on expansion geographies wise , products and regions . Equity and debt structuring as well as dilution in future. Target book for the present quarter and YOY projections ", - "question_key": "future_plan", - "type": "7", - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/9.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/9.json deleted file mode 100644 index f9eb92479..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/NBFCMFI/9.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "section_id": "29", - "section_name": "Validation Points vide Systems and Books at HQ and Branches", - "onsubmit": null, - "questions": [ - { - "question": "Stock to be validated from system", - "question_key": "stock_validated", - "type": "1", - "field_width": "45", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Collateral coverage for existing borrowing ( System Mapping to be checked)", - "question_key": "collateral_coverage", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Collection efficiency and system flagging to be counterchecked and same with PAR cuts", - "question_key": "collection_efficiency", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Sample check of loan dox, application form along with PAN for Active loan accounts", - "question_key": "loan_dox", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Disbursement no to be checked from system", - "question_key": "disbursement", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Top 20 exposure to be checked with data submitted", - "question_key": "top20_exposure", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Sample Sanction letters to validate collateral cover stipulated for existing Borrowing", - "question_key": "sanction_letters", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Provisioning /Write-off/NPA flagging to be counter checked", - "question_key": "provisioning", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Restructuring of Loans in system on sample basis", - "question_key": "restructuring_loan", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "EMI cycle date in system", - "question_key": "emi_date", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Cash and Bank ledger to be checked", - "question_key": "cash_checked", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Free FD details to be taken and validated from Accounting system", - "question_key": "fd_details", - "type": "7", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - }, - { - "question": "Application/Systems used for Boarding /Loan management", - "question_key": "loan_management", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/1.json deleted file mode 100644 index ec14e8c47..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/1.json +++ /dev/null @@ -1,217 +0,0 @@ -{ - "section_id":"1", - "section_name":"Borrower & Guarantor Details", - "onsubmit":null, - "questions":[ - { - "question":[{ - "question":"Borrower Type", - "question_key":"borrower_type", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Name", - "question_key":"borrower_name", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Entity Type", - "question_key":"entity_type", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Met / Not Met", - "question_key":"borrower_met", - "type":"2", - "field_width":"20", - - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - ] - }, - { - "purpose":"question_label", - "expression":"(function () {let label= '';(String('entity_type').toLowerCase().includes('individual')) ? label= 'Number of years the borrower has been in this business.' : label = 'Number of years for which the business has been running';return label}())", - "value_keys":[ - "entity_type" - ], - "insert_control":"numbers_of_years_business_running" - }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Designation", - "question_key":"designation", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship to", - "question_key":"relationship_to", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - - { - "question":"Age", - "question_key":"borrower_age", - "type":"1", - "field_type":"num", - "field_width":"50", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Numbers of years for which the business has been running", - "question_key":"numbers_of_years_business_running", - "type":"1", - "field_width":"45", - "field_type":"num", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ], - "is_repeatable":"1", - "group_key":"borrower_details", - "group_title":"Borrower 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 deleted file mode 100644 index 9ee4a9b08..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/10.json +++ /dev/null @@ -1,721 +0,0 @@ -{ - "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('financial_info_available').toLowerCase() == 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":"Name of the Company", - "question_key":"company_name", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getCompanyListForSMCList", - "api_method":"POST", - "params":{"records":{ - "pd_id":"VAR_PD_ID", - "random_string":"VAR_RANDOM_STRING" - }}, - "fields":[ - "company_id", - "borrower_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Company Name Required", - "value":null - } - ] - }, - { - "question": "Number of financial years for which we have financials", - "question_key": "no_of_financial_years", - "place_holder": "Enter the number", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "num", - "validations": [ - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]*", - "message": "Numeric only ", - "value": null - } - ] - } - ] - }] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - - ] - }, - - { - "question_key": "common_remarks", - "question": "Remarks", - "place_holder": "Enter the text", - "type": "7", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json deleted file mode 100644 index d29c657c2..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/11.json +++ /dev/null @@ -1,406 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/WCTL/12.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/12.json deleted file mode 100644 index f77687cfd..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/12.json +++ /dev/null @@ -1,406 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/WCTL/13.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/13.json deleted file mode 100644 index 2fee665bb..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/13.json +++ /dev/null @@ -1,355 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/WCTL/14.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/14.json deleted file mode 100644 index 7fa5d20ca..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/14.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "section_id":"14", - "section_name":"Future Plans & Business Environments", - "onsubmit":null, - "questions":[ - { - "question":"USP of the business- How is applicant's business different from others in the same line of business", - "question_key":"usp_of_business", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Future plans for business expansion", - "question_key":"future_business_expansion", - "type":"1", - "field_type":"string", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Key competitors", - "question_key":"key_competitors", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Sucession plan- who will look after the business after applicant retire/are unable to run business due to any reason", - "question_key":"sucession_plan", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Brief of other group concerns/Business run by the applicants", - "question_key":"other_group_business_applicants", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "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/SMC_CREDIT_TEMPLATES/WCTL/15.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/15.json deleted file mode 100644 index fe79dac51..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/15.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "section_id": "15", - "section_name": "Existing Loan Obligations", - "onsubmit": null, - "questions": [ - { - "question": [ - { - "question": "Loan type", - "question_key": "loan_type", - "type": "1", - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Loan amount", - "question_key": "loan_amount", - "type": "1", - "field_type": "num", - "field_width": "100", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Lender name", - "question_key": "lender_name", - "type": "1", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Loan taken by", - "question_key": "loan_taken_by", - "type": "1", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Instalment Amount", - "question_key": "instalment_amount", - "type": "1", - "field_width": "100", - "field_type": "numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Installment frequency", - "question_key": "instalment_frequency", - "type": "3", - "field_width": "100", - "api_properties": null, - "answers": [ - { - "answer_id": "Daily", - "answer": "Daily" - }, - { - "answer_id": "Every 12 days", - "answer": "Every 12 days" - }, - { - "answer_id": "Every 15 days", - "answer": "Every 15 days" - }, - { - "answer_id": "Monthly", - "answer": "Monthly" - }, - { - "answer_id": "Every 3 months", - "answer": "Every 3 months" - }, - { - "answer_id": "Every 6 months", - "answer": "Every 6 months" - }, - { - "answer_id": "Yearly", - "answer": "Yearly" - } - ], - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Original tenure in months", - "question_key": "original_tenure_months", - "type": "1", - "field_width": "100", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Current balance tenure in months", - "question_key": "current_tenure_months", - "type": "1", - "field_type": "num", - "field_width": "100", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Elapsed tenure in mths", - "question_key": "elapsed_tenure_months", - "type": "1", - "field_width": "45", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - } - ], - "is_repeatable": "1", - "group_title": "Existing Loan Obligations", - "group_key": "existing_loan_details" - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/16.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/16.json deleted file mode 100644 index da9cc1f3b..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/16.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "section_id":"16", - "section_name":"Family Members Involved in Business", - "onsubmit":null, - "questions":[ - { - "question":"Is any other family member involved in the business", - "question_key":"is_family_details_available", - "type":"2", - "field_width":"45", - "api_properties":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_family_details_available", - "expression":"(String('is_family_details_available') == String('Yes'))", - "value_keys":[ - "is_family_details_available" - ], - "questions":[ - { - "question":[ - { - "question":"Name", - "question_key":"member_name", - "place_holder":"Enter text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Name Required", - "value":null - }, - { - "name":"pattern", - "isactive":"1", - "validator":"[A-Za-z ]*", - "message":"alphabets only ", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Relation to Individual Stakeholders", - "question_key":"stakeholder_relation", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Relation to Company / Firm", - "question_key":"company_relation", - "place_holder":"Enter text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMPANYRELATIONSHIPS" - }, - "fields":[ - "company_relationship_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Started Business (Yes / No)", - "question_key":"started_biz", - "place_holder":"Enter text", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - - ], - "is_repeatable":"1", - "group_title":"Family Members Involved in Business", - "group_key":"family_details" - } - ]}] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/17.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/17.json deleted file mode 100644 index 9b13eaabd..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/17.json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "section_id":"17", - "section_name":"Neighbourhood Details", - "onsubmit":[], - "questions":[ - { - "question":[ - { - "question":"Neighbour name", - "question_key":"neighbourhood_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":"Do you know about the applicant or their business?", - "question_key":"do_know", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"As per you how long has this business been in operation", - "question_key":"know_business_operation", - "place_holder":"Enter the text", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer":"Know", - "answer_id":"yes" - }, - { - "answer":"Do not know", - "answer_id":"no" - } - ], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ], - "onchange_properties": [ { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"know_business_operation", - "expression":"(String('know_business_operation') === String('yes'))", - "value_keys":[ - "know_business_operation" - ], - "questions":[ - { - "question":"Years", - "question_key":"how_long_do_know_in_year", - "type":"1", - "field_width":"100", - "field_type":"num", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"know_business_operation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } , - { - "question":"Months", - "question_key":"how_long_do_know_in_month", - "type":"1", - "field_type":"num", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"know_business_operation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - - ] } ] }] - }, - { - "question":"Who is the owner of organisation?", - "question_key":"know_organisation_owner", - "type":"2", - "api_properties":null, - "answers":[ - { - "answer":"Know", - "answer_id":"yes" - }, - { - "answer":"Do not know", - "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":"know_organisation_owner", - "expression":"(String('know_organisation_owner') === String('yes'))", - "value_keys":[ - "know_organisation_owner" - ], - "questions":[ - { - "question":"Who is the owner of the organisation", - "question_key":"organisation_owner", - "type":"4", - "field_width":"100", - "field_type":"num", - "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":"know_organisation_owner", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - - ] } ] }] - } - - ], - "is_repeatable":"1", - "group_title":"Neighbourhood Details", - "group_key":"neighbourhood_list" - }, - { - "question":"Status of the neighbour check as per PD officer", - "question_key":"neighbourhood_status", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer":"Select", - "answer_id":"" - }, - { - "answer":"Positive", - "answer_id":"Positive" - }, - { - "answer":"Negative", - "answer_id":"Negative" - }, - { - "answer":"Could Not Verify", - "answer_id":"Could Not Verify" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Remarks", - "question_key":"neighbourhood_remarks", - "type":"7", - "placeholder":"Enter the remarks", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/18.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/18.json deleted file mode 100644 index e09078b6b..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/18.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "section_id":"18", - "section_name":"Credit manager specific queries", - "onsubmit":[], - "questions":[ - { - "question":[ - { - "question":"Question", - "question_key":"question", - "place_holder":"Enter text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - ] - }, - { - "question":"Answer", - "question_key":"answer", - "place_holder":"Enter the answer here", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - ] - } - ], - "is_repeatable":"1", - "group_title":"Query", - "group_key":"cm_queries" - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/19.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/19.json deleted file mode 100644 index 0ede0b842..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/19.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "section_id":"19", - "section_name":"Final remarks", - "onsubmit":null, - "questions":[ - { - "question":"Customer Behaviour", - "question_key":"customer_behaviour", - "type":"3", - "field_width":"45", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"CUSTOMERBEHAVIOUR" - }, - "fields":[ - "customer_behaviour_id", - "description" - ] - }, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"customer_behaviour", - "expression":"(String('customer_behaviour') == String('1'))", - "value_keys":[ - "customer_behaviour" - ], - "questions":[ - { "question":"Specify Customer behaviour", - "question_key":"customer_behaviour_other", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"customer_behaviour", - "answers":null, - "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 the location of the business suited to the nature of the business provided?", - "question_key":"business_location_suited", - "type":"3", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":[ - { - "answer":"Well Suited", - "answer_id":"Well Suited" - }, - { - "answer":"Fairly suited", - "answer_id":"Fairly suited" - }, - { - "answer":"Not suited", - "answer_id":"Not suited" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"PD officer recommendation (Positive/negative/ refer to credit)", - "question_key":"pd_officer_recommendation", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDOFFICERRECOMMENDATIONS" - }, - "fields":[ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"pd_officer_recommendation", - "expression":"(String('pd_officer_recommendation') == String('1'))", - "value_keys":[ - "pd_officer_recommendation" - ], - "questions":[ - { "question":"Specify PD Officer Recommendation", - "question_key":"pd_officer_recommendation_other", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"pd_officer_recommendation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } ] } , - { - "insert_index":"pd_officer_recommendation", - "expression":"(String('pd_officer_recommendation') != String('1')) && (String('pdofficer_recommendation') != String(''))", - "value_keys":[ - "pd_officer_recommendation" - ], - "questions":[ - { - "question":[{ - "question":"Reasons for marking PD status as Positive/negative/ refer to credit", - "question_key":"reason", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"pd_officer_recommendation", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - ], - "is_repeatable":"1", - "group_title":"Remarks", - "group_key":"pd_officer_recommendation_remarks" - } ] } - - ] }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Common Remarks", - "question_key":"final_form_remarks", - "place_holder":"Enter the remarks here", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - ] - } - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/2.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/2.json deleted file mode 100644 index 4927a8948..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/2.json +++ /dev/null @@ -1,303 +0,0 @@ -{ - "section_id":"2", - "section_name":"Address details", - "onsubmit":null, - "questions":[ - { - "question":"Address at which PD was initiated", - "question_key":"initiated_address", - "type":"7", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Is this the address where PD is done ?", - "question_key":"is_pd_done_on_initiated_address", - "type":"2", - "field_width":"45", - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_pd_done_on_initiated_address", - "expression":"(String('is_pd_done_on_initiated_address') == String('No'))", - "value_keys":[ - "is_pd_done_on_initiated_address" - ], - "questions":[ - { - "question":"Enter actual PD address", - "question_key":"alternative_address", - "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":"is_pd_done_on_initiated_address", - "answers":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field required", - "value":null - } - ] - } - ] - } - ] - }], - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Type of PD address", - "question_key":"address_type", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ADDRESSTYPE" - }, - "fields":[ - "address_type_id", - "address_type" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"PD locality", - "question_key":"pd_locality", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"LOCALITY" - }, - "fields":[ - "locality_id", - "locality_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Approach to PD location*", - "question_key":"pd_location", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDLOCATIONAPPROACH" - }, - "fields":[ - "pd_location_approach_id", - "description" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Comment on locality", - "question_key":"comment_locality", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMMENTSONLOCALITY" - }, - "fields":[ - "comments_on_locality_id", - "rating" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Estimated Area of the business", - "question_key":"business_estimated_area", - "type":"1", - "field_width":"45", - "field_type":"num", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"UOM", - "question_key":"uom", - "type":"8", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer":"Acres", - "answer_id":"Acres" - }, - { - "answer":"Hectares", - "answer_id":"Hectares" - }, - { - "answer":"Square Feet", - "answer_id":"Square Feet" - }, - { - "answer":"Square Meters", - "answer_id":"Square Meters" - }, - { - "answer":"Square Yards", - "answer_id":"Square Yards" - } - ], - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"uom", - "expression":"(String('uom') == String('1'))", - "value_keys":[ - "uom" - ], - "questions":[ - { - "question":"Specify the UOM", - "question_key":"uom_specify", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"uom", - "answers":null, - "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 - } - ] - } - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/3.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/3.json deleted file mode 100644 index 02954cb0b..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/3.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "section_id":"2", - "section_name":"Loan details", - "onsubmit":null, - "questions":[ - { - "question":"Loan amount applied for", - "question_key":"loan_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - { - "question":"Remarks on source of funds for balance amount required", - "question_key":"remarks_fund_source_balance", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"total_fund_requirement", - "answers":null, - "validations":[ - - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Loan Tenure (in months)", - "question_key":"loan_tenure", - "type":"1", - "field_type":"num", - "field_width":"100", - "onchange_properties": null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"End use of loan", - "question_key":"end_use", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Total fund requirement", - "question_key":"total_fund_requirement", - "type":"1", - "field_type":"numtoword", - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties": [ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - { - "question":"Remarks on source of funds for balance amount required", - "question_key":"remarks_fund_source_balance", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"total_fund_requirement", - "answers":null, - "validations":[ - - ] - } - ] - }] - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question_key":"common_remarks", - "question":"Remarks", - "place_holder":"Enter the text", - "type":"7", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - } - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json deleted file mode 100644 index 2cc6fad2c..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/4.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "section_id":"4", - "section_name":"General Business Information", - "onsubmit":null, - "questions":[ - { - "question":[ - { - "question":"Name of the Company", - "question_key":"company_name", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getCompanyListForSMCList", - "api_method":"POST", - "params":{"records":{ - "pd_id":"VAR_PD_ID", - "random_string":"VAR_RANDOM_STRING" - }}, - "fields":[ - "company_id", - "borrower_name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Company Name Required", - "value":null - } - ] - }, - { - "question":"Type of Business Entity", - "question_key":"business_entity_type", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Type of Business activities", - "question_key":"select_business_activity_type", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Area of Sale", - "question_key":"area_of_sale", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[{ - "answer":"Within India", - "answer_id":"Within India" - }, - { - "answer":"Export", - "answer_id":"Export" - }, - { - "answer":"Both", - "answer_id":"Both" - }], - - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Is the business seasonal (Yes / No)", - "question_key":"seasonality", - "type":"2", - "field_width":"45", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - },{ - "answer":"No", - "answer_id":"No" - }], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"seasonality", - "expression":"(String('seasonality') == String('Yes'))", - "value_keys":[ - "seasonality" - ], - "questions":[ - { - "question_key":"low_sale_month", - "question":"Months in which sales/services is low?", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "is_subfield":"1", - "parent_question_key":"seasonality", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question_key":"low_sale_month_reason", - "question":"Reason for Months in which sales/services is low?", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "is_subfield":"1", - "field_width":"45", - "parent_question_key":"seasonality", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - ] - } - ] - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ], - - "is_repeatable":"1", - "group_title":"Details of General Business Information", - "group_key":"business_entity" - } - ] - } - \ 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 deleted file mode 100644 index 42c543b60..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/5.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/WCTL/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/6.json deleted file mode 100644 index 0ddf792a8..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/6.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/WCTL/7.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/7.json deleted file mode 100644 index 129263e29..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/7.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "section_id":"7", - "section_name":"Employee Strength", - "onsubmit":[], - "questions":[ - { - "question":"Permanent Employees", - "sub_title":"No of Employees (As per person met)", - "question_key":"permanant_employees_person_met", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Temporary Employees", - "question_key":"temporary_employees_person_met", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Permanent Employees", - "sub_title":"No of Employees (Sighted by Credit Manager)", - "question_key":"permanant_employees_cm", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Temporary Employees", - "question_key":"temporary_employees_cm", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"num", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Permanent Employees", - "sub_title":"Approximate Salary Paid (Rs Per Month)", - "question_key":"permanant_employees_salary", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - }, - { - "question":"Temporary Employees", - "question_key":"temporary_employees_salary", - "place_holder":"Enter the number", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"numtoword", - "field_width":"45", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required", - "value":null - } - ] - } - - ] - - } \ No newline at end of file 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 deleted file mode 100644 index b0d3cb467..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/8.json +++ /dev/null @@ -1,697 +0,0 @@ -{ - "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 diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/9.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/9.json deleted file mode 100644 index f47f4bab0..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/WCTL/9.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "section_id": "9", - "section_name": "Business and Personal Banking Details", - "onsubmit": [], - "questions": [ - { - "question": [ - { - "question": "Business Account holder name", - "question_key": "applicant_name", - "type": "1", - "api_properties": { - "purpose": "answer_options_local", - "master_name": "pd_applicants", - "fields": [ - "pd_co_applicant_id", - "applicant_name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Required", - "value": null - } - ] - }, - { - "question": "Bank Name", - "question_key": "bank_name", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Business Account type", - "question_key": "account_type", - "type": "1", - "field_width": "45", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "ACCOUNTTYPE" - }, - "fields": [ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "OD/CC Limit", - "question_key": "cc_limit", - "type": "1", - "field_width": "45", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - } - ], - "is_repeatable": "1", - "group_title": "Banking Details", - "group_key": "banking_details" - } - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/1.json deleted file mode 100644 index a2857c1ff..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/1.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "section_id":"1", - "section_name":"Borrower & Guarantor Details", - "onsubmit":null, - "questions":[ - { - "question":[{ - "question":"Borrower Type", - "question_key":"borrower_type", - "type":"1", - "field_width":"100", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "value_keys":[ - "borrower_type" - ], - "questions":[ - { - "question":"Numbers of years for which the business has been running", - "question_key":"numbers_of_years_business_running", - "type":"1", - "field_width":"45", - "field_type":"num", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - ] - }, - { - "purpose":"validations", - "validations":[{ - "value_keys":["borrower_type"], - "value":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "validation_to":"borrower_age", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Name", - "question_key":"borrower_name", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "questions_level_two":[ - { - "question":"Mobile Number", - "question_key":"mobile_no", - "type":"1", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"pattern", - "isactive":"1", - "validator":"[0-9]{10}", - "message":"Mobile number should be 10 digit", - "value":null - } - ] - } - ], - "is_repeatable":"2", - "group_key":"mobile_numbers", - "group_title":"Mobile Number" - }, - { - "question":"Entity Type", - "question_key":"entity_type", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Age", - "question_key":"borrower_age", - "type":"1", - "field_type":"num", - "field_width":"50", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ]}, - { - "insert_index":"relationship", - "expression":"(String('entity_type').toLowerCase() == String('individual'))", - "value_keys":[ - "entity_type" - ], - "questions":[ - { - "question":"Met / Not Met", - "question_key":"borrower_met", - "type":"2", - - "field_width":"20", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":null, - "is_subfield":"1", - "parent_question_key":"entity_type", - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ] - } - - ] - }, - { - "purpose":"question_label", - "expression":"(function () {let label= '';(String('entity_type').toLowerCase().includes('individual')) ? label= 'Number of years the borrower has been in this business.' : label = 'Number of years for which the business has been running';return label}())", - "value_keys":[ - "entity_type" - ], - "insert_control":"numbers_of_years_business_running" - }, - { - "purpose":"validations", - "validations":[{ - "value_keys":["borrower_type"], - "value":"(String('borrower_type').toLowerCase() != String('guarantor'))", - "validation_to":"borrower_age", - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Required" - }]} - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Designation", - "question_key":"designation", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship to", - "question_key":"relationship_to", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Relationship", - "question_key":"relationship", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - - - - ], - "is_repeatable":"1", - "group_key":"borrower_details", - "group_title":"Borrower Details"}, - { - "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":[ - ] - } - ] -} diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/10.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/10.json deleted file mode 100644 index 80140a283..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/10.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "section_id":"3", - "section_name":"Loan details", - "onsubmit":null, - "questions":[ - { - "question":"Loan amount applied for ?", - "question_key":"loan_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - { - "question":"Remarks on source of funds for balance amount required", - "question_key":"remarks_fund_source_balance", - "place_holder":"", - "field_type":"string", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"total_fund_requirement", - "answers":null, - "validations":[ - - ] - } - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Loan Tenure applied for ?", - "question_key":"loan_tenure", - "type":"1", - "field_type":"num", - "field_width":"25", - "onchange_properties": null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Sub Product", - "question_key":"sub_product", - "type":"3", - "field_width":"65", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"SUBPRODUCTS" - }, - "fields":[ - "subproduct_id", - "name" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"What is the end use", - "question_key":"end_use", - "type":"3", - "field_width":"65", - "api_properties":{ - "api":"getEndUseOfLoan", - "api_method":"POST", - "params":{ - "master_name":null - }, - "fields":["enduse_of_loan_id","enduse_of_loan"] - }, - - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Is there a balance transfer?", - "question_key":"balance_transfer", - "type":"3", - "field_width":"65", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"EMI Amount comfortable paying", - "question_key":"emi_amount", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "answers":null, - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"total_fund_requirement", - "expression":" typeof(total_fund_requirement) == 'number' && (Number(total_fund_requirement) < Number(loan_amount))", - "value_keys":[ - "total_fund_requirement","loan_amount" - ], - "questions":[ - - ] - }] - } - ], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Type of Property", - "question_key":"is_transfer", - "type":"3", - "sub_title":"Details of Property being Mortgaged", - "field_width":"55", - "api_properties":null, - "answers":[ - { - "answer_id":"Chawl", - "answer":"Chawl" - },{ - "answer_id":"Flat", - "answer":"Flat" - },{ - "answer_id":"Floor", - "answer":"Floor" - }, - { - "answer_id":"Independent House", - "answer":"Independent House" - }, { - "answer_id":"Row House", - "answer":"Row House" - } - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Specify Type of Property*", - "question_key":"Specify_Type", - "type":"1", - "field_width":"55", - "api_properties":null, - "answers":[ - { - "answer_id":"other", - "answer":"other" - } - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Name of Owner", - "question_key":"owner_name", - "type":"4", - "field_width":"45", - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Status of Construction", - "question_key":"is_transfer", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"STATUSOFCONSTRUCTION" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - - { - "question":"Estimated market value as per customer", - "question_key":"emv_per_customer", - "place_holder":"", - "field_type":"numtoword", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question":"Address of Property*", - "question_key":"Address_of_Property", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":null, - "validations":[ - - ] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - } - - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/12.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/12.json deleted file mode 100644 index ef9f27ef7..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/12.json +++ /dev/null @@ -1,764 +0,0 @@ -{ - "section_id": "4", - "section_name": "Employement Information", - "onsubmit": null, - "questions": [ - - - - { - "question": "Name of Employer*", - "question_key": "Name_of_Employer", - "type": "3", - "disable":false, - "field_width": "35", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Company profile in brief", - "question_key": "Company_profile_in_brief", - "type": "7", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Since how long working with this employer?", - "question_key": "Since_how_long_working_with_this_employer?", - "field_type":"null", - "sub_title":"Since how long working with this employer?", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question": "Year*", - "question_key": "Year", - "type": "1", - "field_type":"num", - - "disable":false, - "field_width": "25", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Month", - "question_key": "Month", - "type": "1", - "disable":false, - "field_type":"num", - "field_width": "25", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question": "Total Work Experience", - "question_key": "Total_Work_Experience", - "type": "1", - "disable":false, - "field_width": "25", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Field Required", - "value": null - } - ] - }, - { - "question":"Was the employee met?", - "question_key":"Was_the_employee_met", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Was_the_employee_met", - "expression":"(String('Was_the_employee_met') == String('Yes'))", - "value_keys":[ - "Was_the_employee_met" - ], - "questions":[ - { - "question":"Name of the Person met", - "question_key":"Name_of_the_Person_met", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":null, - "validations":[ - ] - },{ - "question":"Designation of Person met", - "question_key":"Designation_of_Person_met", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":null, - "validations":[ - ] - },{ - "question":"Photograph of 'Photo ID card of the Employee/Manager'", - "question_key":"Photograph", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":null, - "validations":[ - ] - },{ - "question":"Employer's/Manager's Company ID card / Visiting card provided?", - "question_key":"Visiting_card_provided", - "place_holder":"", - "field_type":"text", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Was_the_employee_met", - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary Amount confirmed?", - "question_key":"Salary_Amount_confirmed", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Salary_Amount_confirmed", - "expression":"(String('Salary_Amount_confirmed') == String('No'))", - "value_keys":[ - "Salary_Amount_confirmed" - ], - "questions":[ - { - "question":"why salary amount was not confirmed", - "question_key":"why_salary_amount_was_not_confirmed", - "place_holder":"why salary amount was not confirmed", - "field_type":"text", - "type":"7", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Salary_Amount_confirmed", - "answers":null, - "validations":[ - ] - - }] - }] - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Attendance register seen?", - "question_key":"Attendance_register_seen", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary register seen?", - "question_key":"Salary_register_seen", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Cash Voucher", - "question_key":"Cash_Voucher", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary Certificate", - "question_key":"Salary_Certificate", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Salary Slip", - "question_key":"Salary_Slip", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"yes" - }, - { - "answer_id":"No", - "answer":"no" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Others please specify", - "question_key":"Others_please_specify", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Others_please_specify", - "expression":"(String('Others_please_specify') == String('Yes'))", - "value_keys":[ - "Others_please_specify" - ], - "questions":[ - { - "question":"Specify the Document", - "question_key":"Specify_the_Document", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"Others_please_specify", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Others_please_specify", - "expression":"(String('Others_please_specify') == String('No'))", - "value_keys":[ - "Others_please_specify" - ], - "questions":[ - { - "question":"Why Documents are not available?", - "question_key":"Why_Documents_are_not_available", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Others_please_specify", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - - { - "question":"Mode of getting salary", - "question_key":"Mode_of_getting_salary", - "type":"3", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer":"Bank Transfer", - "answer_id":"Bank_Transfer" - }, - { - "answer":"Paid in Cash", - "answer_id":"Paid_in_Cash" - }, - { - "answer":"Both Bank Transfer & Cash", - "answer_id":"Both_Bank_Transfer_and _Cash" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question": "Salary Details", - "question_key": "Salary_Details", - "field_type":"null", - "sub_title":"Salary Details", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question": "Date of Salary", - "question_key": "Date_of_Salary", - "field_type":"null", - "sub_title":"Date of Salary", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question":"From", - "question_key":"from", - "type":"3", - - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer":"Bank Transfer", - "answer_id":"Bank_Transfer" - }, - { - "answer":"Paid in Cash", - "answer_id":"Paid_in_Cash" - }, - { - "answer":"Both Bank Transfer & Cash", - "answer_id":"Both_Bank_Transfer_and _Cash" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"To", - "question_key":"to", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer":"Bank Transfer", - "answer_id":"Bank_Transfer" - }, - { - "answer":"Paid in Cash", - "answer_id":"Paid_in_Cash" - }, - { - "answer":"Both Bank Transfer & Cash", - "answer_id":"Both_Bank_Transfer_and _Cash" - } - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Has salary been paid regularly in last 3 months", - "question_key":"Has_salary_been_paid_regularly_in_last_3_months", - "type":"3", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - } - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Gross Monthly Salary", - "question_key":"Gross_Monthly_Salary", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "api_properties":null, - "answers":[ - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Net Monthly Salary", - "question_key":"Net_Monthly_Salary", - "type":"1", - "field_width":"65", - "field_type":"numtoword", - "api_properties":null, - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question":"Bounce or incentive*", - "question_key":"Bounce_or_incentive", - "type":"1", - "field_type":"numtoword", - "field_width":"65", - "api_properties":null, - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question": "Bonus Frequency", - "question_key": "Bonus_Frequency", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Daily", - "answer_id": "Daily" - }, - { - "answer": "Every 12 days", - "answer_id": "Every_12_days" - }, - { - "answer": " Every 15 days", - "answer_id": " Every_15_days" - }, - { - "answer": " Every 3 months", - "answer_id": " Every_3_months" - }, - { - "answer": " Every 6 month", - "answer_id": " Every_6_month" - }, - { - "answer": " Monthly", - "answer_id": "Monthly" - }, - { - "answer": " Yearly", - "answer_id": "Yearly" - } - ], - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - }, - { - "question": "Type of Bonus", - "question_key": "Type_of_Bonus", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": [ - { - "answer": "Fixed", - "answer_id": "Fixed" - }, - { - "answer": "Variable depending on performance", - "answer_id": "Variable_depending_on_performance" - }, - { - "answer": " Others", - "answer_id": "Others" - } - - ], - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - },{ - "question":"ID card issued by the Company seen?*", - "question_key":"ID_card_issued_by_the_Company_seen", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"ID_card_issued_by_the_Company_seen", - "expression":"(String('ID_card_issued_by_the_Company_seen') == String('No'))", - "value_keys":[ - "ID_card_issued_by_the_Company_seen" - ], - "questions":[ - { - "question_key": "common_remarks", - "question": "Remarks", - "place_holder": "Enter the text", - "type": "7", - "disable":false, - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - }] - }] - }], - "is_repeatable":null, - "validations":[ - - ] - } - - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/13.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/13.json deleted file mode 100644 index 4fbfbe025..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/13.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "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/SMC_CREDIT_TEMPLATES/all/19.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/19.json deleted file mode 100644 index 78f61e139..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/19.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "section_id": "10", - "section_name": "Neighbourhood / Reference Check", - "onsubmit": [ - - ], - "questions": [ - { - "question":[ - { - "question_key": "Neighbour_Name", - "question": "Neighbour Name", - "place_holder": "Enter the text", - "type": "1", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - }, { - "question_key": "Do_you_known_about_the_applicants_or_their_business", - "question": "Do you known about the applicants or their business?", - "place_holder": "Enter the text", - "type": "3", - "api_properties": null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Do_you_known_about_the_applicants_or_their_business", - "expression":"(String('Do_you_known_about_the_applicants_or_their_business') == String('Yes'))", - "value_keys":[ - "Do_you_known_about_the_applicants_or_their_business" - ], - "questions":[ - { - "question_key": "As_per_you_how_long_has_this_business_been_in_operation", - "question": "As per you how long has this business been in operation?", - "place_holder": "Enter the text", - "type": "5", - "api_properties": null, - "answers":[ - { - "answer_id":"Do_not_know", - "answer":"Do not know" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"As_per_you_how_long_has_this_business_been_in_operation", - "expression":"(String('As_per_you_how_long_has_this_business_been_in_operation') != String('Do_not_know'))", - "value_keys":[ - "As_per_you_how_long_has_this_business_been_in_operation" - ], - "questions":[ - { "question":"Year", - "question_key":"Year", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"As_per_you_how_long_has_this_business_been_in_operation", - "answers":null, - "validations":[ - - ] - }, - { "question":"Month", - "question_key":"YeMonthar", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"As_per_you_how_long_has_this_business_been_in_operation", - "answers":null, - "validations":[ - - ] - } ] } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "100", - "validations": [] - }, - { - "question_key": "Who_is_the_owner_of_the_organisation", - "question": "Who is the owner of the organisation?", - "place_holder": "Enter the text", - "type": "5", - "api_properties": null, - "answers":[ - { - "answer_id":"Do_not_know", - "answer":"Do not know" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Who_is_the_owner_of_the_organisation", - "expression":"(String('Who_is_the_owner_of_the_organisation') != String('Do_not_know'))", - "value_keys":[ - "Who_is_the_owner_of_the_organisation" - ], - "questions":[ - { "question_key": "Who_is_the_owner_of_the_organisations", - "question": "Who is the owner of the organisation?", - "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":"Who_is_the_owner_of_the_organisation", - "answers":null, - "validations":[ - - ] - } - ] } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "100", - "validations": [] - } - ] - } ] }], - "is_repeatable": null, - "field_type": "string", - "field_width": "45", - "validations": [] - } - ], - "is_repeatable":"1", - "hidden_button":true, - "group_title":"Neighbourhood", - "group_key":"Neighbourhood" - }, - - { - "question_key": "Status of the check as per PD officer?", - "question": "Status of the check as per PD officer?", - "place_holder": "Enter the text", - "type": "3", - "api_properties": null, - "answers":[ - { - "answer_id":"Positive", - "answer":"Positive" - }, - { - "answer_id":"Negative", - "answer":"Negative" - }, { - "answer_id":"Could_not_verify", - "answer":"Could not verify" - } - ], - "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/all/20.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/20.json deleted file mode 100644 index 91a7eebc3..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/20.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "section_id":"12", - "section_name":"Final Remarks Details", - "onsubmit":null, - "questions":[ - { - "question":"Customer Behaviour", - "question_key":"Customer_Behaviour", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"CUSTOMERBEHAVIOUR" - }, - "fields":[ - "customer_behaviour_id", - "description" - ] - }, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, - { - "question":"Is the location of the business / profession suited to the nature of business / service provided?", - "question_key":"location_of_the_business", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - "answer":"Well Suited", - "answer_id":"Well Suited" - }, - { - "answer":"Fairly Suited", - "answer_id":"Fairly Suited" - },{ - "answer":"Not Suited", - "answer_id":"Not Suited" - }], - "onchange_properties":null, - "is_repeatable":null, - "sub_title":"Location", - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question":"Personal feedback or market intelligence on the case (if any)", - "question_key":"Personal_feedback_or_market_intelligence_on_the_case", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, - { - "question_key":"PD_Officers_Recommendation", - "question":"PD Officers Recommendation", - "place_holder":"Enter the text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDOFFICERRECOMMENDATIONS" - }, - "fields":[ - "pdofficer_recommendation_id", - "pdofficer_recommendation" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('2'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Positive", - "question_key":"Reasons_for_marking_PD_status_as_Positive", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Positive", - "group_title":"Reasons for marking PD status as Positive" - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('3'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Negative", - "question_key":"Reasons_for_marking_PD_status_as_Negative", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Negative", - "group_title":"Reasons for marking PD status as Negative" - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('1'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":"Specify PD Officers Recommendation", - "question_key":"Specify_PD_Officers_Recommendation", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"PD_Officers_Recommendation", - "expression":"(String('PD_Officers_Recommendation') == String('4'))", - "value_keys":[ - "PD_Officers_Recommendation" - ], - "questions":[ - { - "question":[ - { - "question":"Reasons for marking PD status as Refer to Credit", - "question_key":"Reasons_for_marking_PD_status_as_Refer_to_Credit", - "type":"1", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ], - "is_repeatable":"1", - "group_key":"Reasons_for_marking_PD_status_as_Refer_to_Credit", - "group_title":"Reasons for marking PD status as Refer to Credit" - }] - }] - - - -}], - "is_repeatable":null, - "field_type":"string", - "field_width":"45", - "validations":[ - ] - }, { - "question_key":"Any_additional_visit_(Godown/multiple_rental_properties)", - "question":"Any additional visit (Godown /multiple rental properties)", - "place_holder":"Enter the text", - "type":"12", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question":"Mode of Transport Used to Visit the PD address", - "question_key":"Mode_of_Transport_Used_to_Visit_the_PD_address", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Two_Wheeler", - "answer":"Two Wheeler" - },{ - "answer_id":"Four_Wheeler", - "answer":" Four Wheeler" - },{ - "answer_id":"Public_Transport", - "answer":"Public Transport" - }, - { - "answer_id":"Others", - "answer":"Others" - } - - ], - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Mode_of_Transport_Used_to_Visit_the_PD_address", - "expression":"(String('Mode_of_Transport_Used_to_Visit_the_PD_address') == String('Others'))", - "value_keys":[ - "Mode_of_Transport_Used_to_Visit_the_PD_address" - ], - "questions":[ - { - "question":"Specify the Mode of Transport Used to Visit the PD address", - "question_key":"Specify_the_Mode_of_Transport_Used_to_Visit_the_PD_address", - "type":"1", - "field_width":"45", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - - ] - } - ] - }] - - - - }], - "is_repeatable":null, - "validations":[ - - ] - } - - - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/24.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/24.json deleted file mode 100644 index 69fa506dd..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/24.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "section_id":"11", - "section_name":"Credit Manager Queries", - "onsubmit":null, - "questions":[ - { - "question":"Is your business adversely impacted by coronavirus outbreak ?", - "question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "type":"2", - "sub_title":"Covid 19 Questions", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "expression":"(String('Is_your_business_adversely_impacted_by_coronavirus_outbreak') == String('No'))", - "value_keys":[ - "Is_your_business_adversely_impacted_by_coronavirus_outbreak" - ], - "questions":[ - { "question":"Enter Your Remarks", - "question_key":"Enter_Your_Remarks", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "answers":null, - "validations":[ - - ] - } ] } ] }, - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "expression":"(String('Is_your_business_adversely_impacted_by_coronavirus_outbreak') == String('Yes'))", - "value_keys":[ - "Is_your_business_adversely_impacted_by_coronavirus_outbreak" - ], - "questions":[ - { "question":"Enter Your Remarks", - "question_key":"enter_Your_Remarks", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Is_your_business_adversely_impacted_by_coronavirus_outbreak", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Did you avail the loan moratorium facility on your existing loans which is extended by your bank or financial institution?", - "question_key":"your_bank_or_financial_institution", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - ], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Are you planning to avail/ or already availed any loan or any other term facility for your business or personal use?", - "question_key":"your_business_or_personal_use", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"your_business_or_personal_use", - "expression":"(String('your_business_or_personal_use') == String('Yes'))", - "value_keys":[ - "your_business_or_personal_use" - ], - "questions":[ - { "question":"How much is your sales/revenue from April till date?", - "question_key":"sales/revenue_April_till_date", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - }, { - "question":"Please specify amount,lender etc", - "question_key":"Please_specify_amount_lender_etc", - "type":"7", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"your_business_or_personal_use", - "expression":"(String('your_business_or_personal_use') == String('No'))", - "value_keys":[ - "your_business_or_personal_use" - ], - "questions":[ - { "question":"How much is your sales/revenue from April till date?", - "question_key":"How_much_is_your_sales/revenue_from_April_till_date", - "type":"1", - "field_width":"100", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":null, - "validations":[ - - ] - } - - - - ] - } - ] - }], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - },{ - "question":"Is turnover mentioned above (sales/revenue from April till date) validated?", - "question_key":"sales/revenue_from_April_till_date_validated", - "type":"2", - "field_width":"100", - "api_properties":null, - "onchange_properties":[ - - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"sales/revenue_from_April_till_date_validated", - "expression":"(String('sales/revenue_from_April_till_date_validated') == String('Yes'))", - "value_keys":[ - "sales/revenue_from_April_till_date_validated" - ], - "questions":[ - { "question":"Choose any ", - "question_key":"Choose any", - "type":"3", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"your_business_or_personal_use", - "answers":[ - { - "answer_id":"Bills", - "answer":"Bills" - }, - { - "answer_id":"Gst_returns", - "answer":"Gst returns" - }, - { - "answer_id":"records_shown", - "answer":"records shown" - } - ], - "validations":[ - - ] - } - - - - ] - } - ] - } ], - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"Yes" - }, - { - "answer":"No", - "answer_id":"No" - }], - "validations":[ - - ] - } - - - - ] - } - \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/4.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/4.json deleted file mode 100644 index c7b1124d0..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/4.json +++ /dev/null @@ -1,1141 +0,0 @@ -{ - "section_id":"5", - "section_name":"Other Assets Details", - "onsubmit":[ - ], - "questions":[ { - "question":"Is the Asset Information Available?", - "question_key":"Is_the_Asset_Information_Available", - "type":"3", - "field_width":"45", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Asset_Information_Available", - "expression":"(String('Is_the_Asset_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Asset_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question":"Assets Type", - "question_key":"Assets_Type", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ASSETTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers":null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('4'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Description", - "question_key":"Description", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_Market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - }] - }] - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('7'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Type", - "question_key":"type", - "place_holder":"Enter text", - "type":"3", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"INVESTMENTTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('6'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done1", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value1", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('3'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Bank Name", - "question_key":"BankName1", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } ,{ - "question":"Current Market Value", - "question_key":"Current_MarketValue2", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('4'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done2", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value3", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('2'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Bank Name", - "question_key":"Bank_Name2", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value4", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('5'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Name of organisation in which investment done", - "question_key":"Name_of_organisation_in_which_investment_done3", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value4", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type", - "expression":"(String('type') == String('1'))", - "value_keys":[ - "type" - ], - "questions":[ - - { - "question":"Specify Type", - "question_key":"Specify_Type", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Bank Name", - "question_key":"Bank_Name3", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Current Market Value", - "question_key":"Current_Market_Value5", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - ] - } - ] - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - } ,{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('6'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Premium Paid", - "question_key":"Premium_Paid", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Frequency", - "question_key":"Frequency", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Sum Assured", - "question_key":"Sum_Assured", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Member Covered", - "question_key":"Member_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('2'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Property Type", - "question_key":"Property_Type", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PROPERTIES" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Area Covered", - "question_key":"Area_Covered", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"appromximate_market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - },{ - "question":"Unit of Measurement", - "question_key":"Unit_of_Measurement", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties": null, - "answers": [ - { - "answer": "Acres", - "answer_id": "Acres" - }, - { - "answer": "Hectares", - "answer_id": "Hectares" - }, - { - "answer": " Square Feet", - "answer_id": " Square_Feet" - }, - { - "answer": "Square Meters", - "answer_id": "Square_Meters" - }, - { - "answer": "Others", - "answer_id": "Others" - } - - ], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_in_years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_in_months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchase_year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('1'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Description of Assets*", - "question_key":"Description_of_Assets", - "place_holder":"Enter text", - "type":"1", - "field_width":"100", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_market_Value", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - },{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_Years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_Months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchases_Year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Assets_Type", - "expression":"(String('Assets_Type') == String('3'))", - "value_keys":[ - "Assets_Type" - ], - "questions":[ - { - "question":"Type of Vehicle", - "question_key":"Type_of_Vehicle", - "place_holder":"Enter text", - "type":"3", - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"VEHICLETYPE" - }, - "fields":[ - "vehicle_type_id", - "vehicle_type_name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Description of Vehicle(example - Toyota Altis)", - "question_key":"Description_of_Vehicle", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Appromximate Market Value", - "question_key":"Appromximate_marketValue", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Assets_Type", - "answers":null, - "validations":[ - ] - - },{ - "question":"Age of Assets in Years", - "question_key":"Age_of_Assets_in_Years", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } ,{ - "question":"Age of Assets in Months", - "question_key":"Age_of_Assets_in_Months", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - },{ - "question":"Purchase Year", - "question_key":"Purchase_Year", - "place_holder":"Enter text", - "type":"1", - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - } - ] - }] - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Entity Name Required", - "value":null - } - ] - - }, - - { - "question":"Name of the Owner", - "question_key":"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, - "answers": null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - },{ - "question":"Is there a Loan Exiting Against the Assets? ", - "question_key":"Is_there_a_Loan_Exiting_Against_the_Assets", - "type":"3", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Started Business Required", - "value":null - } - ] - - } - - - ], - "is_repeatable":"1", - "group_title":"Assets Information", - "group_key":"Assets Information", - "form_name":"Assets Information" - } - ] - }] - - }], - "is_repeatable":null, - "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":"65", - "validations":[ - ] - } - ] - } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/5.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/5.json deleted file mode 100644 index 36073889f..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/5.json +++ /dev/null @@ -1,508 +0,0 @@ -{ - "section_id":"5", - "section_name":"Address details", - "onsubmit":null, - "questions":[ - { - "question":"Address at which PD was initiated", - "question_key":"initiated_address", - "type":"7", - "disable":false, - "field_width":"100", - "title":"Address Details", - "answers":true, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - }, - { - "question":"Is this the address where PD is done ?", - "question_key":"is_pd_done_on_initiated_address", - "type":"2", - "disable":false, - "field_width":"100", - "onchange_properties": [{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"is_pd_done_on_initiated_address", - "expression":"(String('is_pd_done_on_initiated_address') == String('No'))", - "value_keys":[ - "is_pd_done_on_initiated_address" - ], - "questions":[ - { - "question":"Reason for change in PD visit address", - "question_key":"end_use", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - }, { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"25", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, { - "question":"Enter actual PD address", - "question_key":"actual_pd_address", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - } - - ] - } - ] - }], - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Address Type", - "question_key":"Address_Type", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ADDRESSTYPE" - }, - "fields":[ - "address_type_id", - "address_type" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Locality", - "question_key":"Locality", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"LOCALITY" - }, - "fields":[ - "locality_id", - "locality_name" - ] - }, - - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Approach to PD location*", - "question_key":"Approach_to_PD_location", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"PDLOCATIONAPPROACH" - }, - "fields":[ - "pd_location_approach_id", - "description" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question":"Comment on Locality", - "question_key":"Comment_on_Locality", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"COMMENTSONLOCALITY" - }, - "fields":[ - "comments_on_locality_id", - "rating" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Unit of Measurement", - "question_key":"Unit_of_Measurement", - "type":"3", - "disable":false, - "field_width":"45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"UOM" - }, - "fields":[ - "uom_id", - "name" - ] - }, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - },{ - "question":"Estimate area of the Residence", - "question_key":"Estimate_area_of_the_Residence", - "type":"1", - "disable":false, - "field_width":"45", - "api_properties": null, - "answers": null, - "onchange_properties":null, - "is_repeatable":null, - "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/SMC_CREDIT_TEMPLATES/all/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/6.json deleted file mode 100644 index 5c91cc62e..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/6.json +++ /dev/null @@ -1,630 +0,0 @@ -{ - "section_id": "8", - "section_name": "Family Details", - "onsubmit": [], - "questions": [{ - "question":"Select a person*", - "question_key":"Select_a_person", - "type":"3", - "field_width":"65", - "answers":null, - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - - ] - }, { - "question": "Residence Details of", - "question_key": "Residence_Details_of", - "field_type":"null", - "sub_title":"Residence Details of", - "disable":false, - "field_width": "100", - "answers": null, - "api_properties": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [] - }, - { - "question": "State", - "question_key": "state", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": { - "api": "getListOfMaster", - "api_method": "POST", - "params": { - "master_name": "STATE" - }, - "fields": [ - "state_id", - "name" - ] - }, - "onchange_properties": [ - { - "purpose": "api", - "api": "getListOfStatesAndCities", - "api_method": "POST", - "params": "{records:{state_id:'value_of_answer'}}", - "fields": [ - "state_id", - "name" - ], - "local_variable": "local_city" - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "State Required", - "value": null - } - ] - }, - { - "question": "City", - "question_key": "city", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_city", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "CIty Required", - "value": null - } - ] - }, - { - "question":"Place*", - "question_key":"Place_list", - "type":"1", - "disable":false, - "field_width":"45", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question": "Pincode", - "question_key": "pincode", - "type": "3", - "answers": null, - "field_width":"45", - "api_properties": "local_pincode", - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "pincode", - "expression": "(pincode == 1)", - "value_keys": [ - "pincode" - ], - "questions": [ - { - "question_key": "pincode_others", - "question": "Specify the Pincode", - "place_holder": "Enter the Pincode", - "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": "Pincode is Required", - "value": null - }, - { - "name": "pattern", - "isactive": "1", - "validator": "[0-9]{6}", - "message": "Pincode should be 6 digit", - "value": null - } - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - { - "name": "required", - "isactive": "1", - "validator": "Validators.required", - "message": "Pincode Required", - "value": null - } - ] - },{ - "question":"Year*", - "question_key":"Year", - "type":"1", - "disable":false, - "field_width":"25", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Month*", - "question_key":"Month", - "type":"1", - "disable":false, - "field_width":"25", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Ownership*", - "question_key":"Ownership", - "type":"3", - "disable":false, - "field_width":"25", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RESIDENCEOWNERSHIP" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Ownership", - "expression":"(String('Ownership') == String('3'))", - "value_keys":[ - "Ownership" - ], - "questions":[ - { - "question":"Monthly Rent Amount", - "question_key":"Monthly_Rent_Amount", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":null, - "validations":[ - ] - - }] - }] - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Ownership", - "expression":"(String('Ownership') == String('1'))", - "value_keys":[ - "Ownership" - ], - "questions":[ - { - "question":"Specify Ownership", - "question_key":"Specify_Ownership", - "place_holder":"", - "type":"1", - "field_width":"45", - "field_type": "text", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":null, - "validations":[ - ] - - }] - }] - }], - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, - { - "question": [ - { - "question": "Title", - "question_key": "Title", - "type": "3", - "field_width": "20", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TITLES" - }, - "fields":[ - "title_id", - "name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Name*", - "question_key": "name", - "type": "1", - "field_width": "20", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - },{ - "question": "Relationship*", - "question_key": "Relationship", - "type": "3", - "field_width": "20", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - },{ - "question": "Age*", - "question_key": "Age", - "type": "1", - "field_width": "20", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - },{ - "question": "Earning Status*", - "question_key": "Earning_Status", - "type": "3", - "field_width": "25", - "api_properties": null, - "answers":[ - { - "answer_id":"Earning", - "answer":"Earning" - }, - { - "answer_id":"Non_Earning", - "answer":"Non Earning" - } - ], - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Earning_Status", - "expression":"(String('Earning_Status') == String('Earning'))", - "value_keys": [ - "Earning_Status" - ], - "questions": [ - { - "question": "Segment*", - "question_key": "Segment", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"EARNINGMEMBERSSTATUS" - }, - "fields":[ - "earning_member_status_id", - "earning_member_status" - ] - }, - "answers": null, - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Segment", - "expression":"(String('Segment') == String('1'))", - "value_keys": [ - "Segment" - ], - "questions": [ - { - "question": "Specify Others", - "question_key": "SpecifyOthers", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Segment", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - - ] - }, { - "question": "Income Per Month", - "question_key": "Income_Per_Month", - "type": "1", - "field_width": "45", - "field_type": "numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, { - "question": "Name of the Employer/Business", - "question_key": "Name_of_the_Employer/Business", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - }, { - "question": "No of Years in Employment/Business", - "question_key": "No_of_Years_in_Employment/Business", - "type": "1", - "field_width": "45", - "field_type": "text", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - - ], - "is_repeatable": null, - "validations": [ - - ] - }, { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Earning_Status", - "expression":"(String('Earning_Status') == String('Non_Earning'))", - "value_keys": [ - "Earning_Status" - ], - "questions": [ - { - "question": "Occupation*", - "question_key": "Occupation", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"OCCUPATIONMEMBERS" - }, - "fields":[ - "occupation_non_earning_member_id", - "name" - ] - }, - - "answers": null, - "onchange_properties": [ - { - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Occupation", - "expression":"(String('Occupation') == String('1'))", - "value_keys": [ - "Occupation" - ], - "questions": [ - { - "question": "Specify Others", - "question_key": "SpecifyOthers", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Occupation", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - },{ - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Occupation", - "expression":"(String('Occupation') == String('3'))", - "value_keys": [ - "Occupation" - ], - "questions": [ - { - "question": "Retired Form", - "question_key": "Retired_Form", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Occupation", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - },{ - "purpose": "FORM_CTRL", - "form_controls": [ - { - "insert_index": "Occupation", - "expression":"(String('Occupation') == String('2'))", - "value_keys": [ - "Occupation" - ], - "questions": [ - { - "question": "Specify School/College Name", - "question_key": "Specify_School/College_Name", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "parent_question_key":"Occupation", - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - - ] - } - ] - } - ] - } - ], - "is_repeatable": null, - "validations": [ - - ] - } ] - } - - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": null, - "validations": [ - ] - } - - ], - "is_repeatable": "1", - "group_title": "Family Details", - "group_key": "Family_Details" - } - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/7.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/7.json deleted file mode 100644 index 7f8fd455e..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/7.json +++ /dev/null @@ -1,683 +0,0 @@ -{ - "section_id":"6", - "section_name":"Banking Details", - "onsubmit":[ - ], - "questions":[ { - "question":"Is the Personal Banking Information Available", - "question_key":"Is_the_Personal_Banking_Information_Available", - "type":"3", - "sub_title":"Personal Banking Details", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Personal_Banking_Information_Available", - "expression":"(String('Is_the_Personal_Banking_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Personal_Banking_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question_key":"Account_Holder_Name", - "question":"Account Holder's Name", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"Banking_name", - "question":"Banking Name", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Banking_name", - "expression":"(String('Banking_name') == String('1'))", - "value_keys":[ - "Banking_name" - ], - "questions":[ - { - "question":"Salary Credited in this account", - "question_key":"Salary_Credited_in_this_account", - "type":"1", - "field_width":"30", - "api_properties":null, - "parent_question_key":"Banking_name", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - }, { - "answer_id":"NA", - "answer":"NA" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - }, { - "question":"Account Type", - "question_key":"Is_the_Personal_Banking_Information_Available", - "place_holder":"Enter text", - "type":"3", - "field_width":"30", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"ACCOUNTTYPE" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Personal_Banking_Information_Available", - "expression":"(String('Is_the_Personal_Banking_Information_Available') == String('4'))", - "value_keys":[ - "Is_the_Personal_Banking_Information_Available" - ], - "questions":[ - { - "question":"Limit in case of OD / CC account", - "question_key":"Limit_in_case_of_OD_CC_account", - "type":"1", - "field_type":"numtoword", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Personal_Banking_Information_Available", - "expression":"(String('Is_the_Personal_Banking_Information_Available') == String('3'))", - "value_keys":[ - "Is_the_Personal_Banking_Information_Available" - ], - "questions":[ - { - "question":"Limit in case of OD / CC account", - "question_key":"limit_in_case_of_OD_CC_account", - "type":"1", - "field_width":"45", - "field_type":"numtoword", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Personal Banking Information Required", - "value":null - } - ] - }, { - "question_key":null, - "question":null, - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"Number of Years / Months since account was started", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, { - "question_key":"month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, - { - "question":"Is this same AC used for?", - "question_key":"Is_this_same_AC_used_for", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[ - { - "answer_id":"Personal", - "answer":"Personal" - }, - { - "answer_id":"Business", - "answer":"Business" - }, - { - "answer_id":"Both", - "answer":"Both" - } - ], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - } - ], - "is_repeatable":"1", - "group_title":"Personal Banking Details", - "group_key":"Personal_Banking_Details", - "form_name":"Personal Banking Details" - } - ] - }] - -}], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Is the Business Information Available", - "question_key":"Is_the_Business_Information_Available", - "type":"3", - "sub_title":"Business Details", - "field_width":"65", - "api_properties":null, - "answers":[ - { - "answer_id":"Yes", - "answer":"Yes" - }, - { - "answer_id":"No", - "answer":"No" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Is_the_Business_Information_Available", - "expression":"(String('Is_the_Business_Information_Available') == String('Yes'))", - "value_keys":[ - "Is_the_Business_Information_Available" - ], - "questions":[ - { - "question":[ - { - "question_key":"Account_Holder_name", - "question":"Account Holder's Name", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"banking_name", - "question":"Banking Name", - "place_holder":"Enter the text", - "type":"8", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers":null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"banking_name", - "expression":"(String('banking_name') == String('1'))", - "value_keys":[ - "banking_name" - ], - "questions":[ - { - "question":"Salary Credited in this account", - "question_key":"salary_Credited_in_this_account", - "type":"1", - "field_width":"30", - "api_properties":null, - "parent_question_key":"banking_name", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - }, { - "answer_id":"NA", - "answer":"NA" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - }, { - "question":"Account Type", - "question_key":"Account_Type", - "place_holder":"Enter text", - "type":"3", - "field_width":"30", - "api_properties":null, - "answers":[ - { - "answer_id":"CC", - "answer":"CC" - }, - { - "answer_id":"Current", - "answer":"Current" - }, - { - "answer_id":"OD", - "answer":"OD" - }, - { - "answer_id":"Savings", - "answer":"Savings" - } - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('4'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - - { - "question":"Limit in case of OD / CC account", - "question_key":"Limit_in_case_of_OD_CC_account", - "type": "1", - "field_width": "45", - "field_type":"numtoword", - "api_properties": null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Is the main business account", - "question_key":"Is_the_main_business_account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('3'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - { - "question":"Limit in case of OD / CC account", - "question_key":"limit_in_case_of_OD_CC_account", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }, { - "question":"Is the main business account", - "question_key":"is_the_main_business_account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }, { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('2'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - { - "question":"Is the main business account", - "question_key":"is_the_main_Business_account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Account_Type", - "expression":"(String('Account_Type') == String('1'))", - "value_keys":[ - "Account_Type" - ], - "questions":[ - { - "question":"Is the main business account", - "question_key":"is_the_main_Business_Account", - "type":"3", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - { - "answer_id":"YES", - "answer":"YES" - }, - { - "answer_id":"NO", - "answer":"NO" - } - - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable":null, - "field_type":"string", - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Business Details Required", - "value":null - } - ] - }, { - "question_key":null, - "question":null, - "place_holder":"Enter the text", - "type":null, - "api_properties":null, - "sub_title":"Number of Years / Months since account was started", - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - }, { - "question_key":"month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"25", - "validations":[ - ] - } - - ], - "is_repeatable":"1", - "group_title":"Business Details", - "group_key":"Business_Details", - "form_name":"Business Details" - } - ] - }] - -}], - "is_repeatable":null, - "validations":[ - - ] -} - - - ] -} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/8.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/8.json deleted file mode 100644 index 8d9e560b3..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/8.json +++ /dev/null @@ -1,472 +0,0 @@ -{ - "section_id": "7", - "section_name": "Existing Loan Obligations", - "onsubmit": null, - "questions": [ - { - "question":"Do you have any exiting loan", - "question_key":"Do_you_have_any_exiting_loan", - "type":"3", - "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":"Do_you_have_any_exiting_loan", - "expression":"(String('Do_you_have_any_exiting_loan') == String('yes'))", - "value_keys":[ - "Do_you_have_any_exiting_loan" - ], - "questions":[ - { - "question": [ - - - { - "question": "Loan type", - "question_key": "loan_type", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"EXISTINGLOANTYPES" - }, - "fields":[ - "existing_loan_type_id", - "loan_type_name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"loan_type", - "expression":"(String('loan_type') == String('1'))", - "value_keys":[ - "loan_type" - ], - "questions":[ - { - "question":"Specify Loan Type", - "question_key":"Specify_Loan_Type", - "type":"1", - "field_width":"45", - "api_properties":null, - "parent_question_key":"loan_type", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan amount", - "question_key": "loan_amount", - "type": "1", - "field_type": "numtoword", - "field_width": "65", - "onchange_properties": null, - "api_properties": null, - "answers": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Lender name", - "question_key": "lender_name", - "type": "4", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"BTLENDERLIST" - }, - "fields":[ - "bt_lender_list_id", - "lender_name" - ] - }, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Loan taken by", - "question_key": "loan_taken_by", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - - { - "question": "Instalment frequency", - "question_key": "instalment_frequency", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('5'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Daily Instalment Amount", - "question_key":"Daily_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('8'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Instalment Amount", - "question_key":"Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('4'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Fortnightly Instalment Amount", - "question_key":"Fortnightly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('6'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Quartly Instalment Amount", - "question_key":"Quartly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('3'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Halfyearly Instalment Amount", - "question_key":"Halfyearly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('7'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Monthly Instalment Amount", - "question_key":"Monthly_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"instalment_frequency", - "expression":"(String('instalment_frequency') == String('2'))", - "value_keys":[ - "instalment_frequency" - ], - "questions":[ - { - "question":"Annual Instalment Amount", - "question_key":"Annual_Instalment_Amount", - "type":"1", - "field_width":"45", - "field_type": "numtoword", - "api_properties":null, - "parent_question_key":"instalment_frequency", - "answers":[ - - ], - "onchange_properties": [], - "is_repeatable":null, - "validations":[ - - ] - }] - }] - - - - }], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Original tenure in months", - "question_key": "original_tenure_months", - "type": "1", - "field_width": "65", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Current balance tenure in months", - "question_key": "current_tenure_months", - "type": "1", - "field_type": "num", - "field_width": "65", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(current_tenure_months))", - "value_keys":[ - "original_tenure_months", "current_tenure_months" - ], - "insert_control":"elapsed_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Elapsed tenure in mths", - "question_key": "elapsed_tenure_months", - "type": "1", - "field_width": "65", - "field_type": "num", - "api_properties": null, - "answers": null, - "onchange_properties": [ - { - "purpose":"answer_value", - "expression":"(Number(original_tenure_months)-Number(elapsed_tenure_months))", - "value_keys":[ - "original_tenure_months", "elapsed_tenure_months" - ], - "insert_control":"current_tenure_months" - } - ], - "is_repeatable": null, - "validations": [ - ] - } - ], - "is_repeatable": "1", - "group_title": "Loan Details", - "group_key": "Loan_Details" - } ] - }] - - }], - "is_repeatable":null, - "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/all/9.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/9.json deleted file mode 100644 index 11a21e8aa..000000000 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/all/9.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "section_id": "9", - "section_name": "Other Income Details", - "onsubmit": [], - "questions": [ - { - "question":"Other Income of Loan Application", - "question_key":"Other_Income_of_Loan_Application", - "type":"3", - "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":"Other_Income_of_Loan_Application", - "expression":"(String('Other_Income_of_Loan_Application') == String('yes'))", - "value_keys":[ - "Other_Income_of_Loan_Application" - ], - "questions":[ - { - "question": [ - { - "question": "Source", - "question_key": "Source", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers":[{ - - "answer":"Agricultural Income", - "answer_id":"Agricultural_Income" - }, - { - "answer":"Dividend Income", - "answer_id":"Dividend_Income" - }, { - "answer":"Interest Income", - "answer_id":"Interest_Income" - }, { - "answer":"Rental Income", - "answer_id":"Rental_Income" - }, - { - "answer":"Others(Please Specify)", - "answer_id":"Others(Please_Specify)" - } - - ], - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('Rental_Income'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Address", - "question_key":"Address", - "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":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('Others(Please_Specify)'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Specify Source", - "question_key":"Specify_Source", - "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":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Income earned by", - "question_key": "Income_earned_by", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Amount", - "question_key": "amount", - "type": "1", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Frequency", - "question_key": "account_type", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers":null, - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": "1", - "group_title": "Income Details", - "group_key": "Income_Details" - }] - }] - - }], - "is_repeatable":null, - "validations":[ - - ] - }, - { - "question": [ - { - "question": "Source", - "question_key": "Source", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"SOURCEOFOTHERINCOME" - }, - "fields":[ - "id", - "name" - ] - }, - "answers": null, - "onchange_properties":[ - { - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('5'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Address", - "question_key":"Address", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - },{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"Source", - "expression":"(String('Source') == String('1'))", - "value_keys":[ - "Source" - ], - "questions":[ - { - "question":"Specify Source", - "question_key":"Specify_Source", - "place_holder":"", - "field_type":"text", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "parent_question_key":"Source", - "answers":null, - "validations":[ - ] - }] - }] - - }], - "is_repeatable": null, - "field_type": "string", - "validations": [ - ] - }, - { - "question": "Income earned by", - "question_key": "Income_earned_by", - "type": "3", - "field_width": "45", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Amount", - "question_key": "amount", - "type": "1", - "field_width": "45", - "field_type":"numtoword", - "api_properties": null, - "answers": null, - "onchange_properties": null, - "is_repeatable": null, - "validations": [ - ] - }, - { - "question": "Frequency", - "question_key": "account_type", - "type": "3", - "field_width": "45", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"FREQUENCY" - }, - "fields":[ - "frequency_id", - "name" - ] - }, - "answers": null, - "onchange_properties": [ - ], - "is_repeatable": null, - "validations": [ - - ] - } - ], - "is_repeatable": "1", - "group_title": "Income Details", - "group_key": "Income_Details" - } - - ] -} \ No newline at end of file