{
 "actions": [],
 "creation": "2013-06-25 11:04:03",
 "doctype": "DocType",
 "document_type": "Other",
 "documentation": "https://docs.frappe.io/erpnext/user/manual/en/buying-settings",
 "engine": "InnoDB",
 "field_order": [
  "supplier_and_price_defaults_section",
  "supplier_defaults_section",
  "supp_master_name",
  "naming_series_details",
  "configure",
  "column_break_4",
  "supplier_group",
  "pricing_tab",
  "buying_price_list",
  "section_break_vwgg",
  "maintain_same_rate",
  "column_break_lwxs",
  "set_landed_cost_based_on_purchase_invoice_rate",
  "maintain_same_rate_action",
  "role_to_override_stop_action",
  "transaction_settings_section",
  "column_break_fcyl",
  "po_required",
  "pr_required",
  "project_update_frequency",
  "over_order_allowance",
  "column_break_kdcm",
  "allow_multiple_items",
  "allow_negative_rates_for_items",
  "set_valuation_rate_for_rejected_materials",
  "disable_last_purchase_rate",
  "show_pay_button",
  "purchase_invoice_settings_section",
  "bill_for_rejected_quantity_in_purchase_invoice",
  "use_transaction_date_exchange_rate",
  "zero_quantity_line_items_section",
  "allow_zero_qty_in_supplier_quotation",
  "allow_zero_qty_in_request_for_quotation",
  "allow_zero_qty_in_purchase_order",
  "blanket_order_section",
  "blanket_order_allowance",
  "subcontract",
  "backflush_raw_materials_of_subcontract_based_on",
  "over_transfer_allowance",
  "validate_consumed_qty",
  "section_break_xcug",
  "auto_create_subcontracting_order",
  "auto_create_purchase_receipt",
  "request_for_quotation_tab",
  "fixed_email",
  "document_naming_tab",
  "transaction_naming_html"
 ],
 "fields": [
  {
   "default": "Supplier Name",
   "fieldname": "supp_master_name",
   "fieldtype": "Select",
   "label": "Supplier Naming By",
   "options": "Supplier Name\nNaming Series\nAuto Name"
  },
  {
   "documentation_url": "https://docs.frappe.io/erpnext/buying-settings#2-default-supplier-group",
   "fieldname": "supplier_group",
   "fieldtype": "Link",
   "label": "Default Supplier Group",
   "options": "Supplier Group"
  },
  {
   "fieldname": "buying_price_list",
   "fieldtype": "Link",
   "label": "Default Buying Price List",
   "options": "Price List"
  },
  {
   "fieldname": "po_required",
   "fieldtype": "Select",
   "label": "Is Purchase Order required for Purchase Invoice & Receipt creation?",
   "options": "No\nYes"
  },
  {
   "fieldname": "pr_required",
   "fieldtype": "Select",
   "label": "Is Purchase Receipt required for Purchase Invoice creation?",
   "options": "No\nYes"
  },
  {
   "default": "0",
   "description": "Warn or stop if Item rate is changed in Purchase Invoice or Purchase Receipt generated from a Purchase Order.",
   "fieldname": "maintain_same_rate",
   "fieldtype": "Check",
   "label": "Maintain same rate throughout the purchase  cycle"
  },
  {
   "default": "0",
   "fieldname": "allow_multiple_items",
   "fieldtype": "Check",
   "label": "Allow Item to be added multiple times in a transaction"
  },
  {
   "fieldname": "subcontract",
   "fieldtype": "Tab Break",
   "label": "Subcontracting Settings"
  },
  {
   "default": "BOM",
   "documentation_url": "https://docs.frappe.io/erpnext/buying-settings#1-backflush-raw-materials-of-subcontract-based-on",
   "fieldname": "backflush_raw_materials_of_subcontract_based_on",
   "fieldtype": "Select",
   "label": "Backflush raw materials of subcontract based on",
   "options": "BOM\nMaterial Transferred for Subcontract"
  },
  {
   "depends_on": "eval:doc.backflush_raw_materials_of_subcontract_based_on == \"BOM\"",
   "description": "Percentage you are allowed to transfer more against the quantity ordered. For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to transfer 110 units.",
   "fieldname": "over_transfer_allowance",
   "fieldtype": "Float",
   "label": "Over Transfer Allowance (%)"
  },
  {
   "default": "Stop",
   "depends_on": "maintain_same_rate",
   "description": "Configure the action to stop the transaction or just warn if the same rate is not maintained.",
   "fieldname": "maintain_same_rate_action",
   "fieldtype": "Select",
   "label": "Action if same rate is not maintained",
   "mandatory_depends_on": "maintain_same_rate",
   "options": "Stop\nWarn"
  },
  {
   "depends_on": "maintain_same_rate",
   "fieldname": "role_to_override_stop_action",
   "fieldtype": "Link",
   "label": "Role allowed to override stop action",
   "options": "Role"
  },
  {
   "default": "1",
   "description": "If checked, Rejected Quantity will be included while making Purchase Invoice from Purchase Receipt.",
   "fieldname": "bill_for_rejected_quantity_in_purchase_invoice",
   "fieldtype": "Check",
   "label": "Bill for rejected quantity in Purchase Invoice"
  },
  {
   "fieldname": "supplier_and_price_defaults_section",
   "fieldtype": "Tab Break",
   "label": "Defaults"
  },
  {
   "fieldname": "column_break_4",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "transaction_settings_section",
   "fieldtype": "Tab Break",
   "label": "Transaction Settings"
  },
  {
   "default": "0",
   "description": "Prevents the system from automatically using the rate from the last purchase transaction when creating new purchase orders or transactions.",
   "fieldname": "disable_last_purchase_rate",
   "fieldtype": "Check",
   "label": "Disable last purchase rate"
  },
  {
   "default": "1",
   "depends_on": "eval: frappe.boot.versions && frappe.boot.versions.payments",
   "fieldname": "show_pay_button",
   "fieldtype": "Check",
   "label": "Show pay button in Purchase Order portal"
  },
  {
   "default": "0",
   "depends_on": "eval: !doc.maintain_same_rate",
   "description": "Users can enable the checkbox If they want to adjust the incoming rate (set using purchase receipt) based on the purchase invoice rate.",
   "fieldname": "set_landed_cost_based_on_purchase_invoice_rate",
   "fieldtype": "Check",
   "label": "Set Landed Cost Based on Purchase Invoice Rate"
  },
  {
   "default": "0",
   "description": "While making a Purchase Receipt or Purchase Invoice from a Purchase Order, use the exchange rate on its posting date rather than inheriting it from the Purchase Order.",
   "fieldname": "use_transaction_date_exchange_rate",
   "fieldtype": "Check",
   "label": "Use Transaction Date Exchange Rate"
  },
  {
   "default": "0",
   "description": "Percentage you are allowed to order beyond the Blanket Order quantity.",
   "fieldname": "blanket_order_allowance",
   "fieldtype": "Float",
   "label": "Blanket Order Allowance (%)"
  },
  {
   "fieldname": "section_break_xcug",
   "fieldtype": "Section Break"
  },
  {
   "default": "0",
   "description": "Subcontracting Order (Draft) will be auto-created on submission of Purchase Order.",
   "fieldname": "auto_create_subcontracting_order",
   "fieldtype": "Check",
   "label": "Auto create Subcontracting Order"
  },
  {
   "default": "0",
   "description": "Purchase Receipt (Draft) will be auto-created on submission of Subcontracting Receipt.",
   "fieldname": "auto_create_purchase_receipt",
   "fieldtype": "Check",
   "label": "Auto create Purchase Receipt"
  },
  {
   "default": "Each Transaction",
   "fieldname": "project_update_frequency",
   "fieldtype": "Select",
   "label": "How often should project be updated of Total Purchase Cost ?",
   "options": "Each Transaction\nManual"
  },
  {
   "default": "0",
   "description": "Allows users to submit Purchase Orders with zero quantity. Useful when rates are fixed but the quantities are not. Eg. Rate Contracts.",
   "fieldname": "allow_zero_qty_in_purchase_order",
   "fieldtype": "Check",
   "label": "Allow Purchase Order with Zero Quantity"
  },
  {
   "default": "0",
   "description": "Allows users to submit Request for Quotations with zero quantity. Useful when rates are fixed but the quantities are not. Eg. Rate Contracts.",
   "fieldname": "allow_zero_qty_in_request_for_quotation",
   "fieldtype": "Check",
   "label": "Allow Request for Quotation with Zero Quantity"
  },
  {
   "default": "0",
   "description": "Allows users to submit Supplier Quotations with zero quantity. Useful when rates are fixed but the quantities are not. Eg. Rate Contracts.",
   "fieldname": "allow_zero_qty_in_supplier_quotation",
   "fieldtype": "Check",
   "label": "Allow Supplier Quotation with Zero Quantity"
  },
  {
   "fieldname": "column_break_fcyl",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "depends_on": "bill_for_rejected_quantity_in_purchase_invoice",
   "description": "If enabled, the system will generate an accounting entry for materials rejected in the Purchase Receipt.",
   "fieldname": "set_valuation_rate_for_rejected_materials",
   "fieldtype": "Check",
   "label": "Set valuation rate for rejected Materials"
  },
  {
   "fieldname": "request_for_quotation_tab",
   "fieldtype": "Tab Break",
   "label": "Request for Quotation"
  },
  {
   "description": "If set, the system does not use the user's Email or the standard outgoing Email account for sending request for quotations.",
   "fieldname": "fixed_email",
   "fieldtype": "Link",
   "label": "Fixed Outgoing Email Account",
   "link_filters": "[[\"Email Account\",\"enable_outgoing\",\"=\",1]]",
   "options": "Email Account"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.backflush_raw_materials_of_subcontract_based_on == \"Material Transferred for Subcontract\"",
   "description": "Raw materials consumed qty will be validated based on FG BOM required qty",
   "fieldname": "validate_consumed_qty",
   "fieldtype": "Check",
   "label": "Validate consumed quantity (as per BOM)"
  },
  {
   "default": "0",
   "fieldname": "allow_negative_rates_for_items",
   "fieldtype": "Check",
   "label": "Allow negative rates for Items"
  },
  {
   "fieldname": "supplier_defaults_section",
   "fieldtype": "Section Break",
   "label": "Supplier Defaults"
  },
  {
   "fieldname": "section_break_vwgg",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "blanket_order_section",
   "fieldtype": "Section Break",
   "label": "Blanket Orders"
  },
  {
   "fieldname": "zero_quantity_line_items_section",
   "fieldtype": "Section Break",
   "label": "Zero-Quantity Line Items"
  },
  {
   "fieldname": "purchase_invoice_settings_section",
   "fieldtype": "Section Break",
   "label": "Purchase Invoice Settings"
  },
  {
   "fieldname": "column_break_lwxs",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "pricing_tab",
   "fieldtype": "Tab Break",
   "label": "Pricing"
  },
  {
   "fieldname": "document_naming_tab",
   "fieldtype": "Tab Break",
   "label": "Document Naming"
  },
  {
   "fieldname": "configure",
   "fieldtype": "Button",
   "hidden": 1,
   "label": "Configure Series"
  },
  {
   "fieldname": "transaction_naming_html",
   "fieldtype": "HTML"
  },
  {
   "fieldname": "naming_series_details",
   "fieldtype": "Small Text",
   "hidden": 1,
   "is_virtual": 1,
   "label": "Naming Series options"
  },
  {
   "description": "The percentage by which you are allowed to order more on a Purchase Order than the quantity requested on the originating Material Request. For example, if the Material Request has 100 units and the allowance is 10%, you can order up to 110 units",
   "fieldname": "over_order_allowance",
   "fieldtype": "Float",
   "label": "Over Order Allowance (%)"
  },
  {
   "fieldname": "column_break_kdcm",
   "fieldtype": "Column Break"
  }
 ],
 "grid_page_length": 50,
 "icon": "settings",
 "idx": 1,
 "index_web_pages_for_search": 1,
 "issingle": 1,
 "links": [],
 "modified": "2026-10-07 20:54:19.279740",
 "modified_by": "Administrator",
 "module": "Buying",
 "name": "Buying Settings",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "role": "Purchase Manager",
   "share": 1,
   "write": 1
  },
  {
   "read": 1,
   "role": "Accounts User"
  },
  {
   "read": 1,
   "role": "Accounts Manager"
  },
  {
   "read": 1,
   "role": "Stock Manager"
  },
  {
   "read": 1,
   "role": "Stock User"
  },
  {
   "read": 1,
   "role": "Purchase User"
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": [],
 "track_changes": 1
}
