[
 {
  "owner": "Administrator", 
  "docstatus": 0, 
  "creation": "2012-12-14 14:27:06", 
  "modified_by": "Administrator", 
  "modified": "2012-12-17 17:59:54"
 }, 
 {
  "autoname": "AR.####", 
  "name": "__common__", 
  "search_fields": "transaction,based_on,system_user,system_role,approving_user,approving_role", 
  "module": "Setup", 
  "doctype": "DocType", 
  "document_type": "Master"
 }, 
 {
  "name": "__common__", 
  "parent": "Authorization Rule", 
  "doctype": "DocField", 
  "parenttype": "DocType", 
  "permlevel": 0, 
  "parentfield": "fields"
 }, 
 {
  "name": "__common__", 
  "parent": "Authorization Rule", 
  "read": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "write": 1, 
  "cancel": 1, 
  "parenttype": "DocType", 
  "role": "System Manager", 
  "permlevel": 0, 
  "parentfield": "permissions"
 }, 
 {
  "name": "Authorization Rule", 
  "doctype": "DocType"
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Company", 
  "oldfieldname": "company", 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "search_index": 0, 
  "reqd": 0, 
  "options": "Company"
 }, 
 {
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Transaction", 
  "oldfieldname": "transaction", 
  "fieldname": "transaction", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "\nDelivery Note\nPurchase Invoice\nPurchase Order\nPurchase Receipt\nQuotation\nSales Invoice\nSales Order\nAppraisal"
 }, 
 {
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Based On", 
  "oldfieldname": "based_on", 
  "fieldname": "based_on", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "\nGrand Total\nAverage Discount\nCustomerwise Discount\nItemwise Discount\nNot Applicable"
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Customer / Item Name", 
  "oldfieldname": "master_name", 
  "fieldname": "master_name", 
  "fieldtype": "Link", 
  "options": "[Select]"
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Applicable To (Role)", 
  "oldfieldname": "system_role", 
  "fieldname": "system_role", 
  "fieldtype": "Link", 
  "options": "Role"
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Applicable To (User)", 
  "oldfieldname": "system_user", 
  "fieldname": "system_user", 
  "fieldtype": "Link", 
  "options": "Profile"
 }, 
 {
  "description": "This will be used for setting rule in HR module", 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Applicable To (Employee)", 
  "oldfieldname": "to_emp", 
  "fieldname": "to_emp", 
  "fieldtype": "Link", 
  "search_index": 0, 
  "options": "Employee"
 }, 
 {
  "description": "This will be used for setting rule in HR module", 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Applicable To (Designation)", 
  "oldfieldname": "to_designation", 
  "fieldname": "to_designation", 
  "fieldtype": "Link", 
  "search_index": 0, 
  "options": "Designation"
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Approving Role", 
  "oldfieldname": "approving_role", 
  "fieldname": "approving_role", 
  "fieldtype": "Link", 
  "options": "Role"
 }, 
 {
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Approving User", 
  "oldfieldname": "approving_user", 
  "fieldname": "approving_user", 
  "fieldtype": "Link", 
  "options": "Profile"
 }, 
 {
  "default": "0.00", 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Above Value", 
  "oldfieldname": "value", 
  "fieldname": "value", 
  "fieldtype": "Currency"
 }, 
 {
  "oldfieldtype": "Small Text", 
  "doctype": "DocField", 
  "label": "Trash Reason", 
  "oldfieldname": "trash_reason", 
  "fieldname": "trash_reason", 
  "fieldtype": "Small Text"
 }, 
 {
  "doctype": "DocPerm"
 }, 
 {
  "doctype": "DocPerm"
 }
]