{
 "actions": [],
 "allow_import": 1,
 "autoname": "naming_series:",
 "creation": "2013-04-09 11:43:55",
 "doctype": "DocType",
 "document_type": "Document",
 "engine": "InnoDB",
 "field_order": [
  "items_section",
  "title",
  "naming_series",
  "stock_entry_type",
  "outgoing_stock_entry",
  "purpose",
  "add_to_transit",
  "work_order",
  "purchase_order",
  "delivery_note_no",
  "sales_invoice_no",
  "pick_list",
  "purchase_receipt_no",
  "col2",
  "company",
  "posting_date",
  "posting_time",
  "set_posting_time",
  "inspection_required",
  "from_bom",
  "apply_putaway_rule",
  "sb1",
  "bom_no",
  "fg_completed_qty",
  "cb1",
  "use_multi_level_bom",
  "get_items",
  "section_break_12",
  "from_warehouse",
  "source_warehouse_address",
  "source_address_display",
  "cb0",
  "to_warehouse",
  "target_warehouse_address",
  "target_address_display",
  "sb0",
  "scan_barcode",
  "items",
  "get_stock_and_rate",
  "section_break_19",
  "total_incoming_value",
  "column_break_22",
  "total_outgoing_value",
  "value_difference",
  "additional_costs_section",
  "additional_costs",
  "total_additional_costs",
  "contact_section",
  "supplier",
  "supplier_name",
  "supplier_address",
  "address_display",
  "accounting_dimensions_section",
  "project",
  "dimension_col_break",
  "printing_settings",
  "select_print_heading",
  "print_settings_col_break",
  "letter_head",
  "more_info",
  "is_opening",
  "remarks",
  "col5",
  "per_transferred",
  "total_amount",
  "job_card",
  "amended_from",
  "credit_note",
  "is_return"
 ],
 "fields": [
  {
   "fieldname": "items_section",
   "fieldtype": "Section Break",
   "oldfieldtype": "Section Break"
  },
  {
   "fieldname": "title",
   "fieldtype": "Data",
   "hidden": 1,
   "label": "Title",
   "no_copy": 1,
   "print_hide": 1
  },
  {
   "fieldname": "naming_series",
   "fieldtype": "Select",
   "label": "Series",
   "no_copy": 1,
   "oldfieldname": "naming_series",
   "oldfieldtype": "Select",
   "options": "MAT-STE-.YYYY.-",
   "print_hide": 1,
   "reqd": 1,
   "set_only_once": 1
  },
  {
   "fieldname": "stock_entry_type",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Stock Entry Type",
   "options": "Stock Entry Type",
   "reqd": 1
  },
  {
   "depends_on": "eval:doc.purpose == 'Material Transfer'",
   "fieldname": "outgoing_stock_entry",
   "fieldtype": "Link",
   "label": "Stock Entry (Outward GIT)",
   "options": "Stock Entry",
   "read_only": 1
  },
  {
   "bold": 1,
   "fetch_from": "stock_entry_type.purpose",
   "fieldname": "purpose",
   "fieldtype": "Select",
   "hidden": 1,
   "in_list_view": 1,
   "label": "Purpose",
   "oldfieldname": "purpose",
   "oldfieldtype": "Select",
   "options": "Material Issue\nMaterial Receipt\nMaterial Transfer\nMaterial Transfer for Manufacture\nMaterial Consumption for Manufacture\nManufacture\nRepack\nSend to Subcontractor",
   "read_only": 1
  },
  {
   "fieldname": "company",
   "fieldtype": "Link",
   "label": "Company",
   "oldfieldname": "company",
   "oldfieldtype": "Link",
   "options": "Company",
   "print_hide": 1,
   "remember_last_selected_value": 1,
   "reqd": 1
  },
  {
   "depends_on": "eval:in_list([\"Material Transfer for Manufacture\", \"Manufacture\", \"Material Consumption for Manufacture\"], doc.purpose)",
   "fieldname": "work_order",
   "fieldtype": "Link",
   "label": "Work Order",
   "oldfieldname": "production_order",
   "oldfieldtype": "Link",
   "options": "Work Order",
   "print_hide": 1,
   "search_index": 1
  },
  {
   "depends_on": "eval:doc.purpose==\"Send to Subcontractor\"",
   "fieldname": "purchase_order",
   "fieldtype": "Link",
   "label": "Purchase Order",
   "options": "Purchase Order"
  },
  {
   "depends_on": "eval:doc.purpose==\"Sales Return\"",
   "fieldname": "delivery_note_no",
   "fieldtype": "Link",
   "label": "Delivery Note No",
   "no_copy": 1,
   "oldfieldname": "delivery_note_no",
   "oldfieldtype": "Link",
   "options": "Delivery Note",
   "print_hide": 1,
   "search_index": 1
  },
  {
   "depends_on": "eval:doc.purpose==\"Sales Return\"",
   "fieldname": "sales_invoice_no",
   "fieldtype": "Link",
   "label": "Sales Invoice No",
   "no_copy": 1,
   "options": "Sales Invoice",
   "print_hide": 1
  },
  {
   "depends_on": "eval:doc.purpose==\"Purchase Return\"",
   "fieldname": "purchase_receipt_no",
   "fieldtype": "Link",
   "label": "Purchase Receipt No",
   "no_copy": 1,
   "oldfieldname": "purchase_receipt_no",
   "oldfieldtype": "Link",
   "options": "Purchase Receipt",
   "print_hide": 1,
   "search_index": 1
  },
  {
   "fieldname": "col2",
   "fieldtype": "Column Break",
   "oldfieldtype": "Column Break",
   "print_width": "50%",
   "width": "50%"
  },
  {
   "default": "Today",
   "fieldname": "posting_date",
   "fieldtype": "Date",
   "label": "Posting Date",
   "no_copy": 1,
   "oldfieldname": "posting_date",
   "oldfieldtype": "Date",
   "search_index": 1
  },
  {
   "fieldname": "posting_time",
   "fieldtype": "Time",
   "label": "Posting Time",
   "no_copy": 1,
   "oldfieldname": "posting_time",
   "oldfieldtype": "Time",
   "print_hide": 1
  },
  {
   "default": "0",
   "depends_on": "eval:doc.docstatus==0",
   "fieldname": "set_posting_time",
   "fieldtype": "Check",
   "label": "Edit Posting Date and Time",
   "print_hide": 1
  },
  {
   "default": "0",
   "fieldname": "inspection_required",
   "fieldtype": "Check",
   "label": "Inspection Required"
  },
  {
   "default": "0",
   "depends_on": "eval:in_list([\"Material Issue\", \"Material Transfer\", \"Manufacture\", \"Repack\", \t\t\t\t\t\"Send to Subcontractor\", \"Material Transfer for Manufacture\", \"Material Consumption for Manufacture\"], doc.purpose)",
   "fieldname": "from_bom",
   "fieldtype": "Check",
   "label": "From BOM",
   "print_hide": 1
  },
  {
   "depends_on": "eval: doc.from_bom && (doc.purpose!==\"Sales Return\" && doc.purpose!==\"Purchase Return\")",
   "fieldname": "sb1",
   "fieldtype": "Section Break"
  },
  {
   "depends_on": "from_bom",
   "fieldname": "bom_no",
   "fieldtype": "Link",
   "label": "BOM No",
   "options": "BOM"
  },
  {
   "depends_on": "from_bom",
   "description": "As per Stock UOM",
   "fieldname": "fg_completed_qty",
   "fieldtype": "Float",
   "label": "For Quantity",
   "oldfieldname": "fg_completed_qty",
   "oldfieldtype": "Currency",
   "print_hide": 1
  },
  {
   "fieldname": "cb1",
   "fieldtype": "Column Break"
  },
  {
   "default": "1",
   "depends_on": "from_bom",
   "description": "Including items for sub assemblies",
   "fieldname": "use_multi_level_bom",
   "fieldtype": "Check",
   "label": "Use Multi-Level BOM",
   "print_hide": 1
  },
  {
   "depends_on": "from_bom",
   "fieldname": "get_items",
   "fieldtype": "Button",
   "label": "Get Items",
   "oldfieldtype": "Button",
   "print_hide": 1
  },
  {
   "fieldname": "section_break_12",
   "fieldtype": "Section Break"
  },
  {
   "description": "Sets 'Source Warehouse' in each row of the items table.",
   "fieldname": "from_warehouse",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Default Source Warehouse",
   "no_copy": 1,
   "oldfieldname": "from_warehouse",
   "oldfieldtype": "Link",
   "options": "Warehouse",
   "print_hide": 1
  },
  {
   "depends_on": "from_warehouse",
   "fieldname": "source_warehouse_address",
   "fieldtype": "Link",
   "label": "Source Warehouse Address",
   "options": "Address"
  },
  {
   "fieldname": "source_address_display",
   "fieldtype": "Small Text",
   "label": "Source Warehouse Address",
   "read_only": 1
  },
  {
   "fieldname": "cb0",
   "fieldtype": "Column Break"
  },
  {
   "description": "Sets 'Target Warehouse' in each row of the items table.",
   "fieldname": "to_warehouse",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Default Target Warehouse",
   "no_copy": 1,
   "oldfieldname": "to_warehouse",
   "oldfieldtype": "Link",
   "options": "Warehouse",
   "print_hide": 1
  },
  {
   "depends_on": "to_warehouse",
   "fieldname": "target_warehouse_address",
   "fieldtype": "Link",
   "label": "Target Warehouse Address",
   "options": "Address"
  },
  {
   "fieldname": "target_address_display",
   "fieldtype": "Small Text",
   "label": "Target Warehouse Address",
   "read_only": 1
  },
  {
   "fieldname": "sb0",
   "fieldtype": "Section Break",
   "options": "Simple"
  },
  {
   "fieldname": "scan_barcode",
   "options": "Barcode",
   "fieldtype": "Data",
   "label": "Scan Barcode"
  },
  {
   "allow_bulk_edit": 1,
   "fieldname": "items",
   "fieldtype": "Table",
   "label": "Items",
   "oldfieldname": "mtn_details",
   "oldfieldtype": "Table",
   "options": "Stock Entry Detail",
   "reqd": 1
  },
  {
   "fieldname": "get_stock_and_rate",
   "fieldtype": "Button",
   "label": "Update Rate and Availability",
   "oldfieldtype": "Button",
   "options": "get_stock_and_rate",
   "print_hide": 1
  },
  {
   "fieldname": "section_break_19",
   "fieldtype": "Section Break",
   "print_hide": 1
  },
  {
   "fieldname": "total_incoming_value",
   "fieldtype": "Currency",
   "label": "Total Incoming Value",
   "options": "Company:company:default_currency",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "column_break_22",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "total_outgoing_value",
   "fieldtype": "Currency",
   "label": "Total Outgoing Value",
   "options": "Company:company:default_currency",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "value_difference",
   "fieldtype": "Currency",
   "label": "Total Value Difference (Out - In)",
   "options": "Company:company:default_currency",
   "print_hide_if_no_value": 1,
   "read_only": 1
  },
  {
   "collapsible": 1,
   "collapsible_depends_on": "total_additional_costs",
   "fieldname": "additional_costs_section",
   "fieldtype": "Section Break",
   "label": "Additional Costs"
  },
  {
   "fieldname": "additional_costs",
   "fieldtype": "Table",
   "label": "Additional Costs",
   "options": "Landed Cost Taxes and Charges"
  },
  {
   "fieldname": "total_additional_costs",
   "fieldtype": "Currency",
   "label": "Total Additional Costs",
   "options": "Company:company:default_currency",
   "print_hide_if_no_value": 1,
   "read_only": 1
  },
  {
   "collapsible": 1,
   "depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
   "fieldname": "contact_section",
   "fieldtype": "Section Break",
   "label": "Supplier Details"
  },
  {
   "depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
   "fieldname": "supplier",
   "fieldtype": "Link",
   "label": "Supplier",
   "no_copy": 1,
   "oldfieldname": "supplier",
   "oldfieldtype": "Link",
   "options": "Supplier",
   "print_hide": 1
  },
  {
   "bold": 1,
   "depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
   "fieldname": "supplier_name",
   "fieldtype": "Data",
   "label": "Supplier Name",
   "no_copy": 1,
   "oldfieldname": "supplier_name",
   "oldfieldtype": "Data",
   "read_only": 1
  },
  {
   "depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
   "fieldname": "supplier_address",
   "fieldtype": "Link",
   "label": "Supplier Address",
   "no_copy": 1,
   "oldfieldname": "supplier_address",
   "oldfieldtype": "Small Text",
   "options": "Address"
  },
  {
   "fieldname": "address_display",
   "fieldtype": "Small Text",
   "label": "Address"
  },
  {
   "collapsible": 1,
   "fieldname": "printing_settings",
   "fieldtype": "Section Break",
   "label": "Printing Settings"
  },
  {
   "allow_on_submit": 1,
   "fieldname": "select_print_heading",
   "fieldtype": "Link",
   "label": "Print Heading",
   "oldfieldname": "select_print_heading",
   "oldfieldtype": "Link",
   "options": "Print Heading"
  },
  {
   "fieldname": "letter_head",
   "fieldtype": "Link",
   "label": "Letter Head",
   "options": "Letter Head"
  },
  {
   "collapsible": 1,
   "fieldname": "more_info",
   "fieldtype": "Section Break",
   "label": "More Information",
   "oldfieldtype": "Section Break"
  },
  {
   "fieldname": "is_opening",
   "fieldtype": "Select",
   "label": "Is Opening",
   "options": "No\nYes"
  },
  {
   "fieldname": "project",
   "fieldtype": "Link",
   "label": "Project",
   "oldfieldtype": "Link",
   "options": "Project"
  },
  {
   "fieldname": "remarks",
   "fieldtype": "Text",
   "label": "Remarks",
   "no_copy": 1,
   "oldfieldname": "remarks",
   "oldfieldtype": "Text",
   "print_hide": 1
  },
  {
   "fieldname": "col5",
   "fieldtype": "Column Break",
   "print_width": "50%",
   "width": "50%"
  },
  {
   "fieldname": "per_transferred",
   "fieldtype": "Percent",
   "in_list_view": 1,
   "label": "Per Transferred",
   "no_copy": 1,
   "print_hide": 1,
   "read_only": 1
  },
  {
   "depends_on": "total_amount",
   "fieldname": "total_amount",
   "fieldtype": "Currency",
   "label": "Total Amount",
   "options": "Company:company:default_currency",
   "print_hide_if_no_value": 1,
   "read_only": 1
  },
  {
   "fieldname": "job_card",
   "fieldtype": "Link",
   "label": "Job Card",
   "options": "Job Card",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "amended_from",
   "fieldtype": "Link",
   "ignore_user_permissions": 1,
   "label": "Amended From",
   "no_copy": 1,
   "oldfieldname": "amended_from",
   "oldfieldtype": "Link",
   "options": "Stock Entry",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "credit_note",
   "fieldtype": "Link",
   "hidden": 1,
   "label": "Credit Note",
   "options": "Journal Entry"
  },
  {
   "collapsible": 1,
   "fieldname": "accounting_dimensions_section",
   "fieldtype": "Section Break",
   "label": "Accounting Dimensions"
  },
  {
   "fieldname": "dimension_col_break",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "pick_list",
   "fieldtype": "Link",
   "label": "Pick List",
   "options": "Pick List",
   "read_only": 1
  },
  {
   "fieldname": "print_settings_col_break",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "depends_on": "eval: doc.purpose=='Material Transfer' && !doc.outgoing_stock_entry",
   "fetch_from": "stock_entry_type.add_to_transit",
   "fetch_if_empty": 1,
   "fieldname": "add_to_transit",
   "fieldtype": "Check",
   "label": "Add to Transit",
   "no_copy": 1
  },
  {
   "default": "0",
   "depends_on": "eval:in_list([\"Material Transfer\", \"Material Receipt\"], doc.purpose)",
   "fieldname": "apply_putaway_rule",
   "fieldtype": "Check",
   "label": "Apply Putaway Rule"
  },
  {
   "default": "0",
   "fieldname": "is_return",
   "fieldtype": "Check",
   "hidden": 1,
   "label": "Is Return",
   "no_copy": 1,
   "print_hide": 1,
   "read_only": 1
  }
 ],
 "icon": "fa fa-file-text",
 "idx": 1,
 "index_web_pages_for_search": 1,
 "is_submittable": 1,
 "links": [],
 "modified": "2021-08-20 19:19:31.514846",
 "modified_by": "Administrator",
 "module": "Stock",
 "name": "Stock Entry",
 "owner": "Administrator",
 "permissions": [
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Stock User",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Manufacturing User",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Manufacturing Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "import": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Stock Manager",
   "set_user_permissions": 1,
   "share": 1,
   "submit": 1,
   "write": 1
  }
 ],
 "search_fields": "posting_date, from_warehouse, to_warehouse, purpose, remarks",
 "show_name_in_global_search": 1,
 "sort_field": "modified",
 "sort_order": "DESC",
 "title_field": "title",
 "track_changes": 1
}