From c7d9843e3d357b24175a937aed9bf120ebfe447d Mon Sep 17 00:00:00 2001 From: Kitti U Date: Sun, 19 Jan 2025 12:04:25 +0700 Subject: [PATCH] Start working on Sample Record --- lpp_co/custom/material_request.py | 27 + lpp_co/fixtures/custom_field.json | 2302 +++++++++++++++++++++++++- lpp_co/hooks.py | 42 + lpp_co/public/js/material_request.js | 25 + 4 files changed, 2328 insertions(+), 68 deletions(-) create mode 100644 lpp_co/custom/material_request.py create mode 100644 lpp_co/public/js/material_request.js diff --git a/lpp_co/custom/material_request.py b/lpp_co/custom/material_request.py new file mode 100644 index 0000000..59e25c3 --- /dev/null +++ b/lpp_co/custom/material_request.py @@ -0,0 +1,27 @@ +import frappe # type: ignore +from erpnext.stock.doctype.material_request.material_request import MaterialRequest + + +class MaterialRequestLPP(MaterialRequest): + + def validate(self): + self.validate_sample_record_punctual_status() + super().validate() + + def validate_sample_record_punctual_status(self): + def set_status(plan, actual): + if plan and actual: + return "On Time" if plan >= actual else "Late" + return "-" + + self.custom_status_mold_creation = set_status(self.custom_plan_mold_creation, self.custom_actual_mold_creation) + self.custom_status_sample_production = set_status(self.custom_plan_sample_production, self.custom_actual_sample_production) + self.custom_status_customer_delivery = set_status(self.custom_plan_customer_delivery, self.custom_actual_customer_delivery) + + def validate_material_request_type(self): + """ Override """ + if self.material_request_type not in ("Manufacture", "Customer Provided"): + self.customer = None + + if self.material_request_type != "Manufacture": + self.custom_sample_record = 0 diff --git a/lpp_co/fixtures/custom_field.json b/lpp_co/fixtures/custom_field.json index 6260d8b..305f00f 100644 --- a/lpp_co/fixtures/custom_field.json +++ b/lpp_co/fixtures/custom_field.json @@ -113,6 +113,63 @@ "unique": 0, "width": null }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": "eval:doc.material_request_type==\"Manufacture\"", + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sample_record", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "material_request_type", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sample Record", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 08:54:46.147882", + "module": null, + "name": "Material Request-custom_sample_record", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -683,6 +740,63 @@ "unique": 0, "width": null }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": "eval:doc.custom_sample_record", + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sample_record_info", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "items", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sample Record", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:21:26.373942", + "module": null, + "name": "Material Request-custom_sample_record_info", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -742,7 +856,7 @@ }, { "allow_in_quick_entry": 0, - "allow_on_submit": 0, + "allow_on_submit": 1, "bold": 0, "collapsible": 0, "collapsible_depends_on": null, @@ -752,11 +866,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Quality Inspection", + "dt": "Material Request", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_section_break_236ps", - "fieldtype": "Section Break", + "fieldname": "custom_priority", + "fieldtype": "Select", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -767,19 +881,19 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "sample_size", + "insert_after": "custom_sample_record_info", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Priority", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-18 15:05:53.419312", + "modified": "2025-01-19 10:21:26.484436", "module": null, - "name": "Quality Inspection-custom_section_break_236ps", + "name": "Material Request-custom_priority", "no_copy": 0, "non_negative": 0, - "options": null, + "options": "Flexible\nHigh", "permlevel": 0, "placeholder": null, "precision": "", @@ -809,11 +923,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Quality Inspection", + "dt": "Material Request", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_open_quality_inspection_result", - "fieldtype": "Button", + "fieldname": "custom_column_break_yi4jl", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -824,16 +938,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "quality_inspection_template", + "insert_after": "custom_priority", "is_system_generated": 0, "is_virtual": 0, - "label": "Open Quality Inspection Result", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-18 15:22:44.589365", + "modified": "2025-01-19 10:21:26.571680", "module": null, - "name": "Quality Inspection-custom_open_quality_inspection_result", + "name": "Material Request-custom_column_break_yi4jl", "no_copy": 0, "non_negative": 0, "options": null, @@ -869,8 +983,8 @@ "dt": "Quality Inspection", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_mhnva", - "fieldtype": "Column Break", + "fieldname": "custom_section_break_236ps", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -881,16 +995,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_open_quality_inspection_result", + "insert_after": "sample_size", "is_system_generated": 0, "is_virtual": 0, "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-18 15:05:53.520877", + "modified": "2025-01-18 15:05:53.419312", "module": null, - "name": "Quality Inspection-custom_column_break_mhnva", + "name": "Quality Inspection-custom_section_break_236ps", "no_copy": 0, "non_negative": 0, "options": null, @@ -911,6 +1025,63 @@ "unique": 0, "width": null }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_status_of_sample_record", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_yi4jl", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Status of Sample Record", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:35:49.043279", + "module": null, + "name": "Material Request-custom_status_of_sample_record", + "no_copy": 0, + "non_negative": 0, + "options": "Not Started\nMolding\nProducing\nDelivered", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -923,11 +1094,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Quality Inspection", + "dt": "Material Request", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_open_visual_inspection", - "fieldtype": "Button", + "fieldname": "custom_section_break_dskvi", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -938,16 +1109,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_mhnva", + "insert_after": "custom_status_of_sample_record", "is_system_generated": 0, "is_virtual": 0, - "label": "Open Visual Inspection", + "label": "Planning VS Actuals", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 16:10:32.035036", + "modified": "2025-01-19 11:00:11.681961", "module": null, - "name": "Quality Inspection-custom_open_visual_inspection", + "name": "Material Request-custom_section_break_dskvi", "no_copy": 0, "non_negative": 0, "options": null, @@ -983,7 +1154,7 @@ "dt": "Quality Inspection", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_open_specification_inspection", + "fieldname": "custom_open_quality_inspection_result", "fieldtype": "Button", "hidden": 0, "hide_border": 0, @@ -995,16 +1166,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_open_visual_inspection", + "insert_after": "quality_inspection_template", "is_system_generated": 0, "is_virtual": 0, - "label": "Open Specification Inspection", + "label": "Open Quality Inspection Result", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 16:10:43.064059", + "modified": "2025-01-18 15:22:44.589365", "module": null, - "name": "Quality Inspection-custom_open_specification_inspection", + "name": "Quality Inspection-custom_open_quality_inspection_result", "no_copy": 0, "non_negative": 0, "options": null, @@ -1037,11 +1208,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Quality Inspection", + "dt": "Material Request", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_open_functional_testing", - "fieldtype": "Button", + "fieldname": "custom_planned", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1052,16 +1223,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_open_specification_inspection", + "insert_after": "custom_section_break_dskvi", "is_system_generated": 0, "is_virtual": 0, - "label": "Open Functional Testing", + "label": "Planned", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 16:10:52.620105", + "modified": "2025-01-19 11:04:09.569373", "module": null, - "name": "Quality Inspection-custom_open_functional_testing", + "name": "Material Request-custom_planned", "no_copy": 0, "non_negative": 0, "options": null, @@ -1097,8 +1268,8 @@ "dt": "Quality Inspection", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_inspection_results", - "fieldtype": "Tab Break", + "fieldname": "custom_column_break_mhnva", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1109,16 +1280,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "amended_from", + "insert_after": "custom_open_quality_inspection_result", "is_system_generated": 0, "is_virtual": 0, - "label": "Inspection Results", + "label": "", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 22:20:32.487554", + "modified": "2025-01-18 15:05:53.520877", "module": null, - "name": "Quality Inspection-custom_inspection_results", + "name": "Quality Inspection-custom_column_break_mhnva", "no_copy": 0, "non_negative": 0, "options": null, @@ -1141,7 +1312,7 @@ }, { "allow_in_quick_entry": 0, - "allow_on_submit": 0, + "allow_on_submit": 1, "bold": 0, "collapsible": 0, "collapsible_depends_on": null, @@ -1151,11 +1322,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Quality Inspection", + "dt": "Material Request", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_visual_inspection_html", - "fieldtype": "HTML", + "fieldname": "custom_plan_mold_creation", + "fieldtype": "Date", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1166,16 +1337,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_inspection_results", + "insert_after": "custom_planned", "is_system_generated": 0, "is_virtual": 0, - "label": "Visual Inspection HTML", + "label": "Mold Creation", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 22:51:58.289565", + "modified": "2025-01-19 11:10:56.220350", "module": null, - "name": "Quality Inspection-custom_visual_inspection_html", + "name": "Material Request-custom_plan_mold_creation", "no_copy": 0, "non_negative": 0, "options": null, @@ -1211,8 +1382,8 @@ "dt": "Quality Inspection", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_specification_inspection_html", - "fieldtype": "HTML", + "fieldname": "custom_open_visual_inspection", + "fieldtype": "Button", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1223,16 +1394,16 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_visual_inspection_html", + "insert_after": "custom_column_break_mhnva", "is_system_generated": 0, "is_virtual": 0, - "label": "Specification Inspection HTML", + "label": "Open Visual Inspection", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 23:09:47.395477", + "modified": "2025-01-17 16:10:32.035036", "module": null, - "name": "Quality Inspection-custom_specification_inspection_html", + "name": "Quality Inspection-custom_open_visual_inspection", "no_copy": 0, "non_negative": 0, "options": null, @@ -1255,7 +1426,7 @@ }, { "allow_in_quick_entry": 0, - "allow_on_submit": 0, + "allow_on_submit": 1, "bold": 0, "collapsible": 0, "collapsible_depends_on": null, @@ -1265,11 +1436,11 @@ "description": null, "docstatus": 0, "doctype": "Custom Field", - "dt": "Quality Inspection", + "dt": "Material Request", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_functional_testing_html", - "fieldtype": "HTML", + "fieldname": "custom_plan_sample_production", + "fieldtype": "Date", "hidden": 0, "hide_border": 0, "hide_days": 0, @@ -1280,16 +1451,2011 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_specification_inspection_html", + "insert_after": "custom_plan_mold_creation", "is_system_generated": 0, "is_virtual": 0, - "label": "Functional Testing HTML", + "label": "Sample Production", "length": 0, "link_filters": null, "mandatory_depends_on": null, - "modified": "2025-01-17 23:10:04.173851", + "modified": "2025-01-19 11:10:56.319664", "module": null, - "name": "Quality Inspection-custom_functional_testing_html", + "name": "Material Request-custom_plan_sample_production", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Quality Inspection", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_open_specification_inspection", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_open_visual_inspection", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Open Specification Inspection", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-17 16:10:43.064059", + "module": null, + "name": "Quality Inspection-custom_open_specification_inspection", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_plan_customer_delivery", + "fieldtype": "Date", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_plan_sample_production", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Customer Delivery", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:10:56.411211", + "module": null, + "name": "Material Request-custom_plan_customer_delivery", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Quality Inspection", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_open_functional_testing", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_open_specification_inspection", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Open Functional Testing", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-17 16:10:52.620105", + "module": null, + "name": "Quality Inspection-custom_open_functional_testing", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_plan_remark", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_plan_customer_delivery", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Remark", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:05.964213", + "module": null, + "name": "Material Request-custom_plan_remark", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_p4icq", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_plan_remark", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Actuals", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:00:12.063194", + "module": null, + "name": "Material Request-custom_column_break_p4icq", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_actual_mold_creation", + "fieldtype": "Date", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_p4icq", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Mold Creation", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:06.101515", + "module": null, + "name": "Material Request-custom_actual_mold_creation", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_actual_sample_production", + "fieldtype": "Date", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_actual_mold_creation", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sample Production", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:06.203771", + "module": null, + "name": "Material Request-custom_actual_sample_production", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_actual_customer_delivery", + "fieldtype": "Date", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_actual_sample_production", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Customer Delivery", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:06.295552", + "module": null, + "name": "Material Request-custom_actual_customer_delivery", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_actual_remark", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_actual_customer_delivery", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Remark", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:06.389641", + "module": null, + "name": "Material Request-custom_actual_remark", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_yivb6", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_actual_remark", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Punctuality Status", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:00:12.162646", + "module": null, + "name": "Material Request-custom_column_break_yivb6", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_status_mold_creation", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_yivb6", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Mold Creation", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:00:12.261232", + "module": null, + "name": "Material Request-custom_status_mold_creation", + "no_copy": 0, + "non_negative": 0, + "options": "-\nOn Time\nLate", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_status_sample_production", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_status_mold_creation", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sample Production", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:06.517234", + "module": null, + "name": "Material Request-custom_status_sample_production", + "no_copy": 0, + "non_negative": 0, + "options": "-\nOn Time\nLate", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Quality Inspection", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_inspection_results", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "amended_from", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Inspection Results", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-17 22:20:32.487554", + "module": null, + "name": "Quality Inspection-custom_inspection_results", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_status_customer_delivery", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_status_sample_production", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Customer Delivery", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:08:06.610874", + "module": null, + "name": "Material Request-custom_status_customer_delivery", + "no_copy": 0, + "non_negative": 0, + "options": "-\nOn Time\nLate", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Quality Inspection", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_visual_inspection_html", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_inspection_results", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Visual Inspection HTML", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-17 22:51:58.289565", + "module": null, + "name": "Quality Inspection-custom_visual_inspection_html", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_ho5bc", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_status_customer_delivery", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Employee Acknowledgement", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:48:07.454565", + "module": null, + "name": "Material Request-custom_section_break_ho5bc", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Quality Inspection", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_specification_inspection_html", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_visual_inspection_html", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Specification Inspection HTML", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-17 23:09:47.395477", + "module": null, + "name": "Quality Inspection-custom_specification_inspection_html", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_operated_by", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_section_break_ho5bc", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Operated By", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:48:07.540011", + "module": null, + "name": "Material Request-custom_operated_by", + "no_copy": 0, + "non_negative": 0, + "options": "Employee", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Quality Inspection", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_functional_testing_html", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_specification_inspection_html", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Functional Testing HTML", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-17 23:10:04.173851", + "module": null, + "name": "Quality Inspection-custom_functional_testing_html", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_h6k5j", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_operated_by", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:48:32.839785", + "module": null, + "name": "Material Request-custom_column_break_h6k5j", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_mkt_acknowledgement", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_h6k5j", + "is_system_generated": 0, + "is_virtual": 0, + "label": "MKT Acknowledgement", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:48:07.622745", + "module": null, + "name": "Material Request-custom_mkt_acknowledgement", + "no_copy": 0, + "non_negative": 0, + "options": "Employee", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_qa_acknowledgement", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_mkt_acknowledgement", + "is_system_generated": 0, + "is_virtual": 0, + "label": "QA Acknowledgement", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 10:48:07.711486", + "module": null, + "name": "Material Request-custom_qa_acknowledgement", + "no_copy": 0, + "non_negative": 0, + "options": "Employee", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_zh4rg", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_qa_acknowledgement", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sample Production", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:50:36.999712", + "module": null, + "name": "Material Request-custom_section_break_zh4rg", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sample_production_problem", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_section_break_zh4rg", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Problems", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:50:37.097005", + "module": null, + "name": "Material Request-custom_sample_production_problem", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_wukc0", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sample_production_problem", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:50:37.195126", + "module": null, + "name": "Material Request-custom_column_break_wukc0", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sample_production_action", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_wukc0", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Actions", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:50:37.285684", + "module": null, + "name": "Material Request-custom_sample_production_action", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_ntdfo", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sample_production_action", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:50:37.378588", + "module": null, + "name": "Material Request-custom_column_break_ntdfo", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sample_production_lesson_learnt", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_ntdfo", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Lessons Learnt", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:55.594911", + "module": null, + "name": "Material Request-custom_sample_production_lesson_learnt", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_giwrt", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sample_production_lesson_learnt", + "is_system_generated": 0, + "is_virtual": 0, + "label": "1st Mass Production", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:55.749565", + "module": null, + "name": "Material Request-custom_section_break_giwrt", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_first_production_problem", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_section_break_giwrt", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Problems", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:55.846354", + "module": null, + "name": "Material Request-custom_first_production_problem", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_first_production_work_order", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_first_production_problem", + "is_system_generated": 0, + "is_virtual": 0, + "label": "1st Production Work Order", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:58:46.758053", + "module": null, + "name": "Material Request-custom_first_production_work_order", + "no_copy": 0, + "non_negative": 0, + "options": "Work Order", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_yeonm", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_first_production_work_order", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:55.946324", + "module": null, + "name": "Material Request-custom_column_break_yeonm", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_first_production_action", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_yeonm", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Actions", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:56.038308", + "module": null, + "name": "Material Request-custom_first_production_action", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_bwn2b", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_first_production_action", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:56.144484", + "module": null, + "name": "Material Request-custom_column_break_bwn2b", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 1, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Material Request", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_first_production_lesson_learnt", + "fieldtype": "Small Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_bwn2b", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Lessons Learnt", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-01-19 11:54:56.237993", + "module": null, + "name": "Material Request-custom_first_production_lesson_learnt", "no_copy": 0, "non_negative": 0, "options": null, diff --git a/lpp_co/hooks.py b/lpp_co/hooks.py index 71bcf61..e1eed0b 100644 --- a/lpp_co/hooks.py +++ b/lpp_co/hooks.py @@ -50,6 +50,7 @@ "Quotation": "public/js/quotation.js", "Sales Order": "public/js/sales_order.js", "Item": "public/js/item.js", + "Material Request": "public/js/material_request.js" } doctype_list_js = { @@ -151,6 +152,7 @@ "Quality Inspection": "lpp_co.custom.quality_inspection.QualityInspectionLPP", "Quotation": "lpp_co.custom.quotation.QuotationLPP", "Sales Order": "lpp_co.custom.sales_order.SalesOrderLPP", + "Material Request": "lpp_co.custom.material_request.MaterialRequestLPP", } # Document Events @@ -308,6 +310,46 @@ "Item-custom_item_group_2", "Item-custom_item_group_name", "Item Quality Inspection Parameter-custom_inspection_method", + "Material Request-custom_sample_record", + "Material Request-main-field_order", + "Material Request-customer-depends_on", + "Material Request-custom_status_of_sample_record", + "Material Request-custom_column_break_yi4jl", + "Material Request-custom_priority", + "Material Request-custom_sample_record_info", + "Material Request-custom_column_break_h6k5j", + "Material Request-custom_qa_acknowledgement", + "Material Request-custom_mkt_acknowledgement", + "Material Request-custom_operated_by", + "Material Request-custom_section_break_ho5bc", + "Material Request-custom_plan_customer_delivery", + "Material Request-custom_plan_sample_production", + "Material Request-custom_plan_mold_creation", + "Material Request-custom_status_customer_delivery", + "Material Request-custom_status_sample_production", + "Material Request-custom_actual_remark", + "Material Request-custom_actual_customer_delivery", + "Material Request-custom_actual_sample_production", + "Material Request-custom_actual_mold_creation", + "Material Request-custom_plan_remark", + "Material Request-custom_planned", + "Material Request-custom_status_mold_creation", + "Material Request-custom_column_break_yivb6", + "Material Request-custom_column_break_p4icq", + "Material Request-custom_section_break_dskvi", + "Material Request-custom_first_production_work_order", + "Material Request-custom_first_production_lesson_learnt", + "Material Request-custom_column_break_bwn2b", + "Material Request-custom_first_production_action", + "Material Request-custom_column_break_yeonm", + "Material Request-custom_first_production_problem", + "Material Request-custom_section_break_giwrt", + "Material Request-custom_sample_production_lesson_learnt", + "Material Request-custom_column_break_ntdfo", + "Material Request-custom_sample_production_action", + "Material Request-custom_column_break_wukc0", + "Material Request-custom_sample_production_problem", + "Material Request-custom_section_break_zh4rg", ], ] ], diff --git a/lpp_co/public/js/material_request.js b/lpp_co/public/js/material_request.js new file mode 100644 index 0000000..4539cf0 --- /dev/null +++ b/lpp_co/public/js/material_request.js @@ -0,0 +1,25 @@ +frappe.ui.form.on("Material Request", { + + // Make sure that customer is requried for Manufacture and Sample Record + // But we have to incude the Customer Provided as per standard here + refresh: function (frm) { + frm.toggle_reqd("customer", ( + frm.doc.material_request_type == "Customer Provided" || + (frm.doc.material_request_type == "Manufacture" && frm.doc.custom_sample_record) + )) + }, + material_request_type: function (frm) { + frm.toggle_reqd("customer", ( + frm.doc.material_request_type == "Customer Provided" || + (frm.doc.material_request_type == "Manufacture" && frm.doc.custom_sample_record) + )); + frm.set_value("custom_sample_record", 0) + }, + custom_sample_record: function (frm) { + frm.toggle_reqd("customer", ( + frm.doc.material_request_type == "Customer Provided" || + (frm.doc.material_request_type == "Manufacture" && frm.doc.custom_sample_record) + )); + }, + +}); \ No newline at end of file