[
 {
  "creation": "2013-01-29 17:54:09", 
  "docstatus": 0, 
  "modified": "2013-01-29 18:25:24", 
  "modified_by": "Administrator", 
  "owner": "Administrator"
 }, 
 {
  "allow_attach": 1, 
  "autoname": "naming_series:", 
  "doctype": "DocType", 
  "is_submittable": 1, 
  "module": "Accounts", 
  "name": "__common__", 
  "read_only_onload": 1, 
  "search_fields": "posting_date, credit_to, fiscal_year, bill_no, grand_total, outstanding_amount"
 }, 
 {
  "doctype": "DocField", 
  "name": "__common__", 
  "parent": "Purchase Invoice", 
  "parentfield": "fields", 
  "parenttype": "DocType", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocPerm", 
  "name": "__common__", 
  "parent": "Purchase Invoice", 
  "parentfield": "permissions", 
  "parenttype": "DocType", 
  "permlevel": 0, 
  "read": 1, 
  "report": 1
 }, 
 {
  "doctype": "DocType", 
  "name": "Purchase Invoice"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break0", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "description": "To manage multiple series please go to Setup > Manage Series", 
  "doctype": "DocField", 
  "fieldname": "naming_series", 
  "fieldtype": "Select", 
  "label": "Series", 
  "no_copy": 1, 
  "oldfieldname": "naming_series", 
  "oldfieldtype": "Select", 
  "options": "BILL\nBILLJ", 
  "print_hide": 1, 
  "report_hide": 0, 
  "reqd": 1
 }, 
 {
  "description": "The account to which you will pay (have paid) the money to.", 
  "doctype": "DocField", 
  "fieldname": "credit_to", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Credit To", 
  "oldfieldname": "credit_to", 
  "oldfieldtype": "Link", 
  "options": "Account", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "supplier", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "label": "Supplier", 
  "oldfieldname": "supplier", 
  "oldfieldtype": "Link", 
  "options": "Supplier", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "supplier_name", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "in_list_view": 1, 
  "label": "Name", 
  "oldfieldname": "supplier_name", 
  "oldfieldtype": "Data", 
  "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", 
  "reqd": 0, 
  "width": "50%"
 }, 
 {
  "default": "Today", 
  "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": 0, 
  "oldfieldname": "posting_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 1
 }, 
 {
  "description": "If not applicable please enter: NA", 
  "doctype": "DocField", 
  "fieldname": "bill_no", 
  "fieldtype": "Data", 
  "in_filter": 1, 
  "label": "Bill No", 
  "oldfieldname": "bill_no", 
  "oldfieldtype": "Data", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "bill_date", 
  "fieldtype": "Date", 
  "in_filter": 1, 
  "label": "Bill Date", 
  "oldfieldname": "bill_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1, 
  "reqd": 0, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "items", 
  "fieldtype": "Section Break", 
  "label": "Items", 
  "oldfieldtype": "Section Break"
 }, 
 {
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "fieldname": "entries", 
  "fieldtype": "Table", 
  "label": "Entries", 
  "oldfieldname": "entries", 
  "oldfieldtype": "Table", 
  "options": "Purchase Invoice Item"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "section_break0", 
  "fieldtype": "Section Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "recalculate", 
  "fieldtype": "Button", 
  "label": "Recalculate", 
  "oldfieldtype": "Button"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "section_break_17", 
  "fieldtype": "Section Break", 
  "options": "Simple"
 }, 
 {
  "description": "Select Items from Purchase Order", 
  "doctype": "DocField", 
  "fieldname": "purchase_order_main", 
  "fieldtype": "Link", 
  "label": "Purchase Order", 
  "oldfieldname": "purchase_order_main", 
  "oldfieldtype": "Link", 
  "options": "Purchase Order", 
  "print_hide": 1
 }, 
 {
  "description": "Select Items from Purchase Receipt", 
  "doctype": "DocField", 
  "fieldname": "purchase_receipt_main", 
  "fieldtype": "Link", 
  "label": "Purchase Receipt", 
  "oldfieldname": "purchase_receipt_main", 
  "oldfieldtype": "Link", 
  "options": "Purchase Receipt", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "get_items", 
  "fieldtype": "Button", 
  "label": "Get Items", 
  "oldfieldtype": "Button", 
  "options": "pull_details"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "currency_price_list", 
  "fieldtype": "Section Break", 
  "label": "Currency & Price List"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "currency", 
  "fieldtype": "Link", 
  "label": "Currency", 
  "oldfieldname": "currency", 
  "oldfieldtype": "Select", 
  "options": "Currency", 
  "print_hide": 1
 }, 
 {
  "default": "1", 
  "description": "The rate at which Bill Currency is converted into company's base currency", 
  "doctype": "DocField", 
  "fieldname": "conversion_rate", 
  "fieldtype": "Float", 
  "label": "Exchange Rate", 
  "oldfieldname": "conversion_rate", 
  "oldfieldtype": "Currency", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break2", 
  "fieldtype": "Column Break"
 }, 
 {
  "description": "Consider this Price List for fetching rate. (only which have \"For Buying\" as checked)", 
  "doctype": "DocField", 
  "fieldname": "price_list_name", 
  "fieldtype": "Link", 
  "label": "Price List", 
  "options": "Price List", 
  "print_hide": 1
 }, 
 {
  "depends_on": "price_list_name", 
  "doctype": "DocField", 
  "fieldname": "price_list_currency", 
  "fieldtype": "Link", 
  "label": "Price List Currency", 
  "options": "Currency", 
  "print_hide": 1
 }, 
 {
  "depends_on": "price_list_name", 
  "doctype": "DocField", 
  "fieldname": "plc_conversion_rate", 
  "fieldtype": "Float", 
  "label": "Price List Exchange Rate", 
  "print_hide": 1
 }, 
 {
  "description": "Add / Edit Taxes and Charges", 
  "doctype": "DocField", 
  "fieldname": "taxes", 
  "fieldtype": "Section Break", 
  "label": "Taxes", 
  "oldfieldtype": "Section Break"
 }, 
 {
  "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": "get_tax_detail", 
  "fieldtype": "Button", 
  "label": "Get Tax Detail", 
  "oldfieldtype": "Button", 
  "options": "get_purchase_tax_details", 
  "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": "calculate_tax", 
  "fieldtype": "Button", 
  "label": "Calculate Tax", 
  "oldfieldtype": "Button", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "tax_calculation", 
  "fieldtype": "HTML", 
  "label": "Tax Calculation", 
  "oldfieldtype": "HTML", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "total_tax", 
  "fieldtype": "Currency", 
  "label": "Total Tax", 
  "oldfieldname": "total_tax", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_section", 
  "fieldtype": "Section Break", 
  "label": "Contact Info"
 }, 
 {
  "depends_on": "eval:doc.supplier", 
  "doctype": "DocField", 
  "fieldname": "supplier_address", 
  "fieldtype": "Link", 
  "label": "Supplier Address", 
  "options": "Address"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break23", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "depends_on": "eval:doc.supplier", 
  "doctype": "DocField", 
  "fieldname": "contact_person", 
  "fieldtype": "Link", 
  "label": "Contact Person", 
  "options": "Contact", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "totals", 
  "fieldtype": "Section Break", 
  "label": "Totals", 
  "oldfieldtype": "Section Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "net_total_import", 
  "fieldtype": "Currency", 
  "label": "Net Total (Import)", 
  "oldfieldname": "net_total_import", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_added_import", 
  "fieldtype": "Currency", 
  "label": "Taxes and Charges Added (Import)", 
  "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 (Import)", 
  "oldfieldname": "other_charges_deducted_import", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "grand_total_import", 
  "fieldtype": "Currency", 
  "in_list_view": 1, 
  "label": "Grand Total (Import)", 
  "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 (Import)", 
  "oldfieldname": "in_words_import", 
  "oldfieldtype": "Data", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "total_amount_to_pay", 
  "fieldtype": "Currency", 
  "hidden": 0, 
  "label": "Total Amount To Pay", 
  "no_copy": 1, 
  "oldfieldname": "total_amount_to_pay", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "total_advance", 
  "fieldtype": "Currency", 
  "label": "Total Advance", 
  "no_copy": 1, 
  "oldfieldname": "total_advance", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "outstanding_amount", 
  "fieldtype": "Currency", 
  "in_filter": 1, 
  "in_list_view": 1, 
  "label": "Outstanding Amount", 
  "no_copy": 1, 
  "oldfieldname": "outstanding_amount", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break8", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "description": "Will be calculated automatically when you enter the details", 
  "doctype": "DocField", 
  "fieldname": "net_total", 
  "fieldtype": "Currency", 
  "label": "Net Total", 
  "oldfieldname": "net_total", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_added", 
  "fieldtype": "Currency", 
  "label": "Taxes and Charges Added", 
  "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", 
  "oldfieldname": "other_charges_deducted", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "grand_total", 
  "fieldtype": "Currency", 
  "label": "Grand Total", 
  "oldfieldname": "grand_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 Invoice.", 
  "doctype": "DocField", 
  "fieldname": "in_words", 
  "fieldtype": "Data", 
  "label": "In Words", 
  "oldfieldname": "in_words", 
  "oldfieldtype": "Data", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "write_off_amount", 
  "fieldtype": "Currency", 
  "label": "Write Off Amount", 
  "no_copy": 1, 
  "options": "Company:company:default_currency", 
  "print_hide": 1
 }, 
 {
  "depends_on": "eval:flt(doc.write_off_amount)!=0", 
  "doctype": "DocField", 
  "fieldname": "write_off_account", 
  "fieldtype": "Link", 
  "label": "Write Off Account", 
  "no_copy": 1, 
  "options": "Account", 
  "print_hide": 1
 }, 
 {
  "depends_on": "eval:flt(doc.write_off_amount)!=0", 
  "doctype": "DocField", 
  "fieldname": "write_off_cost_center", 
  "fieldtype": "Link", 
  "label": "Write Off Cost Center", 
  "no_copy": 1, 
  "options": "Account", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "against_expense_account", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "label": "Against Expense Account", 
  "no_copy": 1, 
  "oldfieldname": "against_expense_account", 
  "oldfieldtype": "Small Text", 
  "print_hide": 1, 
  "report_hide": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "advances", 
  "fieldtype": "Section Break", 
  "label": "Advances", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "get_advances_paid", 
  "fieldtype": "Button", 
  "label": "Get Advances Paid", 
  "oldfieldtype": "Button", 
  "options": "get_advances", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "advance_allocation_details", 
  "fieldtype": "Table", 
  "label": "Purchase Invoice Advances", 
  "no_copy": 1, 
  "oldfieldname": "advance_allocation_details", 
  "oldfieldtype": "Table", 
  "options": "Purchase Invoice Advance", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "more_info", 
  "fieldtype": "Section Break", 
  "label": "More Info", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "default": "No", 
  "doctype": "DocField", 
  "fieldname": "is_opening", 
  "fieldtype": "Select", 
  "in_filter": 1, 
  "label": "Is Opening", 
  "oldfieldname": "is_opening", 
  "oldfieldtype": "Select", 
  "options": "No\nYes", 
  "print_hide": 1, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "aging_date", 
  "fieldtype": "Date", 
  "label": "Aging Date", 
  "oldfieldname": "aging_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1, 
  "search_index": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "amended_from", 
  "fieldtype": "Link", 
  "label": "Amended From", 
  "no_copy": 1, 
  "oldfieldname": "amended_from", 
  "oldfieldtype": "Link", 
  "options": "Purchase Invoice", 
  "print_hide": 1, 
  "read_only": 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
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "due_date", 
  "fieldtype": "Date", 
  "in_filter": 1, 
  "label": "Due Date", 
  "no_copy": 0, 
  "oldfieldname": "due_date", 
  "oldfieldtype": "Date", 
  "print_hide": 0, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "mode_of_payment", 
  "fieldtype": "Select", 
  "label": "Mode of Payment", 
  "oldfieldname": "mode_of_payment", 
  "oldfieldtype": "Select", 
  "options": "link:Mode of Payment"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break_63", 
  "fieldtype": "Column Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Company", 
  "oldfieldname": "company", 
  "oldfieldtype": "Link", 
  "options": "Company", 
  "print_hide": 1, 
  "search_index": 1
 }, 
 {
  "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, 
  "search_index": 1
 }, 
 {
  "depends_on": "eval:!doc.__islocal", 
  "doctype": "DocField", 
  "fieldname": "cancel_reason", 
  "fieldtype": "Data", 
  "label": "Cancel Reason", 
  "no_copy": 1, 
  "oldfieldname": "cancel_reason", 
  "oldfieldtype": "Data", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "remarks", 
  "fieldtype": "Small Text", 
  "label": "Remarks", 
  "no_copy": 1, 
  "oldfieldname": "remarks", 
  "oldfieldtype": "Text", 
  "print_hide": 1, 
  "reqd": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "file_list", 
  "fieldtype": "Text", 
  "hidden": 1, 
  "label": "File List", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "amend": 1, 
  "cancel": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "role": "Accounts User", 
  "submit": 1, 
  "write": 1
 }, 
 {
  "amend": 0, 
  "cancel": 0, 
  "create": 1, 
  "doctype": "DocPerm", 
  "role": "Purchase User", 
  "submit": 0, 
  "write": 1
 }, 
 {
  "amend": 0, 
  "cancel": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "match": "supplier", 
  "role": "Supplier", 
  "submit": 0, 
  "write": 0
 }, 
 {
  "amend": 1, 
  "cancel": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "role": "Accounts Manager", 
  "submit": 1, 
  "write": 1
 }, 
 {
  "amend": 0, 
  "cancel": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "role": "Auditor", 
  "submit": 0, 
  "write": 0
 }
]