{
 "autoname": "PRULE.#####", 
 "creation": "2014-02-21 15:02:51.000000", 
 "docstatus": 0, 
 "doctype": "DocType", 
 "document_type": "Master", 
 "fields": [
  {
   "fieldname": "basic_section", 
   "fieldtype": "Section Break", 
   "label": "Basic Section", 
   "permlevel": 0
  }, 
  {
   "default": "Today", 
   "fieldname": "valid_from", 
   "fieldtype": "Date", 
   "label": "Valid From", 
   "permlevel": 0
  }, 
  {
   "fieldname": "valid_upto", 
   "fieldtype": "Date", 
   "label": "Valid Upto", 
   "permlevel": 0
  }, 
  {
   "fieldname": "col_break1", 
   "fieldtype": "Column Break", 
   "permlevel": 0
  }, 
  {
   "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", 
   "permlevel": 0
  }, 
  {
   "fieldname": "disable", 
   "fieldtype": "Check", 
   "label": "Disable", 
   "permlevel": 0
  }, 
  {
   "fieldname": "price_discount_section", 
   "fieldtype": "Section Break", 
   "label": "Price / Discount", 
   "permlevel": 0
  }, 
  {
   "default": "Discount Percentage", 
   "fieldname": "price_or_discount", 
   "fieldtype": "Select", 
   "label": "Price or Discount", 
   "options": "\nPrice\nDiscount Percentage", 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "fieldname": "col_break2", 
   "fieldtype": "Column Break", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.price_or_discount==\"Price\"", 
   "fieldname": "price", 
   "fieldtype": "Float", 
   "label": "Price", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.price_or_discount==\"Discount Percentage\"", 
   "fieldname": "discount_percentage", 
   "fieldtype": "Float", 
   "label": "Discount Percentage", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.price_or_discount==\"Discount Percentage\"", 
   "fieldname": "for_price_list", 
   "fieldtype": "Link", 
   "label": "For Price List", 
   "options": "Price List", 
   "permlevel": 0
  }, 
  {
   "fieldname": "applicability_section", 
   "fieldtype": "Section Break", 
   "label": "Applicability", 
   "permlevel": 0
  }, 
  {
   "default": "Item Code", 
   "fieldname": "apply_on", 
   "fieldtype": "Select", 
   "label": "Apply On", 
   "options": "\nItem Code\nItem Group\nBrand", 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "depends_on": "eval:doc.apply_on==\"Item Code\"", 
   "fieldname": "item_code", 
   "fieldtype": "Link", 
   "label": "Item Code", 
   "options": "Item", 
   "permlevel": 0, 
   "reqd": 0
  }, 
  {
   "depends_on": "eval:doc.apply_on==\"Item Group\"", 
   "fieldname": "item_group", 
   "fieldtype": "Link", 
   "label": "Item Group", 
   "options": "Item Group", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.apply_on==\"Brand\"", 
   "fieldname": "brand", 
   "fieldtype": "Link", 
   "label": "Brand", 
   "options": "Brand", 
   "permlevel": 0
  }, 
  {
   "fieldname": "col_break3", 
   "fieldtype": "Column Break", 
   "permlevel": 0
  }, 
  {
   "fieldname": "applicable_for", 
   "fieldtype": "Select", 
   "label": "Applicable For", 
   "options": "\nCustomer\nCustomer Group\nTerritory\nSales Partner\nCampaign\nSupplier\nSupplier Type", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Customer\"", 
   "fieldname": "customer", 
   "fieldtype": "Link", 
   "label": "Customer", 
   "options": "Customer", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Customer Group\"", 
   "fieldname": "customer_group", 
   "fieldtype": "Link", 
   "label": "Customer Group", 
   "options": "Customer Group", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Territory\"", 
   "fieldname": "territory", 
   "fieldtype": "Link", 
   "label": "Territory", 
   "options": "Territory", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Sales Partner\"", 
   "fieldname": "sales_partner", 
   "fieldtype": "Link", 
   "label": "Sales Partner", 
   "options": "Sales Partner", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Campaign\"", 
   "fieldname": "campaign", 
   "fieldtype": "Link", 
   "label": "Campaign", 
   "options": "Campaign", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Supplier\"", 
   "fieldname": "supplier", 
   "fieldtype": "Link", 
   "label": "Supplier", 
   "options": "Supplier", 
   "permlevel": 0
  }, 
  {
   "depends_on": "eval:doc.applicable_for==\"Supplier Type\"", 
   "fieldname": "supplier_type", 
   "fieldtype": "Link", 
   "label": "Supplier Type", 
   "options": "Supplier Type", 
   "permlevel": 0
  }, 
  {
   "fieldname": "min_qty", 
   "fieldtype": "Float", 
   "label": "Min Qty", 
   "permlevel": 0
  }, 
  {
   "fieldname": "max_qty", 
   "fieldtype": "Float", 
   "label": "Max Qty", 
   "permlevel": 0
  }
 ], 
 "icon": "icon-gift", 
 "idx": 1, 
 "istable": 0, 
 "modified": "2014-03-05 18:23:34.000000", 
 "modified_by": "Administrator", 
 "module": "Accounts", 
 "name": "Pricing Rule", 
 "owner": "Administrator", 
 "permissions": [
  {
   "create": 1, 
   "delete": 1, 
   "permlevel": 0, 
   "read": 1, 
   "role": "Accounts Manager", 
   "write": 1
  }, 
  {
   "create": 1, 
   "delete": 1, 
   "permlevel": 0, 
   "read": 1, 
   "role": "Sales Manager", 
   "write": 1
  }, 
  {
   "create": 1, 
   "delete": 1, 
   "permlevel": 0, 
   "read": 1, 
   "role": "Purchase Manager", 
   "write": 1
  }, 
  {
   "create": 1, 
   "delete": 1, 
   "permlevel": 0, 
   "read": 1, 
   "role": "Website Manager", 
   "write": 1
  }, 
  {
   "create": 1, 
   "delete": 1, 
   "permlevel": 0, 
   "read": 1, 
   "role": "System Manager", 
   "write": 1
  }
 ]
}