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", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
@ -290,13 +283,6 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
@ -318,15 +304,7 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
}, },
{ {
@ -346,15 +324,7 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
}, },
{ {
@ -374,15 +344,7 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
}, },
{ {
@ -402,13 +364,6 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
@ -430,15 +385,7 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
}, },
{ {
@ -458,15 +405,7 @@
"validator":"Validators.required", "validator":"Validators.required",
"message":"Required", "message":"Required",
"value":null "value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"([0-9]*)",
"message":"Numeric only",
"value":null
} }
] ]
}, },
{ {
@ -724,6 +663,118 @@
"is_repeatable":"1", "is_repeatable":"1",
"group_key":"financial_info", "group_key":"financial_info",
"group_title":"Financial Information" "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

@ -2,9 +2,138 @@
"section_id": "13", "section_id": "13",
"section_name": "Stock details", "section_name": "Stock details",
"onsubmit": [], "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": [ "questions": [
{ {
"question": [ "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": "Name of trading goods/manufacturing goods (raw material/finished goods)/ Service Provided",
"question_key": "provider_name", "question_key": "provider_name",
@ -50,7 +179,8 @@
"value": null "value": null
} }
], ],
"onchange_properties": [ { "onchange_properties": [
{
"purpose": "FORM_CTRL", "purpose": "FORM_CTRL",
"form_controls": [ "form_controls": [
{ {
@ -78,7 +208,10 @@
"message": "Required", "message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ", "value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": null, "validation_to": null,
"value_keys": ["estimated_quantity","estimated_stock_value"] "value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
}, },
{ {
"name": "required", "name": "required",
@ -87,7 +220,10 @@
"message": "Required", "message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ", "value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": "estimated_stock_value", "validation_to": "estimated_stock_value",
"value_keys": ["estimated_quantity","estimated_stock_value"] "value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
} }
] ]
} }
@ -96,8 +232,7 @@
"is_subfield": "1", "is_subfield": "1",
"parent_question_key": "provider_observed", "parent_question_key": "provider_observed",
"answers": null, "answers": null,
"validations":[ "validations": []
]
}, },
{ {
"question": "UOM", "question": "UOM",
@ -148,7 +283,10 @@
"message": "Required", "message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ", "value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": null, "validation_to": null,
"value_keys": ["estimated_quantity","estimated_stock_value"] "value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
}, },
{ {
"name": "required", "name": "required",
@ -157,7 +295,10 @@
"message": "Required", "message": "Required",
"value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ", "value": "(String('estimated_quantity') != String('')) || (String('estimated_stock_value') != String('')) ",
"validation_to": "estimated_quantity", "validation_to": "estimated_quantity",
"value_keys": ["estimated_quantity","estimated_stock_value"] "value_keys": [
"estimated_quantity",
"estimated_stock_value"
]
} }
] ]
} }
@ -166,39 +307,33 @@
"is_subfield": "1", "is_subfield": "1",
"parent_question_key": "provider_observed", "parent_question_key": "provider_observed",
"answers": null, "answers": null,
"validations":[ "validations": []
}
] ]
} }
] } ] }] ]
}
]
} }
], ],
"is_repeatable": "1", "is_repeatable": "1",
"group_title": "Stock details", "group_title": "Stock details",
"group_key": "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_repeatable": null,
"is_subfield":"1",
"parent_question_key":"provider_observed",
"answers": [ "answers": [
{ {
"answer": "Yes", "answer": "Yes",
"answer_id":"yes" "answer_id": "Yes"
}, },
{ {
"answer": "No", "answer": "No",
"answer_id":"no" "answer_id": "No"
},
{
"answer":"Stock not required to be maintained",
"answer_id":"not applicable"
} }
], ],
"validations": [ "validations": [

View File

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

View File

@ -52,11 +52,29 @@
} }
] ]
}, },
{
"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
}
],
"is_repeatable":"1",
"group_title":"Key Products and Business Contribution",
"group_key":"key_products_contribution"
},
{ {
"question":"Business Process Brief", "question":"Business Process Brief",
"question_key":"business_process", "question_key":"business_process",
"place_holder":"Enter the text", "place_holder":"Enter the text",
"type":"1", "type":"7",
"api_properties":null, "api_properties":null,
"answers":null, "answers":null,
"is_repeatable":null, "is_repeatable":null,
@ -72,10 +90,5 @@
], ],
"onchange_properties":null "onchange_properties":null
} }
],
"is_repeatable":"1",
"group_title":"Key Products and Business Contribution",
"group_key":"key_products_contribution"
}
] ]
} }

View File

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