[
 {
  "creation": "2013-05-21 16:16:39", 
  "docstatus": 0, 
  "modified": "2013-08-09 14:47:05", 
  "modified_by": "Administrator", 
  "owner": "Administrator"
 }, 
 {
  "allow_attach": 1, 
  "autoname": "naming_series:", 
  "doctype": "DocType", 
  "document_type": "Transaction", 
  "icon": "icon-truck", 
  "is_submittable": 1, 
  "module": "Stock", 
  "name": "__common__", 
  "read_only_onload": 1, 
  "search_fields": "status, posting_date, supplier"
 }, 
 {
  "doctype": "DocField", 
  "name": "__common__", 
  "parent": "Purchase Receipt", 
  "parentfield": "fields", 
  "parenttype": "DocType", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocPerm", 
  "name": "__common__", 
  "parent": "Purchase Receipt", 
  "parentfield": "permissions", 
  "parenttype": "DocType", 
  "permlevel": 0, 
  "read": 1, 
  "report": 1
 }, 
 {
  "doctype": "DocType", 
  "name": "Purchase Receipt"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "supplier_section", 
  "fieldtype": "Section Break", 
  "label": "Supplier", 
  "options": "icon-user"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break0", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_width": "50%", 
  "width": "50%"
 }, 
 {
  "description": "To manage multiple series please go to Setup > Manage Series", 
  "doctype": "DocField", 
  "fieldname": "naming_series", 
  "fieldtype": "Select", 
  "label": "Document Numbering Series", 
  "no_copy": 1, 
  "oldfieldname": "naming_series", 
  "oldfieldtype": "Select", 
  "options": "\nGRN", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "allow_on_submit": 0, 
  "doctype": "DocField", 
  "fieldname": "supplier", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Supplier", 
  "oldfieldname": "supplier", 
  "oldfieldtype": "Link", 
  "options": "Supplier", 
  "print_hide": 1, 
  "print_width": "150px", 
  "reqd": 1, 
  "search_index": 1, 
  "width": "150px"
 }, 
 {
  "depends_on": "supplier", 
  "doctype": "DocField", 
  "fieldname": "supplier_name", 
  "fieldtype": "Data", 
  "hidden": 0, 
  "in_list_view": 1, 
  "label": "Supplier Name", 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "address_display", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "label": "Address", 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_display", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "label": "Contact", 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_mobile", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "label": "Mobile No", 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_email", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "label": "Contact Email", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break1", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_width": "50%", 
  "width": "50%"
 }, 
 {
  "description": "The date at which current entry will get or has actually executed.", 
  "doctype": "DocField", 
  "fieldname": "posting_date", 
  "fieldtype": "Date", 
  "in_filter": 1, 
  "label": "Posting Date", 
  "no_copy": 1, 
  "oldfieldname": "posting_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1, 
  "print_width": "100px", 
  "reqd": 1, 
  "search_index": 1, 
  "width": "100px"
 }, 
 {
  "description": "Time at which materials were received", 
  "doctype": "DocField", 
  "fieldname": "posting_time", 
  "fieldtype": "Time", 
  "in_filter": 0, 
  "label": "Posting Time", 
  "no_copy": 1, 
  "oldfieldname": "posting_time", 
  "oldfieldtype": "Time", 
  "print_hide": 1, 
  "print_width": "100px", 
  "reqd": 1, 
  "search_index": 0, 
  "width": "100px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "challan_no", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "label": "Supplier Shipment No", 
  "no_copy": 1, 
  "oldfieldname": "challan_no", 
  "oldfieldtype": "Data", 
  "print_hide": 0, 
  "print_width": "100px", 
  "reqd": 0, 
  "width": "100px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "challan_date", 
  "fieldtype": "Date", 
  "hidden": 1, 
  "label": "Supplier Shipment Date", 
  "no_copy": 1, 
  "oldfieldname": "challan_date", 
  "oldfieldtype": "Date", 
  "print_hide": 0, 
  "print_width": "100px", 
  "reqd": 0, 
  "width": "100px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "currency_price_list", 
  "fieldtype": "Section Break", 
  "label": "Currency and Price List", 
  "options": "icon-tag"
 }, 
 {
  "description": "Supplier's currency", 
  "doctype": "DocField", 
  "fieldname": "currency", 
  "fieldtype": "Link", 
  "label": "Currency", 
  "oldfieldname": "currency", 
  "oldfieldtype": "Select", 
  "options": "Currency", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "default": "1.00", 
  "description": "Rate at which supplier's currency is converted to company's base currency", 
  "doctype": "DocField", 
  "fieldname": "conversion_rate", 
  "fieldtype": "Float", 
  "label": "Exchange Rate", 
  "oldfieldname": "conversion_rate", 
  "oldfieldtype": "Currency", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break2", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_width": "50%", 
  "width": "50%"
 }, 
 {
  "description": "Consider this Price List for fetching rate. (only which have \"For Buying\" as checked)", 
  "doctype": "DocField", 
  "fieldname": "buying_price_list", 
  "fieldtype": "Link", 
  "label": "Price List", 
  "options": "Price List", 
  "print_hide": 1
 }, 
 {
  "depends_on": "buying_price_list", 
  "doctype": "DocField", 
  "fieldname": "price_list_currency", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "label": "Price List Currency", 
  "options": "Currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "depends_on": "buying_price_list", 
  "doctype": "DocField", 
  "fieldname": "plc_conversion_rate", 
  "fieldtype": "Float", 
  "label": "Price List Exchange Rate", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "items", 
  "fieldtype": "Section Break", 
  "label": "Items", 
  "oldfieldtype": "Section Break", 
  "options": "icon-shopping-cart"
 }, 
 {
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "fieldname": "purchase_receipt_details", 
  "fieldtype": "Table", 
  "label": "Purchase Receipt Items", 
  "oldfieldname": "purchase_receipt_details", 
  "oldfieldtype": "Table", 
  "options": "Purchase Receipt Item", 
  "print_hide": 0, 
  "reqd": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "section_break0", 
  "fieldtype": "Section Break", 
  "oldfieldtype": "Section Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "net_total_import", 
  "fieldtype": "Currency", 
  "label": "Net Total", 
  "oldfieldname": "net_total_import", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "get_current_stock", 
  "fieldtype": "Button", 
  "label": "Get Current Stock", 
  "oldfieldtype": "Button", 
  "options": "get_current_stock", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break_27", 
  "fieldtype": "Column Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "net_total", 
  "fieldtype": "Currency", 
  "label": "Net Total (Company Currency)", 
  "oldfieldname": "net_total", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "print_width": "150px", 
  "read_only": 1, 
  "reqd": 1, 
  "width": "150px"
 }, 
 {
  "description": "Add / Edit Taxes and Charges", 
  "doctype": "DocField", 
  "fieldname": "taxes", 
  "fieldtype": "Section Break", 
  "label": "Taxes", 
  "oldfieldtype": "Section Break", 
  "options": "icon-money"
 }, 
 {
  "description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.", 
  "doctype": "DocField", 
  "fieldname": "purchase_other_charges", 
  "fieldtype": "Link", 
  "label": "Purchase Taxes and Charges", 
  "oldfieldname": "purchase_other_charges", 
  "oldfieldtype": "Link", 
  "options": "Purchase Taxes and Charges Master", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "purchase_tax_details", 
  "fieldtype": "Table", 
  "label": "Purchase Taxes and Charges", 
  "oldfieldname": "purchase_tax_details", 
  "oldfieldtype": "Table", 
  "options": "Purchase Taxes and Charges"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "tax_calculation", 
  "fieldtype": "HTML", 
  "label": "Tax Calculation", 
  "oldfieldtype": "HTML", 
  "print_hide": 1
 }, 
 {
  "description": "Detailed Breakup of the totals", 
  "doctype": "DocField", 
  "fieldname": "totals", 
  "fieldtype": "Section Break", 
  "label": "Totals", 
  "oldfieldtype": "Section Break", 
  "options": "icon-money"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_added_import", 
  "fieldtype": "Currency", 
  "label": "Taxes and Charges Added", 
  "oldfieldname": "other_charges_added_import", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_deducted_import", 
  "fieldtype": "Currency", 
  "label": "Taxes and Charges Deducted", 
  "oldfieldname": "other_charges_deducted_import", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "grand_total_import", 
  "fieldtype": "Currency", 
  "label": "Grand Total", 
  "oldfieldname": "grand_total_import", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "in_words_import", 
  "fieldtype": "Data", 
  "label": "In Words", 
  "oldfieldname": "in_words_import", 
  "oldfieldtype": "Data", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break3", 
  "fieldtype": "Column Break", 
  "print_width": "50%", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_added", 
  "fieldtype": "Currency", 
  "label": "Taxes and Charges Added (Company Currency)", 
  "oldfieldname": "other_charges_added", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_deducted", 
  "fieldtype": "Currency", 
  "label": "Taxes and Charges Deducted (Company Currency)", 
  "oldfieldname": "other_charges_deducted", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "total_tax", 
  "fieldtype": "Currency", 
  "label": "Total Tax (Company Currency)", 
  "oldfieldname": "total_tax", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "grand_total", 
  "fieldtype": "Currency", 
  "label": "Grand Total (Company Currency)", 
  "oldfieldname": "grand_total", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "rounded_total", 
  "fieldtype": "Currency", 
  "label": "Rounded Total (Company Currency)", 
  "oldfieldname": "rounded_total", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "description": "In Words will be visible once you save the Purchase Receipt.", 
  "doctype": "DocField", 
  "fieldname": "in_words", 
  "fieldtype": "Data", 
  "label": "In Words (Company Currency)", 
  "oldfieldname": "in_words", 
  "oldfieldtype": "Data", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "description": "Add Terms and Conditions for the Purchase Receipt. You can also prepare a Terms and Conditions Master and use the Template.", 
  "doctype": "DocField", 
  "fieldname": "terms_section_break", 
  "fieldtype": "Section Break", 
  "label": "Terms and Conditions", 
  "oldfieldtype": "Section Break", 
  "options": "icon-legal"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "tc_name", 
  "fieldtype": "Link", 
  "label": "Select Terms and Conditions", 
  "oldfieldname": "tc_name", 
  "oldfieldtype": "Link", 
  "options": "Terms and Conditions", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "terms", 
  "fieldtype": "Text Editor", 
  "label": "Terms and Conditions1", 
  "oldfieldname": "terms", 
  "oldfieldtype": "Text Editor"
 }, 
 {
  "depends_on": "supplier", 
  "doctype": "DocField", 
  "fieldname": "contact_section", 
  "fieldtype": "Section Break", 
  "label": "Contact Info", 
  "options": "icon-bullhorn"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "supplier_address", 
  "fieldtype": "Link", 
  "label": "Supplier Address", 
  "options": "Address", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break_57", 
  "fieldtype": "Column Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_person", 
  "fieldtype": "Link", 
  "label": "Contact Person", 
  "options": "Contact", 
  "print_hide": 1
 }, 
 {
  "description": "Filing in Additional Information about the Purchase Receipt will help you analyze your data better.", 
  "doctype": "DocField", 
  "fieldname": "more_info", 
  "fieldtype": "Section Break", 
  "label": "More Info", 
  "oldfieldtype": "Section Break", 
  "options": "icon-file-text"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "status", 
  "fieldtype": "Select", 
  "in_filter": 1, 
  "label": "Status", 
  "no_copy": 1, 
  "oldfieldname": "status", 
  "oldfieldtype": "Select", 
  "options": "\nDraft\nSubmitted\nCancelled", 
  "print_hide": 1, 
  "print_width": "150px", 
  "read_only": 1, 
  "reqd": 1, 
  "search_index": 1, 
  "width": "150px"
 }, 
 {
  "default": "No", 
  "description": "Select \"Yes\" for sub - contracting items", 
  "doctype": "DocField", 
  "fieldname": "is_subcontracted", 
  "fieldtype": "Select", 
  "label": "Is Subcontracted", 
  "oldfieldname": "is_subcontracted", 
  "oldfieldtype": "Select", 
  "options": "\nYes\nNo", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "amended_from", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "label": "Amended From", 
  "no_copy": 1, 
  "oldfieldname": "amended_from", 
  "oldfieldtype": "Data", 
  "options": "Purchase Receipt", 
  "print_hide": 1, 
  "print_width": "150px", 
  "read_only": 1, 
  "width": "150px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "range", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "label": "Range", 
  "oldfieldname": "range", 
  "oldfieldtype": "Data", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "bill_no", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "label": "Bill No", 
  "oldfieldname": "bill_no", 
  "oldfieldtype": "Data", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "bill_date", 
  "fieldtype": "Date", 
  "hidden": 1, 
  "label": "Bill Date", 
  "oldfieldname": "bill_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "fieldname": "select_print_heading", 
  "fieldtype": "Link", 
  "label": "Select Print Heading", 
  "no_copy": 1, 
  "oldfieldname": "select_print_heading", 
  "oldfieldtype": "Link", 
  "options": "Print Heading", 
  "print_hide": 1, 
  "report_hide": 1
 }, 
 {
  "description": "Select the relevant company name if you have multiple companies", 
  "doctype": "DocField", 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "in_filter": 1, 
  "label": "Company", 
  "no_copy": 0, 
  "oldfieldname": "company", 
  "oldfieldtype": "Link", 
  "options": "Company", 
  "print_hide": 1, 
  "print_width": "150px", 
  "reqd": 1, 
  "search_index": 1, 
  "width": "150px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "fiscal_year", 
  "fieldtype": "Select", 
  "in_filter": 1, 
  "label": "Fiscal Year", 
  "oldfieldname": "fiscal_year", 
  "oldfieldtype": "Select", 
  "options": "link:Fiscal Year", 
  "print_hide": 1, 
  "print_width": "150px", 
  "reqd": 1, 
  "search_index": 1, 
  "width": "150px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break4", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "print_width": "50%", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_details", 
  "fieldtype": "HTML", 
  "hidden": 1, 
  "label": "Other Details", 
  "oldfieldtype": "HTML", 
  "options": "<div class='columnHeading'>Other Details</div>", 
  "print_hide": 1, 
  "print_width": "30%", 
  "reqd": 0, 
  "width": "30%"
 }, 
 {
  "description": "Warehouse where you are maintaining stock of rejected items", 
  "doctype": "DocField", 
  "fieldname": "rejected_warehouse", 
  "fieldtype": "Link", 
  "label": "Rejected Warehouse", 
  "no_copy": 1, 
  "oldfieldname": "rejected_warehouse", 
  "oldfieldtype": "Link", 
  "options": "Warehouse", 
  "print_hide": 1, 
  "reqd": 0
 }, 
 {
  "description": "Supplier warehouse where you have issued raw materials for sub - contracting", 
  "doctype": "DocField", 
  "fieldname": "supplier_warehouse", 
  "fieldtype": "Link", 
  "label": "Supplier Warehouse", 
  "no_copy": 1, 
  "oldfieldname": "supplier_warehouse", 
  "oldfieldtype": "Link", 
  "options": "Warehouse", 
  "print_hide": 1, 
  "print_width": "50px", 
  "width": "50px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "instructions", 
  "fieldtype": "Small Text", 
  "label": "Instructions", 
  "oldfieldname": "instructions", 
  "oldfieldtype": "Text"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "remarks", 
  "fieldtype": "Small Text", 
  "label": "Remarks", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "transporter_info", 
  "fieldtype": "Section Break", 
  "label": "Transporter Info", 
  "options": "icon-truck"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "transporter_name", 
  "fieldtype": "Data", 
  "label": "Transporter Name", 
  "oldfieldname": "transporter_name", 
  "oldfieldtype": "Data"
 }, 
 {
  "description": "Transporter lorry number", 
  "doctype": "DocField", 
  "fieldname": "lr_no", 
  "fieldtype": "Data", 
  "label": "LR No", 
  "no_copy": 1, 
  "oldfieldname": "lr_no", 
  "oldfieldtype": "Data", 
  "print_hide": 0, 
  "print_width": "100px", 
  "width": "100px"
 }, 
 {
  "description": "Date on which lorry started from supplier warehouse", 
  "doctype": "DocField", 
  "fieldname": "lr_date", 
  "fieldtype": "Date", 
  "label": "LR Date", 
  "no_copy": 1, 
  "oldfieldname": "lr_date", 
  "oldfieldtype": "Date", 
  "print_hide": 0, 
  "print_width": "100px", 
  "width": "100px"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break5", 
  "fieldtype": "Column Break", 
  "print_width": "50%", 
  "width": "50%"
 }, 
 {
  "description": "Following table will show values if items are sub - contracted. These values will be fetched from the master of \"Bill of Materials\" of sub - contracted items.", 
  "doctype": "DocField", 
  "fieldname": "raw_material_details", 
  "fieldtype": "Section Break", 
  "label": "Raw Materials Supplied", 
  "oldfieldtype": "Section Break", 
  "options": "icon-table", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "pr_raw_material_details", 
  "fieldtype": "Table", 
  "label": "Purchase Receipt Item Supplieds", 
  "no_copy": 1, 
  "oldfieldname": "pr_raw_material_details", 
  "oldfieldtype": "Table", 
  "options": "Purchase Receipt Item Supplied", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "amend": 1, 
  "cancel": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "role": "Material Manager", 
  "submit": 1, 
  "write": 1
 }, 
 {
  "amend": 1, 
  "cancel": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "role": "Material User", 
  "submit": 1, 
  "write": 1
 }, 
 {
  "amend": 1, 
  "cancel": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "role": "Purchase User", 
  "submit": 1, 
  "write": 1
 }, 
 {
  "doctype": "DocPerm", 
  "match": "supplier", 
  "role": "Supplier"
 }
]