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