diff --git a/ng6-seed/src/app/reports/smc-credit/smc-credit.component.html b/ng6-seed/src/app/reports/smc-credit/smc-credit.component.html index ad06607dd..61aec635c 100644 --- a/ng6-seed/src/app/reports/smc-credit/smc-credit.component.html +++ b/ng6-seed/src/app/reports/smc-credit/smc-credit.component.html @@ -2,7 +2,7 @@
- SMC Credit PD MIS Report + MW Credit PD MIS Report diff --git a/ng6-seed/src/app/sales-pd/mis-reports/mis-reports.component.html b/ng6-seed/src/app/sales-pd/mis-reports/mis-reports.component.html index 1a01cba15..8e93706a3 100755 --- a/ng6-seed/src/app/sales-pd/mis-reports/mis-reports.component.html +++ b/ng6-seed/src/app/sales-pd/mis-reports/mis-reports.component.html @@ -2,7 +2,7 @@
- Sales PD MIS Report + MW Sales PD MIS Report diff --git a/ng6-seed/src/app/shared/menu-items/horizontal-menu-items.ts b/ng6-seed/src/app/shared/menu-items/horizontal-menu-items.ts index e1f9111cc..6699f2e37 100755 --- a/ng6-seed/src/app/shared/menu-items/horizontal-menu-items.ts +++ b/ng6-seed/src/app/shared/menu-items/horizontal-menu-items.ts @@ -35,8 +35,8 @@ const HORIZONTALMENUITEMS = [ icon:'report', children:[ {state:'reports',name:'Credit PD'}, - {state:'sales-pd-list/reports',name:'Sales PD'}, - {state:'reports/SMC-MIS',name:'SMC Credit PD'} + {state:'sales-pd-list/reports',name:'MW Sales PD'}, + {state:'reports/SMC-MIS',name:'MW Credit PD'} ] }, { diff --git a/ng6-seed/src/app/shared/menu-items/menu-items.ts b/ng6-seed/src/app/shared/menu-items/menu-items.ts index 53c978df5..a62c56fd5 100755 --- a/ng6-seed/src/app/shared/menu-items/menu-items.ts +++ b/ng6-seed/src/app/shared/menu-items/menu-items.ts @@ -119,8 +119,8 @@ const MENUITEMS : Menu[] = [ icon:'report', children:[ {state:'reports',name:'Credit PD'}, - {state:'sales-pd-list/reports',name:'Sales PD'}, - {state:'reports/SMC-MIS',name:'SMC Credit PD'} + {state:'sales-pd-list/reports',name:'MW Sales PD'}, + {state:'reports/SMC-MIS',name:'MW Credit PD'} ] } ]; diff --git a/ng6-seed/src/assets/data/covid questions.json b/ng6-seed/src/assets/data/covid questions.json new file mode 100644 index 000000000..d2e1cedd9 --- /dev/null +++ b/ng6-seed/src/assets/data/covid questions.json @@ -0,0 +1,9 @@ +{ + "credit_pd_template_id": "1", + "template_name": "GEN CREDIT MGR QUERIES", + "template_desc": "General Credit Manager Queries form template", + "template": "{\"section_id\":\"1\",\"section_name\":\"Covid 19 Questions\",\"onsubmit\":null,\"questions\":[{\"question\":\" Is your business adversely impacted by coronavirus outbreak111111 ?\",\"question_key\":\"business_impacted_by_covid19\",\"type\":\"2\",\"field_width\":\"100\",\"answers\":[{\"answer_id\":\"Yes\",\"answer\":\"Yes\"},{\"answer_id\":\"No\",\"answer\":\"No\"}],\"api_properties\":null,\"onchange_properties\":[{\"purpose\":\"FORM_CTRL\",\"form_controls\":[{\"insert_index\":\"business_impacted_by_covid19\",\"expression\":\"(String('business_impacted_by_covid19') == String('Yes'))\",\"value_keys\":[\"business_impacted_by_covid19\"],\"questions\":[{\"question\":\"Enter your remarks\",\"question_key\":\"business_impacted_by_covid19_Yes\",\"place_holder\":\"\",\"field_type\":\"string\",\"type\":\"9\",\"field_width\":\"100\",\"api_properties\":null,\"onchange_properties\":null,\"is_repeatable\":null,\"is_subfield\":\"1\",\"parent_question_key\":\"business_impacted_by_covid19\",\"answers\":[],\"validations\":[{\"name\":\"required\",\"isactive\":\"1\",\"validator\":\"Validators.required\",\"message\":\"Field required\",\"value\":null}]}]}]},{\"purpose\":\"FORM_CTRL\",\"form_controls\":[{\"insert_index\":\"business_impacted_by_covid19\",\"expression\":\"(String('business_impacted_by_covid19') == String('No'))\",\"value_keys\":[\"business_impacted_by_covid19\"],\"questions\":[{\"question\":\"Enter Your Remarks\",\"question_key\":\"business_impacted_by_covid19_No\",\"place_holder\":\"\",\"field_type\":\"string\",\"type\":\"9\",\"field_width\":\"100\",\"api_properties\":null,\"onchange_properties\":null,\"is_repeatable\":null,\"is_subfield\":\"1\",\"parent_question_key\":\"business_impacted_by_covid19\",\"answers\":[],\"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\":\" Did you avail the loan moratorium facility on your existing loans which is extended by your bank or financial institution? \",\"question_key\":\"avail_loan_moratorium_facility\",\"type\":\"2\",\"field_width\":\"100\",\"onchange_properties\":[],\"api_properties\":null,\"answers\":[{\"answer\":\"Yes\",\"answer_id\":\"Yes\"},{\"answer\":\"No\",\"answer_id\":\"No\"}],\"is_repeatable\":null,\"validations\":[{\"name\":\"required\",\"isactive\":\"1\",\"validator\":\"Validators.required\",\"message\":\"Field Required\",\"value\":null}]},{\"question\":\"Are you planning to avail/ or already availed any loan or any other term facility for your business or personal use?\",\"question_key\":\"avail_any_loan\",\"type\":\"2\",\"field_width\":\"100\",\"api_properties\":null,\"answers\":[{\"answer\":\"Yes\",\"answer_id\":\"Yes\"},{\"answer\":\"No\",\"answer_id\":\"No\"}],\"onchange_properties\":[{\"purpose\":\"FORM_CTRL\",\"form_controls\":[{\"insert_index\":\"avail_any_loan\",\"expression\":\"(String('avail_any_loan') == String('Yes'))\",\"value_keys\":[\"avail_any_loan\"],\"questions\":[{\"question\":\"Please specify amount, lender etc.\",\"question_key\":\"avail_any_loan_Yes\",\"type\":\"7\",\"field_width\":\"100\",\"api_properties\":null,\"onchange_properties\":null,\"is_repeatable\":null,\"is_subfield\":\"1\",\"parent_question_key\":\"avail_any_loan\",\"answers\":[],\"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\":\"How much is your sales/revenue from April till date?\",\"question_key\":\"sales_or_revenue_amt\",\"place_holder\":\"Enter amount\",\"type\":\"9\",\"answers\":[{\"answer\":\"Not Disclosed\",\"answer_id\":\"Not Disclosed\"}],\"onchange_properties\":[{\"purpose\":\"validations\",\"validations\":[{\"name\":\"pattern\",\"isactive\":\"1\",\"validator\":\"\",\"message\":\"Please enter the amount or choose the suggested text\",\"value\":\"(String('sales_or_revenue_amt').toLowerCase() != String('not disclosed')) ? '[0-9]*' : false\",\"validation_to\":null,\"value_keys\":[\"sales_or_revenue_amt\"]}]}],\"field_width\":\"100\",\"api_properties\":null,\"is_repeatable\":null,\"field_type\":\"str&numtoword\",\"validations\":[{\"name\":\"required\",\"isactive\":\"1\",\"validator\":\"Validators.required\",\"message\":\"Field Required\",\"value\":null}]},{\"question\":\"Is turnover mentioned above validated?\",\"question_key\":\"mentioned_turover_validated\",\"type\":\"2\",\"field_width\":\"100\",\"api_properties\":null,\"answers\":[{\"answer\":\"Yes\",\"answer_id\":\"Yes\"},{\"answer\":\"No\",\"answer_id\":\"No\"}],\"onchange_properties\":[{\"purpose\":\"FORM_CTRL\",\"form_controls\":[{\"insert_index\":\"mentioned_turover_validated\",\"expression\":\"(String('mentioned_turover_validated') == String('Yes'))\",\"value_keys\":[\"mentioned_turover_validated\"],\"questions\":[{\"question\":\"Choose any\",\"question_key\":\"mentioned_turover_validated_Yes\",\"place_holder\":\"\",\"field_type\":\"string\",\"type\":\"9\",\"field_width\":\"100\",\"api_properties\":null,\"onchange_properties\":null,\"is_repeatable\":null,\"is_subfield\":\"1\",\"parent_question_key\":\"mentioned_turover_validated\",\"answers\":[{\"answer_id\":\"Bills\",\"answer\":\"Bills\"},{\"answer_id\":\"Gst returns\",\"answer\":\"Gst returns\"},{\"answer_id\":\"records shown\",\"answer\":\"records shown\"}],\"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}]}]}", + "fk_entity_id": null, + "fk_product_id": null, + "pd_form_id": "24" +} \ No newline at end of file diff --git a/ng6-seed/src/assets/data/general.json b/ng6-seed/src/assets/data/general.json new file mode 100644 index 000000000..c16353d5c --- /dev/null +++ b/ng6-seed/src/assets/data/general.json @@ -0,0 +1,333 @@ +{ + "section_id": "1", + "section_name": "General Form", + "onsubmit": null, + "questions ": [ + { + "question ": "Name", + "question_key ": "name", + "type ": "2 ", + "field_width ": "100 ", + "answers ": [ + { + "answer_id ": "Yes ", + "answer ": "Yes " + }, + { + "answer_id ": "No ", + "answer ": "No " + } + ], + "api_properties ": null, + "onchange_properties ": [ + { + "purpose ": "FORM_CTRL ", + "form_controls ": [ + { + "insert_index ": "business_impacted_by_covid19 ", + "expression ": "(String('business_impacted_by_covid19') == String('Yes')) ", + "value_keys ": [ + "business_impacted_by_covid19 " + ], + "questions ": [ + { + "question ": "Enter your remarks ", + "question_key ": "business_impacted_by_covid19_Yes ", + "place_holder ": " ", + "field_type ": "string ", + "type ": "9 ", + "field_width ": "100 ", + "api_properties ": null, + "onchange_properties ": null, + "is_repeatable ": null, + "is_subfield ": "1 ", + "parent_question_key ": "business_impacted_by_covid19 ", + "answers ": [], + "validations ": [ + { + "name ": "required ", + "isactive ": "1 ", + "validator ": "Validators.required ", + "message ": "Field required ", + "value ": null + } + ] + } + ] + } + ] + }, + { + "purpose ": "FORM_CTRL ", + "form_controls ": [ + { + "insert_index ": "business_impacted_by_covid19 ", + "expression ": "(String('business_impacted_by_covid19') == String('No')) ", + "value_keys ": [ + "business_impacted_by_covid19 " + ], + "questions ": [ + { + "question ": "Choose any ", + "question_key ": "business_impacted_by_covid19_No ", + "place_holder ": " ", + "field_type ": "string ", + "type ": "9 ", + "field_width ": "100 ", + "api_properties ": null, + "onchange_properties ": null, + "is_repeatable ": null, + "is_subfield ": "1 ", + "parent_question_key ": "business_impacted_by_covid19 ", + "answers ": [ + { + "answer_id ": "Business falls under essential services like chemist ", + "answer ": "Business falls under essential services like chemist " + }, + { + "answer_id ": " grocery store etc ", + "answer ": "grocery store etc " + } + ], + "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 ": " Did you avail the loan moratorium facility on your existing loans which is extended by your bank or financial institution? ", + "question_key ": "avail_loan_moratorium_facility ", + "type ": "2 ", + "field_width ": "100 ", + "onchange_properties ": [], + "api_properties ": null, + "answers ": [ + { + "answer ": "Yes ", + "answer_id ": "Yes " + }, + { + "answer ": "No ", + "answer_id ": "No " + } + ], + "is_repeatable ": null, + "validations ": [ + { + "name ": "required ", + "isactive ": "1 ", + "validator ": "Validators.required ", + "message ": "Field Required ", + "value ": null + } + ] + }, + { + "question ": "Are you planning to avail/ or already availed any loan or any other term facility for your business or personal use? ", + "question_key ": "avail_any_loan ", + "type ": "2 ", + "field_width ": "100 ", + "api_properties ": null, + "answers ": [ + { + "answer ": "Yes ", + "answer_id ": "Yes " + }, + { + "answer ": "No ", + "answer_id ": "No " + } + ], + "onchange_properties ": [ + { + "purpose ": "FORM_CTRL ", + "form_controls ": [ + { + "insert_index ": "avail_any_loan ", + "expression ": "(String('avail_any_loan') == String('Yes')) ", + "value_keys ": [ + "avail_any_loan " + ], + "questions ": [ + { + "question ": "Please specify amount, lender etc. ", + "question_key ": "avail_any_loan_Yes ", + "type ": "7 ", + "field_width ": "100 ", + "api_properties ": null, + "onchange_properties ": null, + "is_repeatable ": null, + "is_subfield ": "1 ", + "parent_question_key ": "avail_any_loan ", + "answers ": [], + "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 ": "How much is your sales/revenue from April till date? ", + "question_key ": "sales_or_revenue_amt ", + "place_holder ": "Enter amount ", + "type ": "9 ", + "answers ": [ + { + "answer ": "Not Disclosed ", + "answer_id ": "Not Disclosed " + } + ], + "onchange_properties ": [ + { + "purpose ": "validations ", + "validations ": [ + { + "name ": "pattern ", + "isactive ": "1 ", + "validator ": " ", + "message ": "Please enter the amount or choose the suggested text ", + "value ": "(String('sales_or_revenue_amt').toLowerCase() != String('not disclosed')) ? '[0-9]*' : false ", + "validation_to ": null, + "value_keys ": [ + "sales_or_revenue_amt " + ] + } + ] + } + ], + "field_width ": "100 ", + "api_properties ": null, + "is_repeatable ": null, + "field_type ": "str&numtoword ", + "validations ": [ + { + "name ": "required ", + "isactive ": "1 ", + "validator ": "Validators.required ", + "message ": "Field Required ", + "value ": null + } + ] + }, + { + "question ": "Is turnover mentioned above validated? ", + "question_key ": "mentioned_turover_validated ", + "type ": "2 ", + "field_width ": "100 ", + "api_properties ": null, + "answers ": [ + { + "answer ": "Yes ", + "answer_id ": "Yes " + }, + { + "answer ": "No ", + "answer_id ": "No " + } + ], + "onchange_properties ": [ + { + "purpose ": "FORM_CTRL ", + "form_controls ": [ + { + "insert_index ": "mentioned_turover_validated ", + "expression ": "(String('mentioned_turover_validated') == String('Yes')) ", + "value_keys ": [ + "mentioned_turover_validated " + ], + "questions ": [ + { + "question ": "Choose any ", + "question_key ": "mentioned_turover_validated_Yes ", + "place_holder ": " ", + "field_type ": "string ", + "type ": "9 ", + "field_width ": "100 ", + "api_properties ": null, + "onchange_properties ": null, + "is_repeatable ": null, + "is_subfield ": "1 ", + "parent_question_key ": "mentioned_turover_validated ", + "answers ": [ + { + "answer_id ": "Bills ", + "answer ": "Bills " + }, + { + "answer_id ": "Gst returns ", + "answer ": "Gst returns " + }, + { + "answer_id ": "records shown ", + "answer ": "records shown " + } + ], + "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