[
 {
  "owner": "Administrator", 
  "docstatus": 0, 
  "creation": "2012-12-03 17:26:39", 
  "modified_by": "Administrator", 
  "modified": "2012-12-04 17:15:28"
 }, 
 {
  "is_submittable": 1, 
  "autoname": "naming_series:", 
  "allow_attach": 1, 
  "default_print_format": "Standard", 
  "search_fields": "posting_date, credit_to, fiscal_year, bill_no, grand_total, outstanding_amount", 
  "module": "Accounts", 
  "doctype": "DocType", 
  "read_only_onload": 1, 
  "name": "__common__"
 }, 
 {
  "name": "__common__", 
  "parent": "Purchase Invoice", 
  "doctype": "DocField", 
  "parenttype": "DocType", 
  "parentfield": "fields"
 }, 
 {
  "name": "__common__", 
  "parent": "Purchase Invoice", 
  "read": 1, 
  "doctype": "DocPerm", 
  "parenttype": "DocType", 
  "parentfield": "permissions"
 }, 
 {
  "name": "Purchase Invoice", 
  "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": "BILL\nBILLJ", 
  "report_hide": 0
 }, 
 {
  "print_hide": 1, 
  "description": "The account to which you will pay (have paid) the money to.", 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Credit To", 
  "oldfieldname": "credit_to", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "credit_to", 
  "fieldtype": "Link", 
  "search_index": 1, 
  "reqd": 1, 
  "in_filter": 1, 
  "options": "Account"
 }, 
 {
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Name", 
  "oldfieldname": "supplier_name", 
  "fieldname": "supplier_name", 
  "fieldtype": "Text", 
  "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
 }, 
 {
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break1", 
  "fieldtype": "Column Break", 
  "reqd": 0, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "The date at which current entry will get or has actually executed.", 
  "default": "Today", 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Posting Date", 
  "oldfieldname": "posting_date", 
  "no_copy": 0, 
  "fieldname": "posting_date", 
  "fieldtype": "Date", 
  "search_index": 1, 
  "reqd": 1, 
  "in_filter": 1, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "If not applicable please enter: NA", 
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Bill No", 
  "oldfieldname": "bill_no", 
  "fieldname": "bill_no", 
  "fieldtype": "Data", 
  "search_index": 1, 
  "reqd": 1, 
  "in_filter": 1, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Bill Date", 
  "oldfieldname": "bill_date", 
  "fieldname": "bill_date", 
  "fieldtype": "Date", 
  "search_index": 1, 
  "reqd": 0, 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "oldfieldtype": "Section Break", 
  "doctype": "DocField", 
  "label": "Items", 
  "fieldname": "items", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Table", 
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "label": "Entries", 
  "oldfieldname": "entries", 
  "options": "Purchase Invoice Item", 
  "fieldname": "entries", 
  "fieldtype": "Table", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "section_break0", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "Will be calculated automatically when you enter the details", 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Net Total", 
  "oldfieldname": "net_total", 
  "fieldname": "net_total", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Net Total (Import)", 
  "oldfieldname": "net_total_import", 
  "fieldname": "net_total_import", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Recalculate", 
  "trigger": "Client", 
  "fieldname": "recalculate", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break2", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "The rate at which Bill Currency is converted into company's base currency", 
  "default": "1", 
  "oldfieldtype": "Currency", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Bill Conversion Rate", 
  "oldfieldname": "conversion_rate", 
  "fieldname": "conversion_rate", 
  "fieldtype": "Float", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Bill Currency", 
  "oldfieldname": "currency", 
  "options": "link:Currency", 
  "fieldname": "currency", 
  "fieldtype": "Select", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "Select Items from Purchase Order", 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Purchase Order", 
  "oldfieldname": "purchase_order_main", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "purchase_order_main", 
  "fieldtype": "Link", 
  "options": "Purchase Order"
 }, 
 {
  "print_hide": 1, 
  "description": "Select Items from Purchase Receipt", 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Purchase Receipt", 
  "oldfieldname": "purchase_receipt_main", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "purchase_receipt_main", 
  "fieldtype": "Link", 
  "options": "Purchase Receipt"
 }, 
 {
  "oldfieldtype": "Button", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Get Items", 
  "options": "pull_details", 
  "fieldname": "get_items", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "description": "Add / Edit Taxes and Charges", 
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Taxes", 
  "fieldname": "taxes", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Purchase Taxes and Charges", 
  "oldfieldname": "purchase_other_charges", 
  "options": "Purchase Taxes and Charges Master", 
  "fieldname": "purchase_other_charges", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Get Tax Detail", 
  "options": "get_purchase_tax_details", 
  "fieldname": "get_tax_detail", 
  "fieldtype": "Button", 
  "permlevel": 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, 
  "oldfieldtype": "HTML", 
  "doctype": "DocField", 
  "label": "Tax Calculation", 
  "fieldname": "tax_calculation", 
  "fieldtype": "HTML", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Total Tax", 
  "oldfieldname": "total_tax", 
  "fieldname": "total_tax", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact Info", 
  "fieldname": "contact_section", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Supplier", 
  "oldfieldname": "supplier", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "supplier", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "options": "Supplier"
 }, 
 {
  "depends_on": "eval:doc.supplier", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Supplier Address", 
  "options": "Address", 
  "fieldname": "supplier_address", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "col_break23", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "depends_on": "eval:doc.supplier", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Contact Person", 
  "options": "Contact", 
  "fieldname": "contact_person", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Section Break", 
  "doctype": "DocField", 
  "label": "More Info", 
  "fieldname": "more_info", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break3", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "default": "No", 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Is Opening", 
  "oldfieldname": "is_opening", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "is_opening", 
  "fieldtype": "Select", 
  "search_index": 1, 
  "options": "No\nYes", 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Aging Date", 
  "oldfieldname": "aging_date", 
  "fieldname": "aging_date", 
  "fieldtype": "Date", 
  "search_index": 0, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Amended From", 
  "oldfieldname": "amended_from", 
  "options": "Purchase Invoice", 
  "fieldname": "amended_from", 
  "fieldtype": "Link", 
  "permlevel": 1
 }, 
 {
  "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", 
  "permlevel": 0
 }, 
 {
  "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, 
  "trigger": "Client", 
  "fieldname": "select_print_heading", 
  "fieldtype": "Link", 
  "options": "Print Heading", 
  "report_hide": 1
 }, 
 {
  "print_hide": 0, 
  "no_copy": 0, 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Due Date", 
  "oldfieldname": "due_date", 
  "fieldname": "due_date", 
  "fieldtype": "Date", 
  "search_index": 1, 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Mode of Payment", 
  "oldfieldname": "mode_of_payment", 
  "options": "link:Mode of Payment", 
  "fieldname": "mode_of_payment", 
  "fieldtype": "Select", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break4", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Company", 
  "oldfieldname": "company", 
  "options": "Company", 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "search_index": 1, 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Fiscal Year", 
  "oldfieldname": "fiscal_year", 
  "options": "link:Fiscal Year", 
  "fieldname": "fiscal_year", 
  "fieldtype": "Select", 
  "search_index": 1, 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "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", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Text", 
  "doctype": "DocField", 
  "label": "Remarks", 
  "oldfieldname": "remarks", 
  "fieldname": "remarks", 
  "fieldtype": "Small Text", 
  "reqd": 0, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Section Break", 
  "doctype": "DocField", 
  "label": "Advances", 
  "fieldname": "advances", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Button", 
  "doctype": "DocField", 
  "label": "Get Advances Paid", 
  "options": "get_advances", 
  "fieldname": "get_advances_paid", 
  "fieldtype": "Button", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Table", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Purchase Invoice Advances", 
  "oldfieldname": "advance_allocation_details", 
  "options": "Purchase Invoice Advance", 
  "fieldname": "advance_allocation_details", 
  "fieldtype": "Table", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Section Break", 
  "doctype": "DocField", 
  "label": "Totals", 
  "fieldname": "totals", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break7", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Added", 
  "oldfieldname": "other_charges_added", 
  "fieldname": "other_charges_added", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Deducted", 
  "oldfieldname": "other_charges_deducted", 
  "fieldname": "other_charges_deducted", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Grand Total", 
  "oldfieldname": "grand_total", 
  "fieldname": "grand_total", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "description": "In Words will be visible once you save the Purchase Invoice.", 
  "oldfieldtype": "Data", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "In Words", 
  "oldfieldname": "in_words", 
  "fieldname": "in_words", 
  "fieldtype": "Data", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break8", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Total Amount To Pay", 
  "oldfieldname": "total_amount_to_pay", 
  "fieldname": "total_amount_to_pay", 
  "fieldtype": "Currency", 
  "hidden": 0, 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Total Advance", 
  "oldfieldname": "total_advance", 
  "fieldname": "total_advance", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Outstanding Amount", 
  "oldfieldname": "outstanding_amount", 
  "fieldname": "outstanding_amount", 
  "fieldtype": "Currency", 
  "search_index": 1, 
  "permlevel": 1, 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "doctype": "DocField", 
  "label": "Write Off Amount", 
  "fieldname": "write_off_amount", 
  "fieldtype": "Currency", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "depends_on": "eval:flt(doc.write_off_amount)!=0", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Write Off Account", 
  "options": "Account", 
  "fieldname": "write_off_account", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "depends_on": "eval:flt(doc.write_off_amount)!=0", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Write Off Cost Center", 
  "options": "Account", 
  "fieldname": "write_off_cost_center", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Added (Import)", 
  "oldfieldname": "other_charges_added_import", 
  "fieldname": "other_charges_added_import", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Taxes and Charges Deducted (Import)", 
  "oldfieldname": "other_charges_deducted_import", 
  "fieldname": "other_charges_deducted_import", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Currency", 
  "doctype": "DocField", 
  "label": "Grand Total (Import)", 
  "oldfieldname": "grand_total_import", 
  "fieldname": "grand_total_import", 
  "fieldtype": "Currency", 
  "permlevel": 1
 }, 
 {
  "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": 1, 
  "oldfieldtype": "Small Text", 
  "doctype": "DocField", 
  "label": "Against Expense Account", 
  "oldfieldname": "against_expense_account", 
  "fieldname": "against_expense_account", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "permlevel": 0, 
  "report_hide": 0
 }, 
 {
  "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, 
  "cancel": 1, 
  "role": "Accounts User", 
  "permlevel": 0
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Purchase User", 
  "permlevel": 1
 }, 
 {
  "amend": 0, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 1, 
  "cancel": 0, 
  "role": "Purchase User", 
  "permlevel": 0
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Supplier", 
  "permlevel": 0, 
  "match": "supplier"
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Accounts Manager", 
  "permlevel": 1
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "cancel": 1, 
  "role": "Accounts Manager", 
  "permlevel": 0
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Accounts User", 
  "permlevel": 1
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Auditor", 
  "permlevel": 1
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Auditor", 
  "permlevel": 0
 }
]