Fairoj : Template changes for SMC Credit PD Feedback 2

This commit is contained in:
venbatechnologies@gmail.com 2020-11-20 18:33:08 +05:30
parent a14b9f8c9f
commit b0a98424fd
5 changed files with 513 additions and 285 deletions

View File

@ -262,13 +262,6 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
@ -290,13 +283,6 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
@ -318,15 +304,7 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
},
{
@ -346,15 +324,7 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
},
{
@ -374,15 +344,7 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
},
{
@ -402,13 +364,6 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
@ -430,15 +385,7 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
},
{
@ -458,15 +405,7 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
}
]
},
{
@ -724,6 +663,118 @@
"is_repeatable":"1",
"group_key":"financial_info",
"group_title":"Financial Information"
},
{
"question":[
{
"question":"Sales / Revenue (Rs)",
"question_key":"sales_amount",
"place_holder":"Enter text",
"type":"1",
"field_width":"45",
"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}())",
"value_keys":[
"sales_amount", "net_profit_rs"
],
"insert_control":"net_profit_to_sales_percent"
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Net Profit or (Net Loss) to Sales % ",
"question_key":"net_profit_to_sales_percent",
"place_holder":"Enter number",
"type":"1",
"field_width":"45",
"api_properties":null,
"answers":null,
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(Number(sales_amount)*Number(net_profit_to_sales_percent))/100",
"value_keys":[
"sales_amount", "net_profit_to_sales_percent"
],
"insert_control":"net_profit_rs"
}
],
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"max",
"validator":"100",
"isactive":"1",
"message":"Number must be less than 100",
"value":null
}
]
},
{
"question":"Net Profit / (Net Loss) (Rs)",
"question_key":"net_profit_rs",
"place_holder":"Enter the text",
"type":"1",
"field_width":"45",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"numtoword",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties":[
{
"purpose":"answer_value",
"expression":"(Number(net_profit_rs)/Number(sales_amount))*100",
"value_keys":[
"sales_amount", "net_profit_rs"
],
"insert_control":"net_profit_to_sales_percent"
}
]
}
],
"is_repeatable":"1",
"group_title":"Particulars of Financials for Latest Year as per person met during PD visit",
"group_key":"financial_particulars"
}
]
}

View File

@ -1,215 +1,350 @@
{
"section_id":"13",
"section_name":"Stock details",
"onsubmit":[],
"questions":[
{
"question":[
{
"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":[
{
"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": [
{
"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": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": null,
"value_keys": ["estimated_quantity","estimated_stock_value"]
},
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != 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":[
{
"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": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": null,
"value_keys": ["estimated_quantity","estimated_stock_value"]
},
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": "estimated_quantity",
"value_keys": ["estimated_quantity","estimated_stock_value"]
}
]
}
],
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"provider_observed",
"answers":null,
"validations":[
]
}
] } ] }]
}
],
"is_repeatable":"1",
"group_title":"Stock details",
"group_key":"stock_details"
},
{
"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":"provider_observed",
"answers":[
{
"answer":"Yes",
"answer_id":"yes"
"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
}
]
}
]
}
]
},
{
"answer":"No",
"answer_id":"no"
},
{
"answer":"Stock not required to be maintained",
"answer_id":"not applicable"
"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": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": null,
"value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
},
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != 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": [
{
"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": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": null,
"value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
},
{
"name": "required",
"isactive": "1",
"validator": "",
"message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": "estimated_quantity",
"value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
}
]
}
],
"is_repeatable": null,
"is_subfield": "1",
"parent_question_key": "provider_observed",
"answers": null,
"validations": []
}
]
}
]
}
]
}
],
"is_repeatable": "1",
"group_title": "Stock details",
"group_key": "stock_details"
}
]
}
]
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
]
}
],
"is_repeatable": null,
"answers": [
{
"answer": "Yes",
"answer_id": "Yes"
},
{
"answer": "No",
"answer_id": "No"
}
],
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field required",
"value": null
}
]
}
]
}

View File

@ -168,13 +168,22 @@
]
},
{
"question":"Started Business",
"question":"Started Business (Yes / No)",
"question_key":"started_biz",
"type":"1",
"type":"2",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"answers":[
{
"answer_id":"Yes",
"answer":"Yes"
},
{
"answer_id":"No",
"answer":"No"
}
],
"validations":[
{
"name":"required",

View File

@ -53,8 +53,8 @@
]
},
{
"question":"Business Process Brief",
"question_key":"business_process",
"question":"Remarks if any",
"question_key":"remarks",
"place_holder":"Enter the text",
"type":"1",
"api_properties":null,
@ -62,13 +62,6 @@
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties":null
}
@ -76,6 +69,26 @@
"is_repeatable":"1",
"group_title":"Key Products and Business Contribution",
"group_key":"key_products_contribution"
}
},
{
"question":"Business Process Brief",
"question_key":"business_process",
"place_holder":"Enter the text",
"type":"7",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties":null
}
]
}

View File

@ -79,6 +79,26 @@
}
]
},
{
"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
}
]
},
{
"question":"Is this the main business account",
"question_key":"is_main",