[
 {
  "creation": "2013-03-22 18:37:25", 
  "docstatus": 0, 
  "modified": "2013-03-22 18:38:13", 
  "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, due_date, debit_to, fiscal_year, grand_total, outstanding_amount"
 }, 
 {
  "doctype": "DocField", 
  "name": "__common__", 
  "parent": "Sales Invoice", 
  "parentfield": "fields", 
  "parenttype": "DocType", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocPerm", 
  "name": "__common__", 
  "parent": "Sales Invoice", 
  "parentfield": "permissions", 
  "parenttype": "DocType", 
  "permlevel": 0, 
  "read": 1, 
  "report": 1
 }, 
 {
  "doctype": "DocType", 
  "name": "Sales Invoice"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "basic_info", 
  "fieldtype": "Section Break", 
  "label": "Basic Info", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break0", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 0, 
  "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": "INV\nINV/10-11/", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "is_pos", 
  "fieldtype": "Check", 
  "label": "Is POS", 
  "oldfieldname": "is_pos", 
  "oldfieldtype": "Check", 
  "print_hide": 1
 }, 
 {
  "depends_on": "eval:doc.is_pos==1", 
  "doctype": "DocField", 
  "fieldname": "update_stock", 
  "fieldtype": "Check", 
  "label": "Update Stock", 
  "oldfieldname": "update_stock", 
  "oldfieldtype": "Check", 
  "print_hide": 1
 }, 
 {
  "description": "The account to which you will pay (have paid) the money to.", 
  "doctype": "DocField", 
  "fieldname": "debit_to", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Debit To", 
  "oldfieldname": "debit_to", 
  "oldfieldtype": "Link", 
  "options": "Account", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "customer", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "label": "Customer", 
  "no_copy": 0, 
  "oldfieldname": "customer", 
  "oldfieldtype": "Link", 
  "options": "Customer", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "customer_name", 
  "fieldtype": "Data", 
  "hidden": 1, 
  "in_list_view": 1, 
  "label": "Name", 
  "oldfieldname": "customer_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"
 }, 
 {
  "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": 1, 
  "oldfieldname": "posting_date", 
  "oldfieldtype": "Date", 
  "print_hide": 0, 
  "reqd": 1, 
  "search_index": 1
 }, 
 {
  "default": "Today", 
  "description": "Enter the date by which payments from customer is expected against this invoice.", 
  "doctype": "DocField", 
  "fieldname": "due_date", 
  "fieldtype": "Date", 
  "in_filter": 1, 
  "label": "Due Date", 
  "no_copy": 1, 
  "oldfieldname": "due_date", 
  "oldfieldtype": "Date", 
  "reqd": 1, 
  "search_index": 0
 }, 
 {
  "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": "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": "Sales Invoice Item"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "sales_bom_help", 
  "fieldtype": "HTML", 
  "label": "Sales BOM Help", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "section_break0", 
  "fieldtype": "Section Break", 
  "options": "Simple"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break26", 
  "fieldtype": "Column Break", 
  "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": 0, 
  "read_only": 1, 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "recalculate_values", 
  "fieldtype": "Button", 
  "label": "Re-Calculate Values", 
  "oldfieldtype": "Button", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break25", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "description": "Select Items from Sales Order", 
  "doctype": "DocField", 
  "fieldname": "sales_order_main", 
  "fieldtype": "Link", 
  "label": "Sales Order", 
  "oldfieldname": "sales_order_main", 
  "oldfieldtype": "Link", 
  "options": "Sales Order", 
  "print_hide": 1
 }, 
 {
  "description": "Select Items from Delivery Note", 
  "doctype": "DocField", 
  "fieldname": "delivery_note_main", 
  "fieldtype": "Link", 
  "label": "Delivery Note", 
  "oldfieldname": "delivery_note_main", 
  "oldfieldtype": "Link", 
  "options": "Delivery Note", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "get_items", 
  "fieldtype": "Button", 
  "label": "Get Items", 
  "oldfieldtype": "Button", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "currency_section", 
  "fieldtype": "Section Break", 
  "label": "Price List and Currency"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break27", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "price_list_name", 
  "fieldtype": "Select", 
  "label": "Price List", 
  "oldfieldname": "price_list_name", 
  "oldfieldtype": "Select", 
  "options": "link:Price List", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "description": "Select the currency in which price list is maintained", 
  "doctype": "DocField", 
  "fieldname": "price_list_currency", 
  "fieldtype": "Link", 
  "label": "Price List Currency", 
  "options": "Currency", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "description": "Rate at which Price list currency is converted to customer's base currency", 
  "doctype": "DocField", 
  "fieldname": "plc_conversion_rate", 
  "fieldtype": "Float", 
  "label": "Price List Currency Conversion Rate", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break2", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "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 Customer Currency is converted to customer's base currency", 
  "doctype": "DocField", 
  "fieldname": "conversion_rate", 
  "fieldtype": "Float", 
  "label": "Conversion Rate", 
  "oldfieldname": "conversion_rate", 
  "oldfieldtype": "Currency", 
  "print_hide": 1, 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "taxes", 
  "fieldtype": "Section Break", 
  "label": "Taxes and Charges", 
  "oldfieldtype": "Section Break"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "charge", 
  "fieldtype": "Link", 
  "label": "Taxes and Charges", 
  "oldfieldname": "charge", 
  "oldfieldtype": "Link", 
  "options": "Sales Taxes and Charges Master", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "get_charges", 
  "fieldtype": "Button", 
  "label": "Get Taxes and Charges", 
  "oldfieldtype": "Button", 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "fieldname": "other_charges", 
  "fieldtype": "Table", 
  "label": "Taxes and Charges1", 
  "oldfieldname": "other_charges", 
  "oldfieldtype": "Table", 
  "options": "Sales Taxes and Charges"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "calculate_charges", 
  "fieldtype": "Button", 
  "label": "Calculate Taxes and Charges", 
  "oldfieldtype": "Button", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_total", 
  "fieldtype": "Currency", 
  "label": "Total Taxes and Charges", 
  "oldfieldname": "other_charges_total", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "other_charges_calculation", 
  "fieldtype": "HTML", 
  "label": "Taxes and Charges Calculation", 
  "oldfieldtype": "HTML", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "totals", 
  "fieldtype": "Section Break", 
  "label": "Totals", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break5", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "grand_total", 
  "fieldtype": "Currency", 
  "in_filter": 1, 
  "label": "Grand Total", 
  "oldfieldname": "grand_total", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1, 
  "reqd": 1, 
  "search_index": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "rounded_total", 
  "fieldtype": "Currency", 
  "label": "Rounded Total", 
  "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 Sales 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": "total_advance", 
  "fieldtype": "Currency", 
  "label": "Total Advance", 
  "oldfieldname": "total_advance", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "outstanding_amount", 
  "fieldtype": "Currency", 
  "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
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break6", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "grand_total_export", 
  "fieldtype": "Currency", 
  "in_list_view": 1, 
  "label": "Grand Total (Export)", 
  "oldfieldname": "grand_total_export", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 0, 
  "read_only": 1, 
  "reqd": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "rounded_total_export", 
  "fieldtype": "Currency", 
  "label": "Rounded Total (Export)", 
  "oldfieldname": "rounded_total_export", 
  "oldfieldtype": "Currency", 
  "options": "currency", 
  "print_hide": 0, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "in_words_export", 
  "fieldtype": "Data", 
  "label": "In Words (Export)", 
  "oldfieldname": "in_words_export", 
  "oldfieldtype": "Data", 
  "print_hide": 0, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "gross_profit", 
  "fieldtype": "Currency", 
  "label": "Gross Profit", 
  "oldfieldname": "gross_profit", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "gross_profit_percent", 
  "fieldtype": "Float", 
  "label": "Gross Profit (%)", 
  "oldfieldname": "gross_profit_percent", 
  "oldfieldtype": "Currency", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "payments_section", 
  "fieldtype": "Section Break", 
  "label": "Payments"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break3", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "paid_amount", 
  "fieldtype": "Currency", 
  "label": "Paid Amount", 
  "oldfieldname": "paid_amount", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "cash_bank_account", 
  "fieldtype": "Link", 
  "label": "Cash/Bank Account", 
  "oldfieldname": "cash_bank_account", 
  "oldfieldtype": "Link", 
  "options": "Account", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break4", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "write_off_outstanding_amount_automatically", 
  "fieldtype": "Check", 
  "label": "Write Off Outstanding Amount", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "write_off_amount", 
  "fieldtype": "Currency", 
  "label": "Write Off Amount", 
  "options": "Company:company:default_currency", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "write_off_account", 
  "fieldtype": "Link", 
  "label": "Write Off Account", 
  "options": "Account", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "write_off_cost_center", 
  "fieldtype": "Link", 
  "label": "Write Off Cost Center", 
  "options": "Cost Center", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "terms_section_break", 
  "fieldtype": "Section Break", 
  "label": "Terms and Conditions", 
  "oldfieldtype": "Section Break"
 }, 
 {
  "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": "get_terms", 
  "fieldtype": "Button", 
  "label": "Get Terms and Conditions", 
  "oldfieldtype": "Button", 
  "options": "get_tc_details", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "terms_html", 
  "fieldtype": "HTML", 
  "label": "Terms and Conditions HTML", 
  "oldfieldtype": "HTML", 
  "options": "You can add Terms and Notes that will be printed in the Transaction", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "terms", 
  "fieldtype": "Text Editor", 
  "label": "Terms and Conditions Details", 
  "oldfieldname": "terms", 
  "oldfieldtype": "Text Editor"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_section", 
  "fieldtype": "Section Break", 
  "label": "Contact Info"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break23", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "customer_address", 
  "fieldtype": "Link", 
  "label": "Customer Address", 
  "options": "Address", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "contact_person", 
  "fieldtype": "Link", 
  "label": "Contact Person", 
  "options": "Contact", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "col_break24", 
  "fieldtype": "Column Break", 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "territory", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Territory", 
  "options": "Territory", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "customer_group", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Customer Group", 
  "options": "Customer Group", 
  "print_hide": 1, 
  "search_index": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "more_info", 
  "fieldtype": "Section Break", 
  "label": "More Info", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break7", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "default": "No", 
  "description": "Considered as an Opening Balance", 
  "doctype": "DocField", 
  "fieldname": "is_opening", 
  "fieldtype": "Select", 
  "in_filter": 1, 
  "label": "Is Opening Entry", 
  "oldfieldname": "is_opening", 
  "oldfieldtype": "Select", 
  "options": "No\nYes", 
  "print_hide": 1, 
  "search_index": 0
 }, 
 {
  "description": "Actual Invoice Date", 
  "doctype": "DocField", 
  "fieldname": "aging_date", 
  "fieldtype": "Date", 
  "label": "Aging Date", 
  "oldfieldname": "aging_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "posting_time", 
  "fieldtype": "Time", 
  "label": "Posting Time", 
  "no_copy": 1, 
  "oldfieldname": "posting_time", 
  "oldfieldtype": "Time", 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "fieldname": "letter_head", 
  "fieldtype": "Select", 
  "label": "Letter Head", 
  "oldfieldname": "letter_head", 
  "oldfieldtype": "Select", 
  "options": "link:Letter Head", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "c_form_applicable", 
  "fieldtype": "Select", 
  "label": "C-Form Applicable", 
  "no_copy": 1, 
  "options": "No\nYes", 
  "print_hide": 1, 
  "report_hide": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "c_form_no", 
  "fieldtype": "Link", 
  "label": "C-Form No", 
  "no_copy": 1, 
  "options": "C-Form", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "depends_on": "eval:doc.source == 'Campaign'", 
  "doctype": "DocField", 
  "fieldname": "campaign", 
  "fieldtype": "Link", 
  "label": "Campaign", 
  "oldfieldname": "campaign", 
  "oldfieldtype": "Link", 
  "options": "Campaign", 
  "print_hide": 1
 }, 
 {
  "description": "Track this Sales Invoice against any Project", 
  "doctype": "DocField", 
  "fieldname": "project_name", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Project Name", 
  "oldfieldname": "project_name", 
  "oldfieldtype": "Link", 
  "options": "Project", 
  "search_index": 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": "column_break8", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "source", 
  "fieldtype": "Select", 
  "label": "Source", 
  "oldfieldname": "source", 
  "oldfieldtype": "Select", 
  "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Company", 
  "oldfieldname": "company", 
  "oldfieldtype": "Link", 
  "options": "Company", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "fiscal_year", 
  "fieldtype": "Select", 
  "in_filter": 1, 
  "label": "Fiscal Year", 
  "no_copy": 0, 
  "oldfieldname": "fiscal_year", 
  "oldfieldtype": "Select", 
  "options": "link:Fiscal Year", 
  "print_hide": 1, 
  "reqd": 1, 
  "search_index": 0
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "amended_from", 
  "fieldtype": "Link", 
  "label": "Amended From", 
  "no_copy": 1, 
  "oldfieldname": "amended_from", 
  "oldfieldtype": "Link", 
  "options": "Sales Invoice", 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "description": "The date at which current entry is corrected in the system.", 
  "doctype": "DocField", 
  "fieldname": "amendment_date", 
  "fieldtype": "Date", 
  "label": "Amendment Date", 
  "no_copy": 1, 
  "oldfieldname": "amendment_date", 
  "oldfieldtype": "Date", 
  "print_hide": 1
 }, 
 {
  "depends_on": "eval:!doc.__islocal", 
  "doctype": "DocField", 
  "fieldname": "cancel_reason", 
  "fieldtype": "Data", 
  "label": "Cancel Reason", 
  "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": "advances", 
  "fieldtype": "Section Break", 
  "label": "Advances", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "get_advances_received", 
  "fieldtype": "Button", 
  "label": "Get Advances Received", 
  "oldfieldtype": "Button", 
  "options": "get_advances", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "advance_adjustment_details", 
  "fieldtype": "Table", 
  "label": "Sales Invoice Advance", 
  "oldfieldname": "advance_adjustment_details", 
  "oldfieldtype": "Table", 
  "options": "Sales Invoice Advance", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "packing_list", 
  "fieldtype": "Section Break", 
  "label": "Packing List", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "packing_details", 
  "fieldtype": "Table", 
  "label": "Packing Details", 
  "options": "Delivery Note Packing Item", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "sales_team_section_break", 
  "fieldtype": "Section Break", 
  "label": "Sales Team", 
  "oldfieldtype": "Section Break", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break9", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "sales_partner", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "label": "Sales Partner", 
  "oldfieldname": "sales_partner", 
  "oldfieldtype": "Link", 
  "options": "Sales Partner", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break10", 
  "fieldtype": "Column Break", 
  "oldfieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "commission_rate", 
  "fieldtype": "Float", 
  "label": "Commission Rate (%)", 
  "oldfieldname": "commission_rate", 
  "oldfieldtype": "Currency", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "total_commission", 
  "fieldtype": "Currency", 
  "label": "Total Commission", 
  "oldfieldname": "total_commission", 
  "oldfieldtype": "Currency", 
  "options": "Company:company:default_currency", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "section_break2", 
  "fieldtype": "Section Break", 
  "options": "Simple", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "sales_team", 
  "fieldtype": "Table", 
  "label": "Sales Team1", 
  "oldfieldname": "sales_team", 
  "oldfieldtype": "Table", 
  "options": "Sales Team", 
  "print_hide": 1
 }, 
 {
  "depends_on": "eval:doc.docstatus<2", 
  "doctype": "DocField", 
  "fieldname": "recurring_invoice", 
  "fieldtype": "Section Break", 
  "label": "Recurring Invoice", 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break11", 
  "fieldtype": "Column Break", 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.docstatus<2", 
  "description": "Check if recurring invoice, uncheck to stop recurring or put proper End Date", 
  "doctype": "DocField", 
  "fieldname": "convert_into_recurring_invoice", 
  "fieldtype": "Check", 
  "label": "Convert into Recurring Invoice", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "Select the period when the invoice will be generated automatically", 
  "doctype": "DocField", 
  "fieldname": "recurring_type", 
  "fieldtype": "Select", 
  "label": "Recurring Type", 
  "no_copy": 1, 
  "options": "Monthly\nQuarterly\nHalf-yearly\nYearly", 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "The day of the month on which auto invoice will be generated e.g. 05, 28 etc ", 
  "doctype": "DocField", 
  "fieldname": "repeat_on_day_of_month", 
  "fieldtype": "Int", 
  "label": "Repeat on Day of Month", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "Start date of current invoice's period", 
  "doctype": "DocField", 
  "fieldname": "invoice_period_from_date", 
  "fieldtype": "Date", 
  "label": "Invoice Period From Date", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "End date of current invoice's period", 
  "doctype": "DocField", 
  "fieldname": "invoice_period_to_date", 
  "fieldtype": "Date", 
  "label": "Invoice Period To Date", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break12", 
  "fieldtype": "Column Break", 
  "no_copy": 0, 
  "print_hide": 1, 
  "width": "50%"
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "Enter email id separated by commas, invoice will be mailed automatically on particular date", 
  "doctype": "DocField", 
  "fieldname": "notification_email_address", 
  "fieldtype": "Small Text", 
  "label": "Notification Email Address", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "The unique id for tracking all recurring invoices.\u00a0It is generated on submit.", 
  "doctype": "DocField", 
  "fieldname": "recurring_id", 
  "fieldtype": "Data", 
  "label": "Recurring Id", 
  "no_copy": 1, 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "The date on which next invoice will be generated. It is generated on submit.\n", 
  "doctype": "DocField", 
  "fieldname": "next_date", 
  "fieldtype": "Date", 
  "label": "Next Date", 
  "no_copy": 1, 
  "print_hide": 1, 
  "read_only": 1
 }, 
 {
  "allow_on_submit": 1, 
  "depends_on": "eval:doc.convert_into_recurring_invoice==1", 
  "description": "The date on which recurring invoice will be stop", 
  "doctype": "DocField", 
  "fieldname": "end_date", 
  "fieldtype": "Date", 
  "label": "End Date", 
  "no_copy": 1, 
  "print_hide": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "against_income_account", 
  "fieldtype": "Small Text", 
  "hidden": 1, 
  "label": "Against Income Account", 
  "no_copy": 1, 
  "oldfieldname": "against_income_account", 
  "oldfieldtype": "Small Text", 
  "print_hide": 1, 
  "report_hide": 1
 }, 
 {
  "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
 }, 
 {
  "doctype": "DocPerm", 
  "match": "customer", 
  "role": "Customer"
 }
]