fix: hide reject-fields in return SCR

This commit is contained in:
s-aga-r 2022-11-16 14:25:06 +05:30
parent 8a73e963ce
commit 7dd7617ec7
2 changed files with 1187 additions and 1184 deletions

View File

@ -1,488 +1,490 @@
{ {
"actions": [], "actions": [],
"autoname": "hash", "autoname": "hash",
"creation": "2022-04-13 16:05:55.395695", "creation": "2022-04-13 16:05:55.395695",
"doctype": "DocType", "doctype": "DocType",
"document_type": "Document", "document_type": "Document",
"editable_grid": 1, "editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"item_code", "item_code",
"column_break_2", "column_break_2",
"item_name", "item_name",
"section_break_4", "section_break_4",
"description", "description",
"brand", "brand",
"image_column", "image_column",
"image", "image",
"image_view", "image_view",
"received_and_accepted", "received_and_accepted",
"received_qty", "received_qty",
"qty", "qty",
"rejected_qty", "rejected_qty",
"returned_qty", "returned_qty",
"col_break2", "col_break2",
"stock_uom", "stock_uom",
"conversion_factor", "conversion_factor",
"tracking_section", "tracking_section",
"col_break_tracking_section", "col_break_tracking_section",
"rate_and_amount", "rate_and_amount",
"rate", "rate",
"amount", "amount",
"recalculate_rate", "recalculate_rate",
"column_break_19", "column_break_19",
"rm_cost_per_qty", "rm_cost_per_qty",
"service_cost_per_qty", "service_cost_per_qty",
"additional_cost_per_qty", "additional_cost_per_qty",
"rm_supp_cost", "rm_supp_cost",
"warehouse_and_reference", "warehouse_and_reference",
"warehouse", "warehouse",
"rejected_warehouse", "rejected_warehouse",
"subcontracting_order", "subcontracting_order",
"column_break_40", "column_break_40",
"schedule_date", "schedule_date",
"quality_inspection", "quality_inspection",
"subcontracting_order_item", "subcontracting_order_item",
"subcontracting_receipt_item", "subcontracting_receipt_item",
"section_break_45", "section_break_45",
"bom", "bom",
"serial_no", "serial_no",
"col_break5", "col_break5",
"batch_no", "batch_no",
"rejected_serial_no", "rejected_serial_no",
"manufacture_details", "manufacture_details",
"manufacturer", "manufacturer",
"column_break_16", "column_break_16",
"manufacturer_part_no", "manufacturer_part_no",
"accounting_details_section", "accounting_details_section",
"expense_account", "expense_account",
"accounting_dimensions_section", "accounting_dimensions_section",
"cost_center", "cost_center",
"dimension_col_break", "dimension_col_break",
"project", "project",
"section_break_80", "section_break_80",
"page_break" "page_break"
], ],
"fields": [ "fields": [
{ {
"bold": 1, "bold": 1,
"columns": 3, "columns": 3,
"fieldname": "item_code", "fieldname": "item_code",
"fieldtype": "Link", "fieldtype": "Link",
"in_global_search": 1, "in_global_search": 1,
"in_list_view": 1, "in_list_view": 1,
"label": "Item Code", "label": "Item Code",
"options": "Item", "options": "Item",
"print_width": "100px", "print_width": "100px",
"reqd": 1, "reqd": 1,
"search_index": 1, "search_index": 1,
"width": "100px" "width": "100px"
}, },
{ {
"fieldname": "column_break_2", "fieldname": "column_break_2",
"fieldtype": "Column Break" "fieldtype": "Column Break"
}, },
{ {
"fieldname": "item_name", "fieldname": "item_name",
"fieldtype": "Data", "fieldtype": "Data",
"in_global_search": 1, "in_global_search": 1,
"label": "Item Name", "label": "Item Name",
"print_hide": 1, "print_hide": 1,
"reqd": 1 "reqd": 1
}, },
{ {
"collapsible": 1, "collapsible": 1,
"fieldname": "section_break_4", "fieldname": "section_break_4",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Description" "label": "Description"
}, },
{ {
"fieldname": "description", "fieldname": "description",
"fieldtype": "Text Editor", "fieldtype": "Text Editor",
"label": "Description", "label": "Description",
"print_width": "300px", "print_width": "300px",
"reqd": 1, "reqd": 1,
"width": "300px" "width": "300px"
}, },
{ {
"fieldname": "image", "fieldname": "image",
"fieldtype": "Attach", "fieldtype": "Attach",
"hidden": 1, "hidden": 1,
"label": "Image" "label": "Image"
}, },
{ {
"fieldname": "image_view", "fieldname": "image_view",
"fieldtype": "Image", "fieldtype": "Image",
"label": "Image View", "label": "Image View",
"options": "image", "options": "image",
"print_hide": 1 "print_hide": 1
}, },
{ {
"fieldname": "received_and_accepted", "fieldname": "received_and_accepted",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Received and Accepted" "label": "Received and Accepted"
}, },
{ {
"bold": 1, "bold": 1,
"default": "0", "default": "0",
"fieldname": "received_qty", "fieldname": "received_qty",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Received Quantity", "label": "Received Quantity",
"no_copy": 1, "no_copy": 1,
"print_hide": 1, "print_hide": 1,
"print_width": "100px", "print_width": "100px",
"read_only": 1, "read_only": 1,
"reqd": 1, "reqd": 1,
"width": "100px" "width": "100px"
}, },
{ {
"columns": 2, "columns": 2,
"fieldname": "qty", "fieldname": "qty",
"fieldtype": "Float", "fieldtype": "Float",
"in_list_view": 1, "in_list_view": 1,
"label": "Accepted Quantity", "label": "Accepted Quantity",
"no_copy": 1, "no_copy": 1,
"print_width": "100px", "print_width": "100px",
"width": "100px" "width": "100px"
}, },
{ {
"columns": 1, "columns": 1,
"fieldname": "rejected_qty", "depends_on": "eval: !parent.is_return",
"fieldtype": "Float", "fieldname": "rejected_qty",
"in_list_view": 1, "fieldtype": "Float",
"label": "Rejected Quantity", "in_list_view": 1,
"no_copy": 1, "label": "Rejected Quantity",
"print_hide": 1, "no_copy": 1,
"print_width": "100px", "print_hide": 1,
"width": "100px" "print_width": "100px",
}, "width": "100px"
{ },
"fieldname": "col_break2", {
"fieldtype": "Column Break", "fieldname": "col_break2",
"print_hide": 1 "fieldtype": "Column Break",
}, "print_hide": 1
{ },
"fieldname": "stock_uom", {
"fieldtype": "Link", "fieldname": "stock_uom",
"label": "Stock UOM", "fieldtype": "Link",
"options": "UOM", "label": "Stock UOM",
"print_hide": 1, "options": "UOM",
"print_width": "100px", "print_hide": 1,
"read_only": 1, "print_width": "100px",
"reqd": 1, "read_only": 1,
"width": "100px" "reqd": 1,
}, "width": "100px"
{ },
"default": "1", {
"fieldname": "conversion_factor", "default": "1",
"fieldtype": "Float", "fieldname": "conversion_factor",
"hidden": 1, "fieldtype": "Float",
"label": "Conversion Factor", "hidden": 1,
"read_only": 1 "label": "Conversion Factor",
}, "read_only": 1
{ },
"fieldname": "rate_and_amount", {
"fieldtype": "Section Break", "fieldname": "rate_and_amount",
"label": "Rate and Amount" "fieldtype": "Section Break",
}, "label": "Rate and Amount"
{ },
"bold": 1, {
"columns": 2, "bold": 1,
"fieldname": "rate", "columns": 2,
"fieldtype": "Currency", "fieldname": "rate",
"in_list_view": 1, "fieldtype": "Currency",
"label": "Rate", "in_list_view": 1,
"options": "currency", "label": "Rate",
"print_width": "100px", "options": "currency",
"read_only": 1, "print_width": "100px",
"read_only_depends_on": "eval: doc.recalculate_rate", "read_only": 1,
"width": "100px" "read_only_depends_on": "eval: doc.recalculate_rate",
}, "width": "100px"
{ },
"fieldname": "amount", {
"fieldtype": "Currency", "fieldname": "amount",
"in_list_view": 1, "fieldtype": "Currency",
"label": "Amount", "in_list_view": 1,
"options": "currency", "label": "Amount",
"read_only": 1 "options": "currency",
}, "read_only": 1
{ },
"fieldname": "column_break_19", {
"fieldtype": "Column Break" "fieldname": "column_break_19",
}, "fieldtype": "Column Break"
{ },
"fieldname": "rm_cost_per_qty", {
"fieldtype": "Currency", "fieldname": "rm_cost_per_qty",
"label": "Raw Material Cost Per Qty", "fieldtype": "Currency",
"no_copy": 1, "label": "Raw Material Cost Per Qty",
"read_only": 1 "no_copy": 1,
}, "read_only": 1
{ },
"fieldname": "service_cost_per_qty", {
"fieldtype": "Currency", "fieldname": "service_cost_per_qty",
"label": "Service Cost Per Qty", "fieldtype": "Currency",
"read_only": 1, "label": "Service Cost Per Qty",
"reqd": 1 "read_only": 1,
}, "reqd": 1
{ },
"default": "0", {
"fieldname": "additional_cost_per_qty", "default": "0",
"fieldtype": "Currency", "fieldname": "additional_cost_per_qty",
"label": "Additional Cost Per Qty", "fieldtype": "Currency",
"read_only": 1 "label": "Additional Cost Per Qty",
}, "read_only": 1
{ },
"fieldname": "warehouse_and_reference", {
"fieldtype": "Section Break", "fieldname": "warehouse_and_reference",
"label": "Warehouse and Reference" "fieldtype": "Section Break",
}, "label": "Warehouse and Reference"
{ },
"bold": 1, {
"fieldname": "warehouse", "bold": 1,
"fieldtype": "Link", "fieldname": "warehouse",
"in_list_view": 1, "fieldtype": "Link",
"label": "Accepted Warehouse", "in_list_view": 1,
"options": "Warehouse", "label": "Accepted Warehouse",
"print_hide": 1, "options": "Warehouse",
"print_width": "100px", "print_hide": 1,
"width": "100px" "print_width": "100px",
}, "width": "100px"
{ },
"fieldname": "rejected_warehouse", {
"fieldtype": "Link", "depends_on": "eval: !parent.is_return",
"label": "Rejected Warehouse", "fieldname": "rejected_warehouse",
"no_copy": 1, "fieldtype": "Link",
"options": "Warehouse", "label": "Rejected Warehouse",
"print_hide": 1, "no_copy": 1,
"print_width": "100px", "options": "Warehouse",
"width": "100px" "print_hide": 1,
}, "print_width": "100px",
{ "width": "100px"
"depends_on": "eval:!doc.__islocal", },
"fieldname": "quality_inspection", {
"fieldtype": "Link", "depends_on": "eval:!doc.__islocal",
"label": "Quality Inspection", "fieldname": "quality_inspection",
"no_copy": 1, "fieldtype": "Link",
"options": "Quality Inspection", "label": "Quality Inspection",
"print_hide": 1 "no_copy": 1,
}, "options": "Quality Inspection",
{ "print_hide": 1
"fieldname": "column_break_40", },
"fieldtype": "Column Break" {
}, "fieldname": "column_break_40",
{ "fieldtype": "Column Break"
"fieldname": "subcontracting_order", },
"fieldtype": "Link", {
"label": "Subcontracting Order", "fieldname": "subcontracting_order",
"no_copy": 1, "fieldtype": "Link",
"options": "Subcontracting Order", "label": "Subcontracting Order",
"print_width": "150px", "no_copy": 1,
"read_only": 1, "options": "Subcontracting Order",
"search_index": 1, "print_width": "150px",
"width": "150px" "read_only": 1,
}, "search_index": 1,
{ "width": "150px"
"fieldname": "schedule_date", },
"fieldtype": "Date", {
"label": "Required By", "fieldname": "schedule_date",
"print_hide": 1, "fieldtype": "Date",
"read_only": 1 "label": "Required By",
}, "print_hide": 1,
{ "read_only": 1
"fieldname": "section_break_45", },
"fieldtype": "Section Break" {
}, "fieldname": "section_break_45",
{ "fieldtype": "Section Break"
"depends_on": "eval:!doc.is_fixed_asset", },
"fieldname": "serial_no", {
"fieldtype": "Small Text", "depends_on": "eval:!doc.is_fixed_asset",
"in_list_view": 1, "fieldname": "serial_no",
"label": "Serial No", "fieldtype": "Small Text",
"no_copy": 1 "in_list_view": 1,
}, "label": "Serial No",
{ "no_copy": 1
"depends_on": "eval:!doc.is_fixed_asset", },
"fieldname": "batch_no", {
"fieldtype": "Link", "depends_on": "eval:!doc.is_fixed_asset",
"in_list_view": 1, "fieldname": "batch_no",
"label": "Batch No", "fieldtype": "Link",
"no_copy": 1, "in_list_view": 1,
"options": "Batch", "label": "Batch No",
"print_hide": 1 "no_copy": 1,
}, "options": "Batch",
{ "print_hide": 1
"depends_on": "eval:!doc.is_fixed_asset", },
"fieldname": "rejected_serial_no", {
"fieldtype": "Small Text", "depends_on": "eval: !parent.is_return",
"label": "Rejected Serial No", "fieldname": "rejected_serial_no",
"no_copy": 1, "fieldtype": "Small Text",
"print_hide": 1 "label": "Rejected Serial No",
}, "no_copy": 1,
{ "print_hide": 1
"fieldname": "subcontracting_order_item", },
"fieldtype": "Data", {
"hidden": 1, "fieldname": "subcontracting_order_item",
"label": "Subcontracting Order Item", "fieldtype": "Data",
"no_copy": 1, "hidden": 1,
"print_hide": 1, "label": "Subcontracting Order Item",
"print_width": "150px", "no_copy": 1,
"read_only": 1, "print_hide": 1,
"search_index": 1, "print_width": "150px",
"width": "150px" "read_only": 1,
}, "search_index": 1,
{ "width": "150px"
"fieldname": "col_break5", },
"fieldtype": "Column Break" {
}, "fieldname": "col_break5",
{ "fieldtype": "Column Break"
"fieldname": "bom", },
"fieldtype": "Link", {
"label": "BOM", "fieldname": "bom",
"no_copy": 1, "fieldtype": "Link",
"options": "BOM", "label": "BOM",
"print_hide": 1 "no_copy": 1,
}, "options": "BOM",
{ "print_hide": 1
"fetch_from": "item_code.brand", },
"fieldname": "brand", {
"fieldtype": "Link", "fetch_from": "item_code.brand",
"hidden": 1, "fieldname": "brand",
"label": "Brand", "fieldtype": "Link",
"options": "Brand", "hidden": 1,
"print_hide": 1, "label": "Brand",
"read_only": 1 "options": "Brand",
}, "print_hide": 1,
{ "read_only": 1
"fieldname": "rm_supp_cost", },
"fieldtype": "Currency", {
"hidden": 1, "fieldname": "rm_supp_cost",
"label": "Raw Materials Supplied Cost", "fieldtype": "Currency",
"no_copy": 1, "hidden": 1,
"options": "Company:company:default_currency", "label": "Raw Materials Supplied Cost",
"print_hide": 1, "no_copy": 1,
"print_width": "150px", "options": "Company:company:default_currency",
"read_only": 1, "print_hide": 1,
"width": "150px" "print_width": "150px",
}, "read_only": 1,
{ "width": "150px"
"fieldname": "expense_account", },
"fieldtype": "Link", {
"label": "Expense Account", "fieldname": "expense_account",
"options": "Account" "fieldtype": "Link",
}, "label": "Expense Account",
{ "options": "Account"
"collapsible": 1, },
"fieldname": "manufacture_details", {
"fieldtype": "Section Break", "collapsible": 1,
"label": "Manufacture" "fieldname": "manufacture_details",
}, "fieldtype": "Section Break",
{ "label": "Manufacture"
"fieldname": "manufacturer", },
"fieldtype": "Link", {
"label": "Manufacturer", "fieldname": "manufacturer",
"options": "Manufacturer" "fieldtype": "Link",
}, "label": "Manufacturer",
{ "options": "Manufacturer"
"fieldname": "column_break_16", },
"fieldtype": "Column Break" {
}, "fieldname": "column_break_16",
{ "fieldtype": "Column Break"
"fieldname": "manufacturer_part_no", },
"fieldtype": "Data", {
"label": "Manufacturer Part Number" "fieldname": "manufacturer_part_no",
}, "fieldtype": "Data",
{ "label": "Manufacturer Part Number"
"fieldname": "subcontracting_receipt_item", },
"fieldtype": "Data", {
"hidden": 1, "fieldname": "subcontracting_receipt_item",
"label": "Subcontracting Receipt Item", "fieldtype": "Data",
"no_copy": 1, "hidden": 1,
"print_hide": 1, "label": "Subcontracting Receipt Item",
"read_only": 1 "no_copy": 1,
}, "print_hide": 1,
{ "read_only": 1
"collapsible": 1, },
"fieldname": "image_column", {
"fieldtype": "Column Break" "collapsible": 1,
}, "fieldname": "image_column",
{ "fieldtype": "Column Break"
"fieldname": "tracking_section", },
"fieldtype": "Section Break" {
}, "fieldname": "tracking_section",
{ "fieldtype": "Section Break"
"fieldname": "col_break_tracking_section", },
"fieldtype": "Column Break" {
}, "fieldname": "col_break_tracking_section",
{ "fieldtype": "Column Break"
"fieldname": "accounting_dimensions_section", },
"fieldtype": "Section Break", {
"label": "Accounting Dimensions" "fieldname": "accounting_dimensions_section",
}, "fieldtype": "Section Break",
{ "label": "Accounting Dimensions"
"fieldname": "project", },
"fieldtype": "Link", {
"label": "Project", "fieldname": "project",
"options": "Project", "fieldtype": "Link",
"print_hide": 1 "label": "Project",
}, "options": "Project",
{ "print_hide": 1
"fieldname": "dimension_col_break", },
"fieldtype": "Column Break" {
}, "fieldname": "dimension_col_break",
{ "fieldtype": "Column Break"
"default": ":Company", },
"depends_on": "eval:cint(erpnext.is_perpetual_inventory_enabled(parent.company))", {
"fieldname": "cost_center", "default": ":Company",
"fieldtype": "Link", "depends_on": "eval:cint(erpnext.is_perpetual_inventory_enabled(parent.company))",
"label": "Cost Center", "fieldname": "cost_center",
"options": "Cost Center", "fieldtype": "Link",
"print_hide": 1 "label": "Cost Center",
}, "options": "Cost Center",
{ "print_hide": 1
"fieldname": "section_break_80", },
"fieldtype": "Section Break" {
}, "fieldname": "section_break_80",
{ "fieldtype": "Section Break"
"allow_on_submit": 1, },
"default": "0", {
"fieldname": "page_break", "allow_on_submit": 1,
"fieldtype": "Check", "default": "0",
"label": "Page Break", "fieldname": "page_break",
"print_hide": 1 "fieldtype": "Check",
}, "label": "Page Break",
{ "print_hide": 1
"depends_on": "returned_qty", },
"fieldname": "returned_qty", {
"fieldtype": "Float", "depends_on": "returned_qty",
"label": "Returned Qty", "fieldname": "returned_qty",
"no_copy": 1, "fieldtype": "Float",
"print_hide": 1, "label": "Returned Qty",
"read_only": 1 "no_copy": 1,
}, "print_hide": 1,
{ "read_only": 1
"fieldname": "accounting_details_section", },
"fieldtype": "Section Break", {
"label": "Accounting Details" "fieldname": "accounting_details_section",
}, "fieldtype": "Section Break",
{ "label": "Accounting Details"
"default": "1", },
"fieldname": "recalculate_rate", {
"fieldtype": "Check", "default": "1",
"label": "Recalculate Rate" "fieldname": "recalculate_rate",
} "fieldtype": "Check",
], "label": "Recalculate Rate"
"idx": 1, }
"istable": 1, ],
"links": [], "idx": 1,
"modified": "2022-08-20 17:16:48.269164", "istable": 1,
"modified_by": "Administrator", "links": [],
"module": "Subcontracting", "modified": "2022-11-16 14:21:26.125815",
"name": "Subcontracting Receipt Item", "modified_by": "Administrator",
"naming_rule": "Random", "module": "Subcontracting",
"owner": "Administrator", "name": "Subcontracting Receipt Item",
"permissions": [], "naming_rule": "Random",
"quick_entry": 1, "owner": "Administrator",
"sort_field": "modified", "permissions": [],
"sort_order": "DESC", "quick_entry": 1,
"states": [] "sort_field": "modified",
"sort_order": "DESC",
"states": []
} }