[
 {
  "owner": "Administrator", 
  "docstatus": 0, 
  "creation": "2012-12-03 10:31:06", 
  "modified_by": "Administrator", 
  "modified": "2012-12-03 17:10:41"
 }, 
 {
  "is_submittable": 1, 
  "autoname": "naming_series:", 
  "description": "Potential Sales Deal", 
  "default_print_format": "Standard", 
  "search_fields": "status,transaction_date,customer,lead,enquiry_type,territory,company", 
  "module": "Selling", 
  "doctype": "DocType", 
  "document_type": "Transaction", 
  "name": "__common__"
 }, 
 {
  "name": "__common__", 
  "parent": "Opportunity", 
  "doctype": "DocField", 
  "parenttype": "DocType", 
  "parentfield": "fields"
 }, 
 {
  "name": "__common__", 
  "parent": "Opportunity", 
  "read": 1, 
  "doctype": "DocPerm", 
  "parenttype": "DocType", 
  "parentfield": "permissions"
 }, 
 {
  "name": "Opportunity", 
  "doctype": "DocType"
 }, 
 {
  "description": "To manage multiple series please go to Setup > Manage Series", 
  "no_copy": 1, 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Naming Series", 
  "oldfieldname": "naming_series", 
  "permlevel": 0, 
  "fieldname": "naming_series", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "ENQUIRY\nENQ"
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Opportunity From", 
  "oldfieldname": "enquiry_from", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "enquiry_from", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "\nLead\nCustomer", 
  "report_hide": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Customer", 
  "oldfieldname": "customer", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "customer", 
  "fieldtype": "Link", 
  "search_index": 0, 
  "reqd": 0, 
  "hidden": 0, 
  "options": "Customer", 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Lead", 
  "oldfieldname": "lead", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "lead", 
  "fieldtype": "Link", 
  "hidden": 0, 
  "options": "Lead", 
  "in_filter": 1
 }, 
 {
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break0", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "permlevel": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Status", 
  "oldfieldname": "status", 
  "default": "Draft", 
  "fieldname": "status", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "options": "\nDraft\nSubmitted\nQuotation Sent\nOrder Confirmed\nOpportunity Lost\nCancelled"
 }, 
 {
  "oldfieldtype": "Select", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Opportunity Type", 
  "oldfieldname": "enquiry_type", 
  "options": "\nSales\nMaintenance", 
  "fieldname": "enquiry_type", 
  "fieldtype": "Select", 
  "reqd": 1, 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Items", 
  "fieldname": "items", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "description": "Items which do not exist in Item master can also be entered on customer's request", 
  "oldfieldtype": "Table", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Opportunity Items", 
  "oldfieldname": "enquiry_details", 
  "options": "Opportunity Item", 
  "fieldname": "enquiry_details", 
  "fieldtype": "Table", 
  "permlevel": 0
 }, 
 {
  "description": "Keep a track of communication related to this enquiry which will help for future reference.", 
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "fieldname": "communication_history", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Table", 
  "colour": "White:FFF", 
  "allow_on_submit": 1, 
  "doctype": "DocField", 
  "label": "Communication HTML", 
  "oldfieldname": "follow_up", 
  "fieldname": "communication_html", 
  "fieldtype": "HTML", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact Info", 
  "fieldname": "contact_info", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "doctype": "DocField", 
  "label": "Contact Person", 
  "trigger": "Client", 
  "fieldname": "contact_person", 
  "fieldtype": "Link", 
  "options": "Contact", 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "print_hide": 1, 
  "doctype": "DocField", 
  "label": "Customer Address", 
  "trigger": "Client", 
  "fieldname": "customer_address", 
  "fieldtype": "Link", 
  "options": "Address", 
  "permlevel": 0, 
  "in_filter": 1
 }, 
 {
  "print_hide": 0, 
  "doctype": "DocField", 
  "label": "Customer Name", 
  "fieldname": "customer_name", 
  "fieldtype": "Data", 
  "permlevel": 1
 }, 
 {
  "oldfieldtype": "Small Text", 
  "doctype": "DocField", 
  "label": "Address", 
  "oldfieldname": "address", 
  "fieldname": "address_display", 
  "fieldtype": "Small Text", 
  "hidden": 0, 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "column_break3", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact", 
  "fieldname": "contact_display", 
  "fieldtype": "Small Text", 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact Email", 
  "fieldname": "contact_email", 
  "fieldtype": "Text", 
  "permlevel": 1
 }, 
 {
  "doctype": "DocField", 
  "label": "Contact Mobile No", 
  "fieldname": "contact_mobile", 
  "fieldtype": "Text", 
  "permlevel": 1
 }, 
 {
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Name", 
  "oldfieldname": "lead_name", 
  "fieldname": "lead_name", 
  "fieldtype": "Data", 
  "hidden": 0, 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "depends_on": "eval:doc.enquiry_from==\"Customer\"", 
  "description": "<a href=\"#Sales Browser/Customer Group\">To manage Territory, click here</a>", 
  "search_index": 1, 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Customer Group", 
  "oldfieldname": "customer_group", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "customer_group", 
  "fieldtype": "Link", 
  "oldfieldtype": "Link", 
  "reqd": 0, 
  "hidden": 0, 
  "in_filter": 1, 
  "options": "Customer Group"
 }, 
 {
  "print_hide": 1, 
  "description": "<a href=\"#Sales Browser/Territory\">To manage Territory, click here</a>", 
  "search_index": 1, 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Territory", 
  "permlevel": 0, 
  "trigger": "Client", 
  "fieldname": "territory", 
  "fieldtype": "Link", 
  "reqd": 0, 
  "in_filter": 1, 
  "options": "Territory"
 }, 
 {
  "description": "Filing in Additional Information about the Opportunity will help you analyze your data better.", 
  "oldfieldtype": "Section Break", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "More Info", 
  "fieldname": "more_info", 
  "fieldtype": "Section Break", 
  "permlevel": 0
 }, 
 {
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break1", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "description": "The date at which current entry is made in system.", 
  "default": "Today", 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Opportunity Date", 
  "oldfieldname": "transaction_date", 
  "width": "50px", 
  "fieldname": "transaction_date", 
  "fieldtype": "Date", 
  "reqd": 1, 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Select", 
  "doctype": "DocField", 
  "label": "Fiscal Year", 
  "oldfieldname": "fiscal_year", 
  "permlevel": 0, 
  "fieldname": "fiscal_year", 
  "fieldtype": "Select", 
  "search_index": 1, 
  "reqd": 1, 
  "options": "link:Fiscal Year", 
  "in_filter": 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\nWalk In", 
  "fieldname": "source", 
  "fieldtype": "Select", 
  "permlevel": 0
 }, 
 {
  "description": "Enter name of campaign if source of enquiry is campaign", 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Campaign", 
  "oldfieldname": "campaign", 
  "options": "Campaign", 
  "fieldname": "campaign", 
  "fieldtype": "Link", 
  "permlevel": 0
 }, 
 {
  "no_copy": 1, 
  "oldfieldtype": "Small Text", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Quotation Lost Reason", 
  "oldfieldname": "order_lost_reason", 
  "fieldname": "order_lost_reason", 
  "fieldtype": "Small Text", 
  "depends_on": "eval:!doc.__islocal", 
  "permlevel": 1, 
  "report_hide": 0
 }, 
 {
  "print_hide": 1, 
  "oldfieldtype": "Link", 
  "doctype": "DocField", 
  "label": "Company", 
  "oldfieldname": "company", 
  "permlevel": 0, 
  "fieldname": "company", 
  "fieldtype": "Link", 
  "search_index": 1, 
  "reqd": 1, 
  "options": "Company", 
  "in_filter": 1
 }, 
 {
  "oldfieldtype": "Column Break", 
  "doctype": "DocField", 
  "width": "50%", 
  "fieldname": "column_break2", 
  "fieldtype": "Column Break", 
  "permlevel": 0
 }, 
 {
  "description": "Your sales person who will contact the customer in future", 
  "permlevel": 0, 
  "oldfieldtype": "Link", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Next Contact By", 
  "oldfieldname": "contact_by", 
  "width": "75px", 
  "fieldname": "contact_by", 
  "fieldtype": "Link", 
  "in_filter": 1, 
  "options": "Profile"
 }, 
 {
  "description": "Your sales person will get a reminder on this date to contact the customer", 
  "oldfieldtype": "Date", 
  "colour": "White:FFF", 
  "doctype": "DocField", 
  "label": "Next Contact Date", 
  "oldfieldname": "contact_date", 
  "fieldname": "contact_date", 
  "fieldtype": "Date", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "description": "Date on which the lead was last contacted", 
  "no_copy": 1, 
  "oldfieldtype": "Date", 
  "colour": "White:FFF", 
  "allow_on_submit": 0, 
  "doctype": "DocField", 
  "label": "Last Contact Date", 
  "oldfieldname": "last_contact_date", 
  "fieldname": "last_contact_date", 
  "fieldtype": "Date", 
  "depends_on": "eval:!doc.__islocal", 
  "permlevel": 1
 }, 
 {
  "no_copy": 1, 
  "oldfieldtype": "Small Text", 
  "doctype": "DocField", 
  "label": "To Discuss", 
  "oldfieldname": "to_discuss", 
  "fieldname": "to_discuss", 
  "fieldtype": "Small Text", 
  "permlevel": 0
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Data", 
  "doctype": "DocField", 
  "label": "Amended From", 
  "oldfieldname": "amended_from", 
  "width": "150px", 
  "fieldname": "amended_from", 
  "fieldtype": "Data", 
  "permlevel": 1
 }, 
 {
  "print_hide": 1, 
  "no_copy": 1, 
  "oldfieldtype": "Date", 
  "doctype": "DocField", 
  "label": "Amendment Date", 
  "oldfieldname": "amendment_date", 
  "width": "150px", 
  "fieldname": "amendment_date", 
  "fieldtype": "Date", 
  "permlevel": 1
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales Manager", 
  "permlevel": 1
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "cancel": 1, 
  "role": "System Manager", 
  "permlevel": 0
 }, 
 {
  "doctype": "DocPerm", 
  "role": "System Manager", 
  "permlevel": 1
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "cancel": 1, 
  "role": "Sales User", 
  "permlevel": 0
 }, 
 {
  "amend": 0, 
  "create": 0, 
  "doctype": "DocPerm", 
  "submit": 0, 
  "write": 0, 
  "cancel": 0, 
  "role": "Sales User", 
  "permlevel": 1
 }, 
 {
  "amend": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "submit": 1, 
  "write": 1, 
  "cancel": 1, 
  "role": "Sales Manager", 
  "permlevel": 0
 }
]