Fairoj : Template changes for SMC Credit PD Feedback 2
This commit is contained in:
parent
a14b9f8c9f
commit
b0a98424fd
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1,215 +1,350 @@
|
|||||||
{
|
{
|
||||||
"section_id":"13",
|
"section_id": "13",
|
||||||
"section_name":"Stock details",
|
"section_name": "Stock details",
|
||||||
"onsubmit":[],
|
"onsubmit": [],
|
||||||
"questions":[
|
"questions": [
|
||||||
{
|
{
|
||||||
"question":[
|
"question": "Is stock applicable to the business (Yes / No)",
|
||||||
{
|
"question_key": "stock_info_available",
|
||||||
"question":"Name of trading goods/manufacturing goods (raw material/finished goods)/ Service Provided",
|
"type": "2",
|
||||||
"question_key":"provider_name",
|
"field_width": "45",
|
||||||
"place_holder":"Enter text",
|
"api_properties": null,
|
||||||
"type":"1",
|
"onchange_properties": [
|
||||||
"api_properties":null,
|
{
|
||||||
"answers":null,
|
"purpose": "FORM_CTRL",
|
||||||
"onchange_properties":null,
|
"form_controls": [
|
||||||
"is_repeatable":null,
|
{
|
||||||
"field_type":"string",
|
"insert_index": "stock_info_available",
|
||||||
"validations":[
|
"expression": "(String('stock_info_available') == String('No'))",
|
||||||
{
|
"value_keys": [
|
||||||
"name":"required",
|
"stock_info_available"
|
||||||
"isactive":"1",
|
],
|
||||||
"validator":"Validators.required",
|
"questions": [
|
||||||
"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",
|
"question": "Reason",
|
||||||
"expression":"(String('provider_observed') === String('yes'))",
|
"question_key": "stock_not_available_reason",
|
||||||
"value_keys":[
|
"type": "7",
|
||||||
"provider_observed"
|
"field_width": "100",
|
||||||
],
|
"api_properties": null,
|
||||||
"questions":[
|
"onchange_properties": null,
|
||||||
{
|
"is_repeatable": null,
|
||||||
"question":"Estimated Quantity",
|
"is_subfield": "1",
|
||||||
"question_key":"estimated_quantity",
|
"parent_question_key": "stock_info_available",
|
||||||
"type":"1",
|
"answers": null,
|
||||||
"field_width":"100",
|
"validations": [
|
||||||
"field_type":"num",
|
{
|
||||||
"api_properties":null,
|
"name": "required",
|
||||||
"onchange_properties":[
|
"isactive": "1",
|
||||||
{
|
"validator": "Validators.required",
|
||||||
"purpose": "validations",
|
"message": "Field required",
|
||||||
"validations": [
|
"value": null
|
||||||
{
|
}
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answer":"No",
|
"purpose": "FORM_CTRL",
|
||||||
"answer_id":"no"
|
"form_controls": [
|
||||||
},
|
{
|
||||||
{
|
"insert_index": "stock_info_available",
|
||||||
"answer":"Stock not required to be maintained",
|
"expression": "(String('stock_info_available') == String('Yes'))",
|
||||||
"answer_id":"not applicable"
|
"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":[
|
"is_repeatable": null,
|
||||||
{
|
"answers": [
|
||||||
"name":"required",
|
{
|
||||||
"isactive":"1",
|
"answer": "Yes",
|
||||||
"validator":"Validators.required",
|
"answer_id": "Yes"
|
||||||
"message":"Field required",
|
},
|
||||||
"value":null
|
{
|
||||||
}
|
"answer": "No",
|
||||||
]
|
"answer_id": "No"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
}
|
"validations": [
|
||||||
|
{
|
||||||
|
"name": "required",
|
||||||
|
"isactive": "1",
|
||||||
|
"validator": "Validators.required",
|
||||||
|
"message": "Field required",
|
||||||
|
"value": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -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",
|
||||||
|
|||||||
@ -53,8 +53,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question":"Business Process Brief",
|
"question":"Remarks if any",
|
||||||
"question_key":"business_process",
|
"question_key":"remarks",
|
||||||
"place_holder":"Enter the text",
|
"place_holder":"Enter the text",
|
||||||
"type":"1",
|
"type":"1",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
@ -62,13 +62,6 @@
|
|||||||
"is_repeatable":null,
|
"is_repeatable":null,
|
||||||
"field_type":"string",
|
"field_type":"string",
|
||||||
"validations":[
|
"validations":[
|
||||||
{
|
|
||||||
"name":"required",
|
|
||||||
"isactive":"1",
|
|
||||||
"validator":"Validators.required",
|
|
||||||
"message":"Required",
|
|
||||||
"value":null
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"onchange_properties":null
|
"onchange_properties":null
|
||||||
}
|
}
|
||||||
@ -76,6 +69,26 @@
|
|||||||
"is_repeatable":"1",
|
"is_repeatable":"1",
|
||||||
"group_title":"Key Products and Business Contribution",
|
"group_title":"Key Products and Business Contribution",
|
||||||
"group_key":"key_products_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
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -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":"Is this the main business account",
|
||||||
"question_key":"is_main",
|
"question_key":"is_main",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user