[
 {
  "owner": "Administrator", 
  "docstatus": 0, 
  "creation": "2012-08-06 20:00:37", 
  "modified_by": "Administrator", 
  "modified": "2012-12-03 17:10:41"
 }, 
 {
  "is_submittable": 1, 
  "allow_attach": 1, 
  "default_print_format": "Standard", 
  "search_fields": "status, transaction_date, supplier,grand_total", 
  "module": "Buying", 
  "doctype": "DocType", 
  "read_only_onload": 1, 
  "document_type": "Transaction", 
  "name": "__common__"
 }, 
 {
  "name": "__common__", 
  "parent": "Purchase Order", 
  "doctype": "DocField", 
  "parenttype": "DocType", 
  "parentfield": "fields"
 }, 
 {
  "name": "__common__", 
  "parent": "Purchase Order", 
  "read": 1, 
  "doctype": "DocPerm", 
  "parenttype": "DocType", 
  "parentfield": "permissions"
 }, 
 {
  "name": "Purchase Order", 
  "doctype": "DocType"
 }, 
 {
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break0", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "To manage multiple series please go to Setup > Manage Series", 
  "no_copy": 1, 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Series", 
  "oldfieldname": "naming_series", 
  "permlevel": 0, 
  "fieldname": "naming_series", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "\nPO"
 }, 
 {
  "print_hide": 1, 
  "description": "Supplier (vendor) name as entered in supplier master", 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Supplier", 
  "oldfieldname": "supplier", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "supplier", 
  "fieldtype": "Link", 
  "search_index": 1, 
  "reqd": 1, 
  "in_filter": 1, 
  "options": "Supplier"
 }, 
 {
  "doctype": "DocField", 
  "label": "Name", 
  "fieldname": "supplier_name", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Address", 
  "fieldname": "address_display", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact", 
  "fieldname": "contact_display", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Mobile No", 
  "fieldname": "contact_mobile", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "doctype": "DocField", 
  "label": "Contact Email", 
  "fieldname": "contact_email", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "permlevel": 1
 }, 
 {
  "print_hide": 0, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break1", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "description": "The date at which current entry is made in system.", 
  "oldfieldtype": "Date", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Purchase Order Date", 
  "oldfieldname": "transaction_date", 
  "trigger": "Client", 
  "fieldname": "transaction_date", 
  "fieldtype": "Date", 
  "search_index": 1, 
  "reqd": 1, 
  "in_filter": 1, 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Items", 
  "fieldname": "items", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "no_copy": 0, 
  "oldfieldtype": "Table", 
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "label": "Purchase Order Items", 
  "oldfieldname": "po_details", 
  "options": "Purchase Order Item", 
  "fieldname": "po_details", 
  "fieldtype": "Table", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "options": "Simple", 
  "fieldname": "section_break0", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break2", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Net Total*", 
  "oldfieldname": "net_total", 
  "fieldname": "net_total", 
  "fieldtype": "Currency", 
  "reqd": 0, 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Net Total (Import)", 
  "oldfieldname": "net_total_import", 
  "fieldname": "net_total_import", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 0, 
  "oldfieldtype": "Button", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Get Last Purchase Rate", 
  "trigger": "Client", 
  "fieldname": "get_last_purchase_rate", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Re-Calculate Values", 
  "trigger": "Client", 
  "fieldname": "recalculate_values", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break3", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "Supplier's currency", 
  "no_copy": 0, 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Currency", 
  "oldfieldname": "currency", 
  "permlevel": 0, 
  "fieldname": "currency", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "link:Currency"
 }, 
 {
  "print_hide": 1, 
  "description": "Rate at which supplier's currency is converted to company's base currency", 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Conversion Rate", 
  "oldfieldname": "conversion_rate", 
  "default": "1", 
  "trigger": "Client", 
  "fieldname": "conversion_rate", 
  "fieldtype": "Float", 
  "reqd": 1, 
  "hidden": 0, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.", 
  "no_copy": 1, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Select Purchase Request", 
  "oldfieldname": "indent_no", 
  "permlevel": 0, 
  "fieldname": "indent_no", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "options": "Purchase Request"
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Get Items", 
  "options": "get_indent_details", 
  "fieldname": "get_items", 
  "fieldtype": "Button", 
  "hidden": 0, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "You can make a purchase order from multiple Supplier Quotations. Select Supplier Quotations one by one and click on the button below.", 
  "no_copy": 1, 
  "doctype": "DocField", 
  "label": "Select Supplier Quotation", 
  "options": "Supplier Quotation", 
  "fieldname": "supplier_quotation", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "doctype": "DocField", 
  "label": "Get Items", 
  "options": "get_supplier_quotation_items", 
  "fieldname": "get_supplier_quotation_items", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "print_hide": 0, 
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Taxes", 
  "fieldname": "taxes", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.", 
  "no_copy": 1, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Purchase Taxes and Charges", 
  "oldfieldname": "purchase_other_charges", 
  "permlevel": 0, 
  "fieldname": "purchase_other_charges", 
  "fieldtype": "Link", 
  "options": "Purchase Taxes and Charges Master"
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Get Tax Detail", 
  "options": "get_purchase_tax_details", 
  "fieldname": "get_tax_detail", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "no_copy": 0, 
  "oldfieldtype": "Table", 
  "doctype": "DocField", 
  "label": "Purchase Taxes and Charges", 
  "oldfieldname": "purchase_tax_details", 
  "options": "Purchase Taxes and Charges", 
  "fieldname": "purchase_tax_details", 
  "fieldtype": "Table", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Calculate Tax", 
  "trigger": "Client", 
  "fieldname": "calculate_tax", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "HTML", 
  "doctype": "DocField", 
  "label": "Tax Calculation", 
  "fieldname": "tax_calculation", 
  "fieldtype": "HTML", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Total Tax*", 
  "oldfieldname": "total_tax", 
  "fieldname": "total_tax", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Totals", 
  "fieldname": "totals", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Grand Total", 
  "oldfieldname": "grand_total", 
  "fieldname": "grand_total", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Rounded Total", 
  "oldfieldname": "rounded_total", 
  "fieldname": "rounded_total", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "description": "In Words will be visible once you save the Purchase Order.", 
  "oldfieldtype": "Data", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "In Words", 
  "oldfieldname": "in_words", 
  "fieldname": "in_words", 
  "fieldtype": "Data", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Added", 
  "oldfieldname": "other_charges_added", 
  "fieldname": "other_charges_added", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Deducted", 
  "oldfieldname": "other_charges_deducted", 
  "fieldname": "other_charges_deducted", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 0, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "fieldname": "column_break4", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Grand Total (Import)", 
  "oldfieldname": "grand_total_import", 
  "fieldname": "grand_total_import", 
  "fieldtype": "Currency", 
  "permlevel": 1, 
  "report_hide": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Data", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "In Words(Import)", 
  "oldfieldname": "in_words_import", 
  "fieldname": "in_words_import", 
  "fieldtype": "Data", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Added (Import)", 
  "oldfieldname": "other_charges_added_import", 
  "fieldname": "other_charges_added_import", 
  "fieldtype": "Currency", 
  "permlevel": 1, 
  "report_hide": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Deducted (Import)", 
  "oldfieldname": "other_charges_deducted_import", 
  "fieldname": "other_charges_deducted_import", 
  "fieldtype": "Currency", 
  "permlevel": 1, 
  "report_hide": 0
 }, 
 {
  "oldfieldtype": "Section Break", 
  "doctype": "DocField", 
  "label": "Terms and Conditions", 
  "fieldname": "terms_section_break", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Select", 
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "label": "Letter Head", 
  "oldfieldname": "letter_head", 
  "options": "link:Letter Head", 
  "fieldname": "letter_head", 
  "fieldtype": "Select", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Select Terms and Conditions", 
  "oldfieldname": "tc_name", 
  "options": "Terms and Conditions", 
  "fieldname": "tc_name", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Get Terms and Conditions", 
  "options": "get_tc_details", 
  "fieldname": "get_terms", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "HTML", 
  "doctype": "DocField", 
  "label": "Terms and Conditions HTML", 
  "options": "You can add Terms and Notes that will be printed in the Transaction", 
  "fieldname": "terms_html", 
  "fieldtype": "HTML", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Text Editor", 
  "doctype": "DocField", 
  "label": "Terms and Conditions1", 
  "oldfieldname": "terms", 
  "fieldname": "terms", 
  "fieldtype": "Text Editor", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact Info", 
  "fieldname": "contact_section", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "doctype": "DocField", 
  "label": "Supplier Address", 
  "options": "Address", 
  "fieldname": "supplier_address", 
  "fieldtype": "Link", 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "doctype": "DocField", 
  "label": "Contact Person", 
  "options": "Contact", 
  "fieldname": "contact_person", 
  "fieldtype": "Link", 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "oldfieldtype": "Section Break", 
  "doctype": "DocField", 
  "label": "More Info", 
  "fieldname": "more_info", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Status", 
  "oldfieldname": "status", 
  "permlevel": 1, 
  "fieldname": "status", 
  "fieldtype": "Select", 
  "search_index": 1, 
  "reqd": 1, 
  "options": "\nDraft\nSubmitted\nStopped\nCancelled", 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "default": "No", 
  "doctype": "DocField", 
  "label": "Is Subcontracted", 
  "options": "\nYes\nNo", 
  "fieldname": "is_subcontracted", 
  "fieldtype": "Select", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Ref SQ", 
  "oldfieldname": "ref_sq", 
  "fieldname": "ref_sq", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Amended From", 
  "oldfieldname": "amended_from", 
  "fieldname": "amended_from", 
  "fieldtype": "Data", 
  "hidden": 0, 
  "permlevel": 1, 
  "report_hide": 0
 }, 
 {
  "print_hide": 1, 
  "description": "The date at which current entry is corrected in the system.", 
  "no_copy": 1, 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Amendment Date", 
  "oldfieldname": "amendment_date", 
  "fieldname": "amendment_date", 
  "fieldtype": "Date", 
  "hidden": 0, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "Select the relevant company name if you have multiple companies", 
  "no_copy": 0, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Company", 
  "oldfieldname": "company", 
  "permlevel": 0, 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "search_index": 1, 
  "reqd": 1, 
  "in_filter": 1, 
  "options": "Company"
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Fiscal Year", 
  "oldfieldname": "fiscal_year", 
  "permlevel": 0, 
  "fieldname": "fiscal_year", 
  "fieldtype": "Select", 
  "search_index": 1, 
  "reqd": 1, 
  "options": "link:Fiscal Year", 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "label": "Select Print Heading", 
  "oldfieldname": "select_print_heading", 
  "permlevel": 0, 
  "fieldname": "select_print_heading", 
  "fieldtype": "Link", 
  "options": "Print Heading", 
  "report_hide": 1
 }, 
 {
  "oldfieldtype": "Text", 
  "doctype": "DocField", 
  "label": "Instructions", 
  "oldfieldname": "instructions", 
  "fieldname": "instructions", 
  "fieldtype": "Text", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break5", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "% of materials received against this Purchase Order", 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "% Received", 
  "oldfieldname": "per_received", 
  "fieldname": "per_received", 
  "fieldtype": "Currency", 
  "depends_on": "eval:!doc.__islocal", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "description": "% of materials billed against this Purchase Order.", 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "% Billed", 
  "oldfieldname": "per_billed", 
  "fieldname": "per_billed", 
  "fieldtype": "Currency", 
  "depends_on": "eval:!doc.__islocal", 
  "permlevel": 1
 }, 
 {
  "print_hide": 0, 
  "no_copy": 1, 
  "oldfieldtype": "Text", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Payment Terms", 
  "oldfieldname": "payment_terms", 
  "fieldname": "payment_terms", 
  "fieldtype": "Text", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Text", 
  "doctype": "DocField", 
  "label": "Remarks", 
  "oldfieldname": "remarks", 
  "fieldname": "remarks", 
  "fieldtype": "Text", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Data", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Cancel Reason", 
  "oldfieldname": "cancel_reason", 
  "fieldname": "cancel_reason", 
  "fieldtype": "Data", 
  "depends_on": "eval:!doc.__islocal", 
  "hidden": 0, 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "description": "Required raw materials issued to the supplier for producing a sub - contracted item.", 
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Raw Material Details", 
  "fieldname": "raw_material_details", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 0, 
  "oldfieldtype": "Table", 
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "label": "Purchase Order Items Supplied", 
  "oldfieldname": "po_raw_material_details", 
  "options": "Purchase Order Item Supplied", 
  "fieldname": "po_raw_material_details", 
  "fieldtype": "Table", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "doctype": "DocField", 
  "label": "File List", 
  "fieldname": "file_list", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "permlevel": 0
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "role": "Purchase User", 
  "cancel": 1, 
  "permlevel": 0
 }, 
 {
  "doctype": "DocPerm", 
  "role": "All", 
  "permlevel": 1
 }, 
 {
  "doctype": "DocPerm", 
  "role": "Supplier", 
  "permlevel": 0, 
  "match": "supplier"
 }, 
 {
  "doctype": "DocPerm", 
  "write": 1, 
  "role": "All", 
  "permlevel": 2
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "role": "Purchase Manager", 
  "cancel": 0, 
  "permlevel": 1
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "role": "Purchase Manager", 
  "cancel": 1, 
  "permlevel": 0
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "role": "Material User", 
  "cancel": 0, 
  "permlevel": 1
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "role": "Material User", 
  "cancel": 0, 
  "permlevel": 0
 }
]