[
 {
  "creation": "2014-02-21 15:02:51", 
  "docstatus": 0, 
  "modified": "2014-03-05 18:23:34", 
  "modified_by": "Administrator", 
  "owner": "Administrator"
 }, 
 {
  "autoname": "PRULE.#####", 
  "doctype": "DocType", 
  "document_type": "Master", 
  "icon": "icon-gift", 
  "istable": 0, 
  "module": "Accounts", 
  "name": "__common__"
 }, 
 {
  "doctype": "DocField", 
  "name": "__common__", 
  "parent": "Pricing Rule", 
  "parentfield": "fields", 
  "parenttype": "DocType", 
  "permlevel": 0
 }, 
 {
  "create": 1, 
  "delete": 1, 
  "doctype": "DocPerm", 
  "name": "__common__", 
  "parent": "Pricing Rule", 
  "parentfield": "permissions", 
  "parenttype": "DocType", 
  "permlevel": 0, 
  "read": 1, 
  "write": 1
 }, 
 {
  "doctype": "DocType", 
  "name": "Pricing Rule"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "basic_section", 
  "fieldtype": "Section Break", 
  "label": "Basic Section"
 }, 
 {
  "default": "Today", 
  "doctype": "DocField", 
  "fieldname": "valid_from", 
  "fieldtype": "Date", 
  "label": "Valid From"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "valid_upto", 
  "fieldtype": "Date", 
  "label": "Valid Upto"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break1", 
  "fieldtype": "Column Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "priority", 
  "fieldtype": "Select", 
  "label": "Priority", 
  "options": "\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "disable", 
  "fieldtype": "Check", 
  "label": "Disable"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "price_discount_section", 
  "fieldtype": "Section Break", 
  "label": "Price / Discount"
 }, 
 {
  "default": "Discount Percentage", 
  "doctype": "DocField", 
  "fieldname": "price_or_discount", 
  "fieldtype": "Select", 
  "label": "Price or Discount", 
  "options": "\nPrice\nDiscount Percentage", 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break2", 
  "fieldtype": "Column Break"
 }, 
 {
  "depends_on": "eval:doc.price_or_discount==\"Price\"", 
  "doctype": "DocField", 
  "fieldname": "price", 
  "fieldtype": "Float", 
  "label": "Price"
 }, 
 {
  "depends_on": "eval:doc.price_or_discount==\"Discount Percentage\"", 
  "doctype": "DocField", 
  "fieldname": "discount_percentage", 
  "fieldtype": "Float", 
  "label": "Discount Percentage"
 }, 
 {
  "depends_on": "eval:doc.price_or_discount==\"Discount Percentage\"", 
  "doctype": "DocField", 
  "fieldname": "for_price_list", 
  "fieldtype": "Link", 
  "label": "For Price List", 
  "options": "Price List"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "applicability_section", 
  "fieldtype": "Section Break", 
  "label": "Applicability"
 }, 
 {
  "default": "Item Code", 
  "doctype": "DocField", 
  "fieldname": "apply_on", 
  "fieldtype": "Select", 
  "label": "Apply On", 
  "options": "\nItem Code\nItem Group\nBrand", 
  "reqd": 1
 }, 
 {
  "depends_on": "eval:doc.apply_on==\"Item Code\"", 
  "doctype": "DocField", 
  "fieldname": "item_code", 
  "fieldtype": "Link", 
  "label": "Item Code", 
  "options": "Item", 
  "reqd": 0
 }, 
 {
  "depends_on": "eval:doc.apply_on==\"Item Group\"", 
  "doctype": "DocField", 
  "fieldname": "item_group", 
  "fieldtype": "Link", 
  "label": "Item Group", 
  "options": "Item Group"
 }, 
 {
  "depends_on": "eval:doc.apply_on==\"Brand\"", 
  "doctype": "DocField", 
  "fieldname": "brand", 
  "fieldtype": "Link", 
  "label": "Brand", 
  "options": "Brand"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break3", 
  "fieldtype": "Column Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "applicable_for", 
  "fieldtype": "Select", 
  "label": "Applicable For", 
  "options": "\nCustomer\nCustomer Group\nTerritory\nSales Partner\nCampaign\nSupplier\nSupplier Type"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Customer\"", 
  "doctype": "DocField", 
  "fieldname": "customer", 
  "fieldtype": "Link", 
  "label": "Customer", 
  "options": "Customer"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Customer Group\"", 
  "doctype": "DocField", 
  "fieldname": "customer_group", 
  "fieldtype": "Link", 
  "label": "Customer Group", 
  "options": "Customer Group"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Territory\"", 
  "doctype": "DocField", 
  "fieldname": "territory", 
  "fieldtype": "Link", 
  "label": "Territory", 
  "options": "Territory"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Sales Partner\"", 
  "doctype": "DocField", 
  "fieldname": "sales_partner", 
  "fieldtype": "Link", 
  "label": "Sales Partner", 
  "options": "Sales Partner"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Campaign\"", 
  "doctype": "DocField", 
  "fieldname": "campaign", 
  "fieldtype": "Link", 
  "label": "Campaign", 
  "options": "Campaign"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Supplier\"", 
  "doctype": "DocField", 
  "fieldname": "supplier", 
  "fieldtype": "Link", 
  "label": "Supplier", 
  "options": "Supplier"
 }, 
 {
  "depends_on": "eval:doc.applicable_for==\"Supplier Type\"", 
  "doctype": "DocField", 
  "fieldname": "supplier_type", 
  "fieldtype": "Link", 
  "label": "Supplier Type", 
  "options": "Supplier Type"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "min_qty", 
  "fieldtype": "Float", 
  "label": "Min Qty"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "max_qty", 
  "fieldtype": "Float", 
  "label": "Max Qty"
 }, 
 {
  "doctype": "DocPerm", 
  "role": "Accounts Manager"
 }, 
 {
  "doctype": "DocPerm", 
  "role": "Sales Manager"
 }, 
 {
  "doctype": "DocPerm", 
  "role": "Purchase Manager"
 }, 
 {
  "doctype": "DocPerm", 
  "role": "Website Manager"
 }, 
 {
  "doctype": "DocPerm", 
  "role": "System Manager"
 }
]