Merge branch 'shf_rename' of github.com:webnotes/erpnext into shf_rename
diff --git a/erpnext/accounts/doctype/journal_voucher/journal_voucher.js b/erpnext/accounts/doctype/journal_voucher/journal_voucher.js
index 772532e..67dcbd5 100644
--- a/erpnext/accounts/doctype/journal_voucher/journal_voucher.js
+++ b/erpnext/accounts/doctype/journal_voucher/journal_voucher.js
@@ -29,6 +29,10 @@
cur_frm.cscript.load_defaults(doc, cdt, cdn);
}
+cur_frm.cscript.refresh = function(doc) {
+ cur_frm.cscript.is_opening(doc)
+ erpnext.hide_naming_series();
+}
cur_frm.cscript.load_defaults = function(doc, cdt, cdn) {
if(!cur_frm.doc.__islocal || !cur_frm.doc.company) { return; }
@@ -55,8 +59,6 @@
else hide_field('view_ledger_entry');
}
-cur_frm.cscript.refresh = cur_frm.cscript.is_opening;
-
cur_frm.fields_dict['entries'].grid.get_field('account').get_query = function(doc) {
return "SELECT `tabAccount`.name FROM `tabAccount` WHERE `tabAccount`.company='"+doc.company+"' AND tabAccount.group_or_ledger = 'Ledger' AND tabAccount.docstatus != 2 AND `tabAccount`.%(key)s LIKE '%s' ORDER BY `tabAccount`.name DESC LIMIT 50";
}
diff --git a/erpnext/accounts/doctype/journal_voucher/journal_voucher.txt b/erpnext/accounts/doctype/journal_voucher/journal_voucher.txt
index 97055f3..09b41df 100644
--- a/erpnext/accounts/doctype/journal_voucher/journal_voucher.txt
+++ b/erpnext/accounts/doctype/journal_voucher/journal_voucher.txt
@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
- 'creation': '2012-04-13 11:55:50',
+ 'creation': '2012-04-30 12:08:36',
'docstatus': 0,
- 'modified': '2012-04-13 12:28:24',
+ 'modified': '2012-04-30 15:59:52',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
@@ -25,7 +25,7 @@
'show_in_menu': 0,
'subject': u' ',
'tag_fields': u'voucher_type',
- 'version': 312
+ 'version': 1
},
# These values are common for all DocField
@@ -114,17 +114,6 @@
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'1_select_series_and_dates',
- 'fieldtype': u'Section Break',
- 'label': u'1. Select Series and Dates',
- 'oldfieldtype': u'Section Break',
- 'options': u'Simple',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'doctype': u'DocField',
'fieldname': u'column_break0',
'fieldtype': u'Column Break',
'oldfieldtype': u'Column Break',
@@ -134,49 +123,6 @@
# DocField
{
- 'doctype': u'DocField',
- 'fieldname': u'voucher_type',
- 'fieldtype': u'Select',
- 'in_filter': 1,
- 'label': u'Voucher Type',
- 'oldfieldname': u'voucher_type',
- 'oldfieldtype': u'Select',
- 'options': u'\nJournal Entry\nBank Voucher\nCash Voucher\nCredit Card Voucher\nDebit Note\nCredit Note\nContra Voucher\nExcise Voucher\nWrite Off Voucher',
- 'permlevel': 0,
- 'print_hide': 0,
- 'search_index': 1
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'",
- 'doctype': u'DocField',
- 'fieldname': u'write_off_amount',
- 'fieldtype': u'Currency',
- 'label': u'Write Off Amount <=',
- 'permlevel': 0,
- 'print_hide': 1,
- 'report_hide': 1
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'default': u'Accounts Receivable',
- 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'",
- 'doctype': u'DocField',
- 'fieldname': u'write_off_based_on',
- 'fieldtype': u'Select',
- 'label': u'Write Off Based On',
- 'options': u'Accounts Receivable\nAccounts Payable',
- 'permlevel': 0,
- 'print_hide': 1,
- 'report_hide': 1
- },
-
- # DocField
- {
'colour': u'White:FFF',
'description': u'To manage multiple series please go to Setup > Manage Series',
'doctype': u'DocField',
@@ -194,24 +140,31 @@
# DocField
{
- 'colour': u'White:FFF',
- 'default': u'Today',
'doctype': u'DocField',
- 'fieldname': u'voucher_date',
- 'fieldtype': u'Date',
+ 'fieldname': u'voucher_type',
+ 'fieldtype': u'Select',
'in_filter': 1,
- 'label': u'Voucher Date',
- 'no_copy': 1,
- 'oldfieldname': u'voucher_date',
- 'oldfieldtype': u'Date',
+ 'label': u'Voucher Type',
+ 'oldfieldname': u'voucher_type',
+ 'oldfieldtype': u'Select',
+ 'options': u'\nJournal Entry\nBank Voucher\nCash Voucher\nCredit Card Voucher\nDebit Note\nCredit Note\nContra Voucher\nExcise Voucher\nWrite Off Voucher',
'permlevel': 0,
'print_hide': 0,
- 'reqd': 1,
'search_index': 1
},
# DocField
{
+ 'doctype': u'DocField',
+ 'fieldname': u'column_break1',
+ 'fieldtype': u'Column Break',
+ 'oldfieldtype': u'Column Break',
+ 'permlevel': 0,
+ 'width': u'50%'
+ },
+
+ # DocField
+ {
'description': u'The date at which current entry will get or has actually executed.',
'doctype': u'DocField',
'fieldname': u'posting_date',
@@ -229,65 +182,102 @@
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'due_date',
- 'fieldtype': u'Date',
- 'label': u'Due Date',
- 'oldfieldname': u'due_date',
- 'oldfieldtype': u'Date',
+ 'fieldname': u'2_add_edit_gl_entries',
+ 'fieldtype': u'Section Break',
+ 'label': u'Journal Entries',
+ 'oldfieldtype': u'Section Break',
+ 'options': u'Simple',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'allow_on_submit': 1,
+ 'doctype': u'DocField',
+ 'fieldname': u'entries',
+ 'fieldtype': u'Table',
+ 'label': u'Entries',
+ 'oldfieldname': u'entries',
+ 'oldfieldtype': u'Table',
+ 'options': u'Journal Voucher Detail',
'permlevel': 0,
'print_hide': 0
},
# DocField
{
- 'description': u'The date at which current entry is corrected in the system.',
'doctype': u'DocField',
- 'fieldname': u'amendment_date',
- 'fieldtype': u'Date',
- 'label': u'Amendment Date',
- 'no_copy': 1,
- 'oldfieldname': u'amendment_date',
- 'oldfieldtype': u'Date',
- 'permlevel': 0,
- 'print_hide': 1
+ 'fieldname': u'section_break99',
+ 'fieldtype': u'Section Break',
+ 'options': u'Simple',
+ 'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'amended_from',
- 'fieldtype': u'Link',
- 'label': u'Amended From',
+ 'fieldname': u'total_debit',
+ 'fieldtype': u'Currency',
+ 'in_filter': 1,
+ 'label': u'Total Debit',
'no_copy': 1,
- 'oldfieldname': u'amended_from',
- 'oldfieldtype': u'Link',
- 'options': u'Journal Voucher',
+ 'oldfieldname': u'total_debit',
+ 'oldfieldtype': u'Currency',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'total_credit',
+ 'fieldtype': u'Currency',
+ 'in_filter': 1,
+ 'label': u'Total Credit',
+ 'no_copy': 1,
+ 'oldfieldname': u'total_credit',
+ 'oldfieldtype': u'Currency',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'column_break99',
+ 'fieldtype': u'Column Break',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'difference',
+ 'fieldtype': u'Currency',
+ 'label': u'Difference',
+ 'no_copy': 1,
+ 'oldfieldname': u'difference',
+ 'oldfieldtype': u'Currency',
'permlevel': 1,
'print_hide': 1
},
# DocField
{
- 'colour': u'White:FFF',
- 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'",
'doctype': u'DocField',
- 'fieldname': u'get_outstanding_invoices',
+ 'fieldname': u'get_balance',
'fieldtype': u'Button',
- 'label': u'Get Outstanding Invoices',
- 'options': u'get_outstanding_invoices',
+ 'label': u'Make Difference Entry',
+ 'oldfieldtype': u'Button',
'permlevel': 0,
- 'print_hide': 1,
- 'trigger': u'Server'
+ 'trigger': u'Client'
},
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'column_break1',
- 'fieldtype': u'Column Break',
- 'oldfieldtype': u'Column Break',
- 'permlevel': 0,
- 'width': u'50%'
+ 'fieldname': u'reference',
+ 'fieldtype': u'Section Break',
+ 'label': u'Reference',
+ 'permlevel': 0
},
# DocField
@@ -334,6 +324,14 @@
# DocField
{
'doctype': u'DocField',
+ 'fieldname': u'column_break98',
+ 'fieldtype': u'Column Break',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
'fieldname': u'user_remark',
'fieldtype': u'Small Text',
'in_filter': 1,
@@ -361,101 +359,6 @@
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'2_add_edit_gl_entries',
- 'fieldtype': u'Section Break',
- 'label': u'2. Add / Edit GL Entries',
- 'oldfieldtype': u'Section Break',
- 'options': u'Simple',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'allow_on_submit': 1,
- 'doctype': u'DocField',
- 'fieldname': u'entries',
- 'fieldtype': u'Table',
- 'label': u'Entries',
- 'oldfieldname': u'entries',
- 'oldfieldtype': u'Table',
- 'options': u'Journal Voucher Detail',
- 'permlevel': 0,
- 'print_hide': 0
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'get_balance',
- 'fieldtype': u'Button',
- 'label': u'Get Balance',
- 'oldfieldtype': u'Button',
- 'permlevel': 0,
- 'trigger': u'Client'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'total_debit',
- 'fieldtype': u'Currency',
- 'in_filter': 1,
- 'label': u'Total Debit',
- 'no_copy': 1,
- 'oldfieldname': u'total_debit',
- 'oldfieldtype': u'Currency',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'total_credit',
- 'fieldtype': u'Currency',
- 'in_filter': 1,
- 'label': u'Total Credit',
- 'no_copy': 1,
- 'oldfieldname': u'total_credit',
- 'oldfieldtype': u'Currency',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'difference',
- 'fieldtype': u'Currency',
- 'label': u'Difference',
- 'no_copy': 1,
- 'oldfieldname': u'difference',
- 'oldfieldtype': u'Currency',
- 'permlevel': 1,
- 'print_hide': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'addtional_info',
- 'fieldtype': u'Section Break',
- 'label': u'Addtional Info',
- 'oldfieldtype': u'Section Break',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'column_break2',
- 'fieldtype': u'Column Break',
- 'oldfieldtype': u'Column Break',
- 'permlevel': 0,
- 'width': u'50%'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
'fieldname': u'bill_no',
'fieldtype': u'Data',
'label': u'Bill No',
@@ -479,6 +382,38 @@
# DocField
{
+ 'doctype': u'DocField',
+ 'fieldname': u'due_date',
+ 'fieldtype': u'Date',
+ 'label': u'Due Date',
+ 'oldfieldname': u'due_date',
+ 'oldfieldtype': u'Date',
+ 'permlevel': 0,
+ 'print_hide': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'addtional_info',
+ 'fieldtype': u'Section Break',
+ 'label': u'More Info',
+ 'oldfieldtype': u'Section Break',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'column_break2',
+ 'fieldtype': u'Column Break',
+ 'oldfieldtype': u'Column Break',
+ 'permlevel': 0,
+ 'width': u'50%'
+ },
+
+ # DocField
+ {
'colour': u'White:FFF',
'default': u'No',
'doctype': u'DocField',
@@ -497,6 +432,8 @@
# DocField
{
+ 'colour': u'White:FFF',
+ 'description': u'For opening invoice entry, this date will reflect in the period-wise aging report.',
'doctype': u'DocField',
'fieldname': u'aging_date',
'fieldtype': u'Date',
@@ -510,15 +447,73 @@
# DocField
{
+ 'colour': u'White:FFF',
+ 'default': u'Accounts Receivable',
+ 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'",
'doctype': u'DocField',
- 'fieldname': u'cancel_reason',
- 'fieldtype': u'Data',
- 'label': u'Cancel Reason',
+ 'fieldname': u'write_off_based_on',
+ 'fieldtype': u'Select',
+ 'label': u'Write Off Based On',
+ 'options': u'Accounts Receivable\nAccounts Payable',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'report_hide': 1
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
+ 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'",
+ 'doctype': u'DocField',
+ 'fieldname': u'write_off_amount',
+ 'fieldtype': u'Currency',
+ 'label': u'Write Off Amount <=',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'report_hide': 1
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
+ 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'",
+ 'doctype': u'DocField',
+ 'fieldname': u'get_outstanding_invoices',
+ 'fieldtype': u'Button',
+ 'label': u'Get Outstanding Invoices',
+ 'options': u'get_outstanding_invoices',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'trigger': u'Server'
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
+ 'default': u'Today',
+ 'description': u'Date of entry (not posting to ledgers)',
+ 'doctype': u'DocField',
+ 'fieldname': u'voucher_date',
+ 'fieldtype': u'Date',
+ 'in_filter': 1,
+ 'label': u'Voucher Date',
'no_copy': 1,
- 'oldfieldname': u'cancel_reason',
- 'oldfieldtype': u'Data',
- 'permlevel': 1,
- 'print_hide': 1
+ 'oldfieldname': u'voucher_date',
+ 'oldfieldtype': u'Date',
+ 'permlevel': 0,
+ 'print_hide': 0,
+ 'reqd': 1,
+ 'search_index': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'column_break3',
+ 'fieldtype': u'Column Break',
+ 'oldfieldtype': u'Column Break',
+ 'permlevel': 0,
+ 'width': u'50%'
},
# DocField
@@ -563,16 +558,6 @@
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'column_break3',
- 'fieldtype': u'Column Break',
- 'oldfieldtype': u'Column Break',
- 'permlevel': 0,
- 'width': u'50%'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
'fieldname': u'fiscal_year',
'fieldtype': u'Select',
'in_filter': 1,
@@ -623,6 +608,47 @@
# DocField
{
'doctype': u'DocField',
+ 'fieldname': u'amended_from',
+ 'fieldtype': u'Link',
+ 'label': u'Amended From',
+ 'no_copy': 1,
+ 'oldfieldname': u'amended_from',
+ 'oldfieldtype': u'Link',
+ 'options': u'Journal Voucher',
+ 'permlevel': 1,
+ 'print_hide': 1
+ },
+
+ # DocField
+ {
+ 'description': u'The date at which current entry is corrected in the system.',
+ 'doctype': u'DocField',
+ 'fieldname': u'amendment_date',
+ 'fieldtype': u'Date',
+ 'label': u'Amendment Date',
+ 'no_copy': 1,
+ 'oldfieldname': u'amendment_date',
+ 'oldfieldtype': u'Date',
+ 'permlevel': 0,
+ 'print_hide': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'cancel_reason',
+ 'fieldtype': u'Data',
+ 'label': u'Cancel Reason',
+ 'no_copy': 1,
+ 'oldfieldname': u'cancel_reason',
+ 'oldfieldtype': u'Data',
+ 'permlevel': 1,
+ 'print_hide': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
'fieldname': u'section_break0',
'fieldtype': u'Section Break',
'oldfieldtype': u'Section Break',
diff --git a/erpnext/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt b/erpnext/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt
index c7b6d1a..c909bef 100644
--- a/erpnext/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt
+++ b/erpnext/accounts/doctype/journal_voucher_detail/journal_voucher_detail.txt
@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
- 'creation': '2012-03-27 14:35:43',
+ 'creation': '2012-04-02 16:01:23',
'docstatus': 0,
- 'modified': '2012-03-27 14:35:43',
+ 'modified': '2012-04-30 16:05:46',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
@@ -22,7 +22,7 @@
'section_style': u'Tray',
'server_code_error': u' ',
'show_in_menu': 0,
- 'version': 3
+ 'version': 1
},
# These values are common for all DocField
@@ -54,34 +54,7 @@
'reqd': 1,
'search_index': 1,
'trigger': u'Client',
- 'width': u'180px'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'cost_center',
- 'fieldtype': u'Link',
- 'in_filter': 1,
- 'label': u'Cost Center',
- 'oldfieldname': u'cost_center',
- 'oldfieldtype': u'Link',
- 'options': u'Cost Center',
- 'permlevel': 0,
- 'search_index': 0,
- 'width': u'180px'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'balance',
- 'fieldtype': u'Data',
- 'label': u'Balance',
- 'no_copy': 1,
- 'oldfieldname': u'balance',
- 'oldfieldtype': u'Data',
- 'permlevel': 1
+ 'width': u'250px'
},
# DocField
@@ -111,6 +84,33 @@
# DocField
{
'doctype': u'DocField',
+ 'fieldname': u'cost_center',
+ 'fieldtype': u'Link',
+ 'in_filter': 1,
+ 'label': u'Cost Center',
+ 'oldfieldname': u'cost_center',
+ 'oldfieldtype': u'Link',
+ 'options': u'Cost Center',
+ 'permlevel': 0,
+ 'search_index': 0,
+ 'width': u'180px'
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'balance',
+ 'fieldtype': u'Data',
+ 'label': u'Account Balance',
+ 'no_copy': 1,
+ 'oldfieldname': u'balance',
+ 'oldfieldtype': u'Data',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
'fieldname': u'against_voucher',
'fieldtype': u'Link',
'in_filter': 1,
diff --git a/erpnext/selling/doctype/lead/lead.js b/erpnext/selling/doctype/lead/lead.js
index e97aea5..a167281 100644
--- a/erpnext/selling/doctype/lead/lead.js
+++ b/erpnext/selling/doctype/lead/lead.js
@@ -51,6 +51,7 @@
cur_frm.add_custom_button('Create Opportunity', cur_frm.cscript['Create Opportunity']);
cur_frm.add_custom_button('Send SMS', cur_frm.cscript.send_sms);
}
+ erpnext.hide_naming_series();
}
diff --git a/erpnext/selling/doctype/lead/lead.py b/erpnext/selling/doctype/lead/lead.py
index 50e996a..e097a4c 100644
--- a/erpnext/selling/doctype/lead/lead.py
+++ b/erpnext/selling/doctype/lead/lead.py
@@ -175,7 +175,7 @@
ev = Document('Event')
ev.owner = in_calendar_of
- ev.description = 'Contact ' + cstr(self.doc.lead_name) + '.By : ' + cstr(self.doc.contact_by) + '.To Discuss : ' + cstr(self.doc.to_discuss)
+ ev.description = 'Contact ' + cstr(self.doc.lead_name) + '.By : ' + cstr(self.doc.contact_by) + '.To Discuss : ' + cstr(self.doc.remark)
ev.event_date = self.doc.contact_date
ev.event_hour = '10:00'
ev.event_type = 'Private'
diff --git a/erpnext/selling/doctype/lead/lead.txt b/erpnext/selling/doctype/lead/lead.txt
index 2ec8963..e714858 100644
--- a/erpnext/selling/doctype/lead/lead.txt
+++ b/erpnext/selling/doctype/lead/lead.txt
@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
- 'creation': '2012-03-27 14:36:10',
+ 'creation': '2012-04-02 16:02:08',
'docstatus': 0,
- 'modified': '2012-03-27 14:36:10',
+ 'modified': '2012-04-30 15:20:50',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
@@ -26,7 +26,7 @@
'show_in_menu': 0,
'subject': u'%(lead_name)s from %(company_name)s | To Discuss: %(to_discuss)s',
'tag_fields': u'status,source',
- 'version': 395
+ 'version': 1
},
# These values are common for all DocField
@@ -56,21 +56,26 @@
# DocPerm
{
+ 'amend': 0,
+ 'cancel': 0,
+ 'create': 0,
'doctype': u'DocPerm',
'permlevel': 1,
- 'role': u'All'
+ 'role': u'Sales User',
+ 'submit': 0,
+ 'write': 0
},
# DocPerm
{
'amend': 0,
'cancel': 0,
- 'create': 1,
+ 'create': 0,
'doctype': u'DocPerm',
- 'permlevel': 0,
- 'role': u'Sales User',
+ 'permlevel': 1,
+ 'role': u'Sales Manager',
'submit': 0,
- 'write': 1
+ 'write': 0
},
# DocPerm
@@ -91,44 +96,28 @@
'cancel': 0,
'create': 1,
'doctype': u'DocPerm',
- 'match': u'owner',
'permlevel': 0,
- 'role': u'System Manager',
+ 'role': u'Sales User',
'submit': 0,
'write': 1
},
# DocPerm
{
- 'amend': 0,
- 'cancel': 0,
- 'create': 0,
'doctype': u'DocPerm',
'permlevel': 1,
- 'role': u'Sales Manager',
- 'submit': 0,
- 'write': 0
+ 'role': u'All'
},
# DocPerm
{
'amend': 0,
'cancel': 0,
- 'create': 0,
- 'doctype': u'DocPerm',
- 'permlevel': 1,
- 'role': u'Sales User',
- 'submit': 0,
- 'write': 0
- },
-
- # DocPerm
- {
'create': 1,
'doctype': u'DocPerm',
- 'match': u'territory',
'permlevel': 0,
'role': u'System Manager',
+ 'submit': 0,
'write': 1
},
@@ -165,6 +154,22 @@
# DocField
{
'colour': u'White:FFF',
+ 'description': u'To manage multiple series please go to Setup > Manage Series',
+ 'doctype': u'DocField',
+ 'fieldname': u'naming_series',
+ 'fieldtype': u'Select',
+ 'label': u'Naming Series',
+ 'no_copy': 1,
+ 'oldfieldname': u'naming_series',
+ 'oldfieldtype': u'Select',
+ 'options': u'LEAD\nLEAD/10-11/\nLEAD/MUMBAI/',
+ 'permlevel': 0,
+ 'reqd': 0
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'lead_name',
'fieldtype': u'Data',
@@ -180,6 +185,23 @@
# DocField
{
'colour': u'White:FFF',
+ 'description': u'Name of organization from where lead has come',
+ 'doctype': u'DocField',
+ 'fieldname': u'company_name',
+ 'fieldtype': u'Data',
+ 'in_filter': 1,
+ 'label': u'Company Name',
+ 'oldfieldname': u'company_name',
+ 'oldfieldtype': u'Data',
+ 'permlevel': 0,
+ 'reqd': 0,
+ 'search_index': 0,
+ 'trigger': u'Client'
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'source',
'fieldtype': u'Select',
@@ -228,35 +250,11 @@
# DocField
{
- 'colour': u'White:FFF',
- 'description': u'Name of organization from where lead has come',
'doctype': u'DocField',
- 'fieldname': u'company_name',
- 'fieldtype': u'Data',
- 'in_filter': 1,
- 'label': u'Company Name',
- 'oldfieldname': u'company_name',
- 'oldfieldtype': u'Data',
+ 'fieldname': u'column_break1',
+ 'fieldtype': u'Column Break',
'permlevel': 0,
- 'reqd': 0,
- 'search_index': 0,
- 'trigger': u'Client'
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'description': u'To manage multiple series please go to Setup > Manage Series',
- 'doctype': u'DocField',
- 'fieldname': u'naming_series',
- 'fieldtype': u'Select',
- 'label': u'Series',
- 'no_copy': 1,
- 'oldfieldname': u'naming_series',
- 'oldfieldtype': u'Select',
- 'options': u'LEAD\nLEAD/10-11/\nLEAD/MUMBAI/',
- 'permlevel': 0,
- 'reqd': 0
+ 'width': u'50%'
},
# DocField
@@ -280,32 +278,6 @@
# DocField
{
- 'default': u'Today',
- 'description': u'The date at which current entry is made in system.',
- 'doctype': u'DocField',
- 'fieldname': u'transaction_date',
- 'fieldtype': u'Date',
- 'in_filter': 1,
- 'label': u'Lead Date',
- 'no_copy': 1,
- 'oldfieldname': u'transaction_date',
- 'oldfieldtype': u'Date',
- 'permlevel': 0,
- 'reqd': 1,
- 'search_index': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'column_break1',
- 'fieldtype': u'Column Break',
- 'permlevel': 0,
- 'width': u'50%'
- },
-
- # DocField
- {
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'type',
@@ -320,35 +292,6 @@
# DocField
{
- 'doctype': u'DocField',
- 'fieldname': u'request_type',
- 'fieldtype': u'Select',
- 'label': u'Request Type',
- 'oldfieldname': u'request_type',
- 'oldfieldtype': u'Select',
- 'options': u'\nProduct Enquiry\nRequest for Information\nSuggestions\nOther',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'description': u'Probability of lead converting to customer',
- 'doctype': u'DocField',
- 'fieldname': u'rating',
- 'fieldtype': u'Select',
- 'in_filter': 1,
- 'label': u'Rating',
- 'oldfieldname': u'rating',
- 'oldfieldtype': u'Select',
- 'options': u'\nHot\nWarm\nCold',
- 'permlevel': 0,
- 'reqd': 0,
- 'search_index': 0
- },
-
- # DocField
- {
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'remark',
@@ -361,30 +304,24 @@
# DocField
{
- 'allow_on_submit': 0,
- 'depends_on': u"eval:doc.status == 'Lead Lost'",
'doctype': u'DocField',
- 'fieldname': u'order_lost_reason',
- 'fieldtype': u'Link',
- 'hidden': 0,
- 'label': u'Lost Reason',
- 'oldfieldname': u'order_lost_reason',
- 'oldfieldtype': u'Link',
- 'options': u'Quotation Lost Reason',
+ 'fieldname': u'communication_history',
+ 'fieldtype': u'Section Break',
+ 'label': u'Communication History',
'permlevel': 0
},
# DocField
{
+ 'allow_on_submit': 0,
'doctype': u'DocField',
- 'fieldname': u'trash_reason',
- 'fieldtype': u'Small Text',
- 'label': u'Trash Reason',
- 'no_copy': 1,
- 'oldfieldname': u'trash_reason',
- 'oldfieldtype': u'Small Text',
- 'permlevel': 1,
- 'print_hide': 1
+ 'fieldname': u'follow_up',
+ 'fieldtype': u'Table',
+ 'label': u'Communication Log',
+ 'oldfieldname': u'follow_up',
+ 'oldfieldtype': u'Table',
+ 'options': u'Communication Log',
+ 'permlevel': 0
},
# DocField
@@ -407,7 +344,7 @@
'oldfieldname': u'contact_no',
'oldfieldtype': u'Data',
'permlevel': 0,
- 'reqd': 1
+ 'reqd': 0
},
# DocField
@@ -513,7 +450,7 @@
'oldfieldtype': u'Select',
'permlevel': 0,
'print_hide': 1,
- 'reqd': 1
+ 'reqd': 0
},
# DocField
@@ -527,7 +464,7 @@
'options': u'link:Country',
'permlevel': 0,
'print_hide': 1,
- 'reqd': 1,
+ 'reqd': 0,
'trigger': u'Client'
},
@@ -570,15 +507,19 @@
# DocField
{
+ 'colour': u'White:FFF',
+ 'description': u'Probability of lead converting to customer',
'doctype': u'DocField',
- 'fieldname': u'company',
- 'fieldtype': u'Link',
- 'label': u'Company',
- 'oldfieldname': u'company',
- 'oldfieldtype': u'Link',
- 'options': u'Company',
+ 'fieldname': u'rating',
+ 'fieldtype': u'Select',
+ 'in_filter': 1,
+ 'label': u'Rating',
+ 'oldfieldname': u'rating',
+ 'oldfieldtype': u'Select',
+ 'options': u'\nHot\nWarm\nCold',
'permlevel': 0,
- 'reqd': 1
+ 'reqd': 0,
+ 'search_index': 0
},
# DocField
@@ -626,14 +567,13 @@
# DocField
{
- 'colour': u'White:FFF',
- 'description': u'Your products or facilities in which the lead is interested',
'doctype': u'DocField',
- 'fieldname': u'interested_in',
- 'fieldtype': u'Data',
- 'label': u'Interested In',
- 'oldfieldname': u'interested_in',
- 'oldfieldtype': u'Data',
+ 'fieldname': u'request_type',
+ 'fieldtype': u'Select',
+ 'label': u'Request Type',
+ 'oldfieldname': u'request_type',
+ 'oldfieldtype': u'Select',
+ 'options': u'\nProduct Enquiry\nRequest for Information\nSuggestions\nOther',
'permlevel': 0
},
@@ -664,6 +604,21 @@
# DocField
{
'allow_on_submit': 0,
+ 'depends_on': u"eval:doc.status == 'Lead Lost'",
+ 'doctype': u'DocField',
+ 'fieldname': u'order_lost_reason',
+ 'fieldtype': u'Link',
+ 'hidden': 0,
+ 'label': u'Lost Reason',
+ 'oldfieldname': u'order_lost_reason',
+ 'oldfieldtype': u'Link',
+ 'options': u'Quotation Lost Reason',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'allow_on_submit': 0,
'colour': u'White:FFF',
'description': u'Your sales person who will contact the lead in future',
'doctype': u'DocField',
@@ -717,39 +672,27 @@
# DocField
{
- 'allow_on_submit': 0,
'doctype': u'DocField',
- 'fieldname': u'to_discuss',
+ 'fieldname': u'company',
+ 'fieldtype': u'Link',
+ 'label': u'Company',
+ 'oldfieldname': u'company',
+ 'oldfieldtype': u'Link',
+ 'options': u'Company',
+ 'permlevel': 0,
+ 'reqd': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'trash_reason',
'fieldtype': u'Small Text',
- 'label': u'To Discuss',
+ 'label': u'Trash Reason',
'no_copy': 1,
- 'oldfieldname': u'to_discuss',
+ 'oldfieldname': u'trash_reason',
'oldfieldtype': u'Small Text',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'description': u'Keep a track of communication with this lead which will help for future reference.',
- 'doctype': u'DocField',
- 'fieldname': u'communication_history',
- 'fieldtype': u'Section Break',
- 'label': u'Communication History',
- 'oldfieldtype': u'Section Break',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'allow_on_submit': 0,
- 'doctype': u'DocField',
- 'fieldname': u'follow_up',
- 'fieldtype': u'Table',
- 'label': u'Communication Log',
- 'oldfieldname': u'follow_up',
- 'oldfieldtype': u'Table',
- 'options': u'Communication Log',
- 'permlevel': 0
+ 'permlevel': 1,
+ 'print_hide': 1
}
]
\ No newline at end of file
diff --git a/erpnext/selling/doctype/opportunity/opportunity.js b/erpnext/selling/doctype/opportunity/opportunity.js
index 207a27c..ba4b538 100644
--- a/erpnext/selling/doctype/opportunity/opportunity.js
+++ b/erpnext/selling/doctype/opportunity/opportunity.js
@@ -17,16 +17,7 @@
wn.require('erpnext/utilities/doctype/sms_control/sms_control.js');
cur_frm.cscript.refresh = function(doc, cdt, cdn){
-
- //
-
- if(!doc.docstatus){
- hide_field(['email_id1','cc_to','subject','message', 'enquiry_attachment_detail']);
- }
- else{
- unhide_field(['email_id1','cc_to','subject','message', 'enquiry_attachment_detail']);
- }
-
+ erpnext.hide_naming_series();
cur_frm.clear_custom_buttons();
if(doc.docstatus == 1) {
@@ -35,7 +26,6 @@
cur_frm.add_custom_button('Send SMS', cur_frm.cscript.send_sms);
}
- //cur_frm.cscript.clear_values(doc,cdt,cdn);
}
// ONLOAD
diff --git a/erpnext/selling/doctype/opportunity/opportunity.txt b/erpnext/selling/doctype/opportunity/opportunity.txt
index 5886113..ddf3b96 100644
--- a/erpnext/selling/doctype/opportunity/opportunity.txt
+++ b/erpnext/selling/doctype/opportunity/opportunity.txt
@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
- 'creation': '2012-03-27 14:36:08',
+ 'creation': '2012-04-02 16:02:08',
'docstatus': 0,
- 'modified': '2012-03-27 14:45:47',
+ 'modified': '2012-04-30 15:34:34',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
@@ -25,7 +25,7 @@
'server_code_error': u' ',
'show_in_menu': 0,
'subject': u'To %(customer_name)s%(lead_name)s on %(transaction_date)s',
- 'version': 588
+ 'version': 1
},
# These values are common for all DocField
@@ -55,6 +55,18 @@
# DocPerm
{
+ 'amend': 0,
+ 'cancel': 0,
+ 'create': 0,
+ 'doctype': u'DocPerm',
+ 'permlevel': 1,
+ 'role': u'Sales Manager',
+ 'submit': 0,
+ 'write': 0
+ },
+
+ # DocPerm
+ {
'amend': 1,
'cancel': 1,
'create': 1,
@@ -108,18 +120,6 @@
'write': 1
},
- # DocPerm
- {
- 'amend': 0,
- 'cancel': 0,
- 'create': 0,
- 'doctype': u'DocPerm',
- 'permlevel': 1,
- 'role': u'Sales Manager',
- 'submit': 0,
- 'write': 0
- },
-
# DocField
{
'colour': u'White:FFF',
@@ -139,7 +139,7 @@
'doctype': u'DocField',
'fieldname': u'naming_series',
'fieldtype': u'Select',
- 'label': u'Series',
+ 'label': u'Naming Series',
'no_copy': 1,
'oldfieldname': u'naming_series',
'oldfieldtype': u'Select',
@@ -187,42 +187,6 @@
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'customer_address',
- 'fieldtype': u'Link',
- 'in_filter': 1,
- 'label': u'Customer Address',
- 'options': u'Address',
- 'permlevel': 0,
- 'print_hide': 1,
- 'trigger': u'Client'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'contact_person',
- 'fieldtype': u'Link',
- 'in_filter': 1,
- 'label': u'Contact Person',
- 'options': u'Contact',
- 'permlevel': 0,
- 'print_hide': 1,
- 'trigger': u'Client'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'customer_name',
- 'fieldtype': u'Data',
- 'label': u'Customer Name',
- 'permlevel': 1,
- 'print_hide': 0
- },
-
- # DocField
- {
- 'doctype': u'DocField',
'fieldname': u'lead',
'fieldtype': u'Link',
'hidden': 0,
@@ -239,57 +203,6 @@
# DocField
{
'doctype': u'DocField',
- 'fieldname': u'lead_name',
- 'fieldtype': u'Data',
- 'hidden': 0,
- 'label': u'Name',
- 'oldfieldname': u'lead_name',
- 'oldfieldtype': u'Data',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'address_display',
- 'fieldtype': u'Small Text',
- 'hidden': 0,
- 'label': u'Address',
- 'oldfieldname': u'address',
- 'oldfieldtype': u'Small Text',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'contact_display',
- 'fieldtype': u'Small Text',
- 'label': u'Contact',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'contact_mobile',
- 'fieldtype': u'Text',
- 'label': u'Contact Mobile No',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'contact_email',
- 'fieldtype': u'Text',
- 'label': u'Contact Email',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
'fieldname': u'column_break0',
'fieldtype': u'Column Break',
'oldfieldtype': u'Column Break',
@@ -299,35 +212,6 @@
# DocField
{
- 'default': u'Today',
- 'description': u'The date at which current entry is made in system.',
- 'doctype': u'DocField',
- 'fieldname': u'transaction_date',
- 'fieldtype': u'Date',
- 'label': u'Opportunity Date',
- 'oldfieldname': u'transaction_date',
- 'oldfieldtype': u'Date',
- 'permlevel': 0,
- 'reqd': 1,
- 'width': u'50px'
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'doctype': u'DocField',
- 'fieldname': u'enquiry_type',
- 'fieldtype': u'Select',
- 'label': u'Opportunity Type',
- 'oldfieldname': u'enquiry_type',
- 'oldfieldtype': u'Select',
- 'options': u'\nSales\nMaintenance',
- 'permlevel': 0,
- 'reqd': 1
- },
-
- # DocField
- {
'colour': u'White:FFF',
'default': u'Draft',
'doctype': u'DocField',
@@ -344,68 +228,16 @@
# DocField
{
- 'doctype': u'DocField',
- 'fieldname': u'amended_from',
- 'fieldtype': u'Data',
- 'label': u'Amended From',
- 'no_copy': 1,
- 'oldfieldname': u'amended_from',
- 'oldfieldtype': u'Data',
- 'permlevel': 1,
- 'print_hide': 1,
- 'width': u'150px'
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'amendment_date',
- 'fieldtype': u'Date',
- 'label': u'Amendment Date',
- 'no_copy': 1,
- 'oldfieldname': u'amendment_date',
- 'oldfieldtype': u'Date',
- 'permlevel': 1,
- 'print_hide': 1,
- 'width': u'150px'
- },
-
- # DocField
- {
'colour': u'White:FFF',
- 'description': u'<a href="javascript:cur_frm.cscript.TerritoryHelp();">To Manage Territory, click here</a>',
'doctype': u'DocField',
- 'fieldname': u'territory',
- 'fieldtype': u'Link',
- 'in_filter': 1,
- 'label': u'Territory',
- 'options': u'Territory',
+ 'fieldname': u'enquiry_type',
+ 'fieldtype': u'Select',
+ 'label': u'Opportunity Type',
+ 'oldfieldname': u'enquiry_type',
+ 'oldfieldtype': u'Select',
+ 'options': u'\nSales\nMaintenance',
'permlevel': 0,
- 'print_hide': 1,
- 'reqd': 0,
- 'search_index': 1,
- 'trigger': u'Client'
- },
-
- # DocField
- {
- 'colour': u'White:FFF',
- 'depends_on': u'eval:doc.enquiry_from=="Customer"',
- 'description': u'<a href="javascript:cur_frm.cscript.CGHelp();">To Manage Customer Groups, click here</a>',
- 'doctype': u'DocField',
- 'fieldname': u'customer_group',
- 'fieldtype': u'Link',
- 'hidden': 0,
- 'in_filter': 1,
- 'label': u'Customer Group',
- 'oldfieldname': u'customer_group',
- 'oldfieldtype': u'Link',
- 'options': u'Customer Group',
- 'permlevel': 0,
- 'print_hide': 1,
- 'reqd': 0,
- 'search_index': 1,
- 'trigger': u'Client'
+ 'reqd': 1
},
# DocField
@@ -436,6 +268,174 @@
# DocField
{
'colour': u'White:FFF',
+ 'description': u'Keep a track of communication related to this enquiry which will help for future reference.',
+ 'doctype': u'DocField',
+ 'fieldname': u'communication_history',
+ 'fieldtype': u'Section Break',
+ 'label': u'Communication History',
+ 'oldfieldtype': u'Section Break',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'allow_on_submit': 1,
+ 'colour': u'White:FFF',
+ 'doctype': u'DocField',
+ 'fieldname': u'follow_up',
+ 'fieldtype': u'Table',
+ 'label': u'Communication Log',
+ 'oldfieldname': u'follow_up',
+ 'oldfieldtype': u'Table',
+ 'options': u'Communication Log',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'contact_info',
+ 'fieldtype': u'Section Break',
+ 'label': u'Contact Info',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'contact_person',
+ 'fieldtype': u'Link',
+ 'in_filter': 1,
+ 'label': u'Contact Person',
+ 'options': u'Contact',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'trigger': u'Client'
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'customer_address',
+ 'fieldtype': u'Link',
+ 'in_filter': 1,
+ 'label': u'Customer Address',
+ 'options': u'Address',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'trigger': u'Client'
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'customer_name',
+ 'fieldtype': u'Data',
+ 'label': u'Customer Name',
+ 'permlevel': 1,
+ 'print_hide': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'address_display',
+ 'fieldtype': u'Small Text',
+ 'hidden': 0,
+ 'label': u'Address',
+ 'oldfieldname': u'address',
+ 'oldfieldtype': u'Small Text',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'column_break3',
+ 'fieldtype': u'Column Break',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'contact_display',
+ 'fieldtype': u'Small Text',
+ 'label': u'Contact',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'contact_email',
+ 'fieldtype': u'Text',
+ 'label': u'Contact Email',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'contact_mobile',
+ 'fieldtype': u'Text',
+ 'label': u'Contact Mobile No',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
+ 'fieldname': u'lead_name',
+ 'fieldtype': u'Data',
+ 'hidden': 0,
+ 'label': u'Name',
+ 'oldfieldname': u'lead_name',
+ 'oldfieldtype': u'Data',
+ 'permlevel': 1
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
+ 'depends_on': u'eval:doc.enquiry_from=="Customer"',
+ 'description': u'<a href="javascript:cur_frm.cscript.CGHelp();">To Manage Customer Groups, click here</a>',
+ 'doctype': u'DocField',
+ 'fieldname': u'customer_group',
+ 'fieldtype': u'Link',
+ 'hidden': 0,
+ 'in_filter': 1,
+ 'label': u'Customer Group',
+ 'oldfieldname': u'customer_group',
+ 'oldfieldtype': u'Link',
+ 'options': u'Customer Group',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'reqd': 0,
+ 'search_index': 1,
+ 'trigger': u'Client'
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
+ 'description': u'<a href="javascript:cur_frm.cscript.TerritoryHelp();">To Manage Territory, click here</a>',
+ 'doctype': u'DocField',
+ 'fieldname': u'territory',
+ 'fieldtype': u'Link',
+ 'in_filter': 1,
+ 'label': u'Territory',
+ 'options': u'Territory',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'reqd': 0,
+ 'search_index': 1,
+ 'trigger': u'Client'
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
'description': u'Filing in Additional Information about the Opportunity will help you analyze your data better.',
'doctype': u'DocField',
'fieldname': u'more_info',
@@ -457,18 +457,17 @@
# DocField
{
+ 'default': u'Today',
+ 'description': u'The date at which current entry is made in system.',
'doctype': u'DocField',
- 'fieldname': u'company',
- 'fieldtype': u'Link',
- 'in_filter': 1,
- 'label': u'Company',
- 'oldfieldname': u'company',
- 'oldfieldtype': u'Link',
- 'options': u'Company',
+ 'fieldname': u'transaction_date',
+ 'fieldtype': u'Date',
+ 'label': u'Opportunity Date',
+ 'oldfieldname': u'transaction_date',
+ 'oldfieldtype': u'Date',
'permlevel': 0,
- 'print_hide': 1,
'reqd': 1,
- 'search_index': 1
+ 'width': u'50px'
},
# DocField
@@ -531,6 +530,22 @@
# DocField
{
'doctype': u'DocField',
+ 'fieldname': u'company',
+ 'fieldtype': u'Link',
+ 'in_filter': 1,
+ 'label': u'Company',
+ 'oldfieldname': u'company',
+ 'oldfieldtype': u'Link',
+ 'options': u'Company',
+ 'permlevel': 0,
+ 'print_hide': 1,
+ 'reqd': 1,
+ 'search_index': 1
+ },
+
+ # DocField
+ {
+ 'doctype': u'DocField',
'fieldname': u'column_break2',
'fieldtype': u'Column Break',
'oldfieldtype': u'Column Break',
@@ -598,27 +613,29 @@
# DocField
{
- 'colour': u'White:FFF',
- 'description': u'Keep a track of communication related to this enquiry which will help for future reference.',
'doctype': u'DocField',
- 'fieldname': u'communication_history',
- 'fieldtype': u'Section Break',
- 'label': u'Communication History',
- 'oldfieldtype': u'Section Break',
- 'permlevel': 0
+ 'fieldname': u'amended_from',
+ 'fieldtype': u'Data',
+ 'label': u'Amended From',
+ 'no_copy': 1,
+ 'oldfieldname': u'amended_from',
+ 'oldfieldtype': u'Data',
+ 'permlevel': 1,
+ 'print_hide': 1,
+ 'width': u'150px'
},
# DocField
{
- 'allow_on_submit': 1,
- 'colour': u'White:FFF',
'doctype': u'DocField',
- 'fieldname': u'follow_up',
- 'fieldtype': u'Table',
- 'label': u'Follow Up',
- 'oldfieldname': u'follow_up',
- 'oldfieldtype': u'Table',
- 'options': u'Communication Log',
- 'permlevel': 0
+ 'fieldname': u'amendment_date',
+ 'fieldtype': u'Date',
+ 'label': u'Amendment Date',
+ 'no_copy': 1,
+ 'oldfieldname': u'amendment_date',
+ 'oldfieldtype': u'Date',
+ 'permlevel': 1,
+ 'print_hide': 1,
+ 'width': u'150px'
}
-]
+]
\ No newline at end of file
diff --git a/erpnext/selling/doctype/quotation/quotation.txt b/erpnext/selling/doctype/quotation/quotation.txt
index 2c9bd9f..f5be978 100644
--- a/erpnext/selling/doctype/quotation/quotation.txt
+++ b/erpnext/selling/doctype/quotation/quotation.txt
@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
- 'creation': '2012-03-27 14:36:12',
+ 'creation': '2012-04-02 16:02:08',
'docstatus': 0,
- 'modified': '2012-03-27 18:48:29',
+ 'modified': '2012-04-30 15:41:16',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
@@ -33,7 +33,7 @@
'show_in_menu': 0,
'subject': u'To %(customer_name)s on %(transaction_date)s worth %(currency)s %(grand_total_export)s',
'tag_fields': u'status',
- 'version': 622
+ 'version': 1
},
# These values are common for all DocField
@@ -51,8 +51,7 @@
'name': '__common__',
'parent': u'Quotation',
'parentfield': u'permissions',
- 'parenttype': u'DocType',
- 'read': 1
+ 'parenttype': u'DocType'
},
# DocType, Quotation
@@ -63,11 +62,45 @@
# DocPerm
{
+ 'doctype': u'DocPerm',
+ 'permlevel': 0,
+ 'role': u'user print'
+ },
+
+ # DocPerm
+ {
+ 'amend': 0,
+ 'cancel': 0,
+ 'create': 0,
+ 'doctype': u'DocPerm',
+ 'permlevel': 1,
+ 'read': 1,
+ 'role': u'Sales Manager',
+ 'submit': 0,
+ 'write': 0
+ },
+
+ # DocPerm
+ {
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'permlevel': 0,
+ 'read': 1,
+ 'role': u'Sales Manager',
+ 'submit': 1,
+ 'write': 1
+ },
+
+ # DocPerm
+ {
+ 'amend': 1,
+ 'cancel': 1,
+ 'create': 1,
+ 'doctype': u'DocPerm',
+ 'permlevel': 0,
+ 'read': 1,
'role': u'Sales User',
'submit': 1,
'write': 1
@@ -80,6 +113,7 @@
'create': 0,
'doctype': u'DocPerm',
'permlevel': 1,
+ 'read': 1,
'role': u'Sales User',
'submit': 0,
'write': 0
@@ -90,40 +124,18 @@
'doctype': u'DocPerm',
'match': u'customer_name',
'permlevel': 0,
+ 'read': 1,
'role': u'Customer'
},
# DocPerm
{
- 'amend': 0,
- 'cancel': 0,
- 'create': 0,
- 'doctype': u'DocPerm',
- 'permlevel': 1,
- 'role': u'Sales Manager',
- 'submit': 0,
- 'write': 0
- },
-
- # DocPerm
- {
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'permlevel': 0,
- 'role': u'Sales Manager',
- 'submit': 1,
- 'write': 1
- },
-
- # DocPerm
- {
- 'amend': 1,
- 'cancel': 1,
- 'create': 1,
- 'doctype': u'DocPerm',
- 'permlevel': 0,
+ 'read': 1,
'role': u'Maintenance Manager',
'submit': 1,
'write': 1
@@ -133,6 +145,7 @@
{
'doctype': u'DocPerm',
'permlevel': 1,
+ 'read': 1,
'role': u'Maintenance Manager'
},
@@ -143,6 +156,7 @@
'create': 1,
'doctype': u'DocPerm',
'permlevel': 0,
+ 'read': 1,
'role': u'Maintenance User',
'submit': 1,
'write': 1
@@ -152,6 +166,7 @@
{
'doctype': u'DocPerm',
'permlevel': 1,
+ 'read': 1,
'role': u'Maintenance User'
},
@@ -183,7 +198,7 @@
'doctype': u'DocField',
'fieldname': u'naming_series',
'fieldtype': u'Select',
- 'label': u'Series',
+ 'label': u'Naming Series',
'no_copy': 1,
'oldfieldname': u'naming_series',
'oldfieldtype': u'Select',
@@ -286,7 +301,7 @@
'doctype': u'DocField',
'fieldname': u'lead_name',
'fieldtype': u'Text',
- 'label': u'Name',
+ 'label': u'Lead Name',
'permlevel': 1
},
@@ -295,16 +310,7 @@
'doctype': u'DocField',
'fieldname': u'customer_name',
'fieldtype': u'Data',
- 'label': u'Name',
- 'permlevel': 1
- },
-
- # DocField
- {
- 'doctype': u'DocField',
- 'fieldname': u'organization',
- 'fieldtype': u'Data',
- 'label': u'Organization',
+ 'label': u'Customer Name',
'permlevel': 1
},
@@ -507,6 +513,31 @@
# DocField
{
+ 'allow_on_submit': 1,
+ 'colour': u'White:FFF',
+ 'doctype': u'DocField',
+ 'fieldname': u'quotation_details',
+ 'fieldtype': u'Table',
+ 'label': u'Quotation Items',
+ 'oldfieldname': u'quotation_details',
+ 'oldfieldtype': u'Table',
+ 'options': u'Quotation Item',
+ 'permlevel': 0,
+ 'width': u'40px'
+ },
+
+ # DocField
+ {
+ 'colour': u'White:FFF',
+ 'doctype': u'DocField',
+ 'fieldname': u'section_break0',
+ 'fieldtype': u'Section Break',
+ 'options': u'Simple',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
'colour': u'White:FFF',
'description': u'Select the price list as entered in "Price List" master. This will pull the reference rates of items against this price list as specified in "Item" master.',
'doctype': u'DocField',
@@ -636,31 +667,6 @@
# DocField
{
- 'colour': u'White:FFF',
- 'doctype': u'DocField',
- 'fieldname': u'section_break0',
- 'fieldtype': u'Section Break',
- 'options': u'Simple',
- 'permlevel': 0
- },
-
- # DocField
- {
- 'allow_on_submit': 1,
- 'colour': u'White:FFF',
- 'doctype': u'DocField',
- 'fieldname': u'quotation_details',
- 'fieldtype': u'Table',
- 'label': u'Quotation Items',
- 'oldfieldname': u'quotation_details',
- 'oldfieldtype': u'Table',
- 'options': u'Quotation Item',
- 'permlevel': 0,
- 'width': u'40px'
- },
-
- # DocField
- {
'doctype': u'DocField',
'fieldname': u'clear_table',
'fieldtype': u'Button',
@@ -1225,4 +1231,4 @@
'permlevel': 0,
'print_hide': 1
}
-]
+]
\ No newline at end of file
diff --git a/erpnext/startup/startup.js b/erpnext/startup/startup.js
index 7c6e8a2..321149c 100644
--- a/erpnext/startup/startup.js
+++ b/erpnext/startup/startup.js
@@ -215,3 +215,12 @@
}
});
}
+
+erpnext.hide_naming_series = function() {
+ if(cur_frm.fields_dict.naming_series) {
+ hide_field('naming_series');
+ if(cur_frm.doc.__islocal) {
+ unhide_field('naming_series');
+ }
+ }
+}
diff --git a/js/all-app.js b/js/all-app.js
index 582e966..31c1e6d 100644
--- a/js/all-app.js
+++ b/js/all-app.js
@@ -2254,6 +2254,7 @@
$(document).bind('startup',function(){erpnext.startup.start();});erpnext.send_message=function(opts){if(opts.btn){$(opts.btn).start_working();}
wn.call({method:'website.send_message',args:opts,callback:function(r){if(opts.btn){$(opts.btn).done_working();}
if(opts.callback)opts.callback(r)}});}
+erpnext.hide_naming_series=function(){console.log(1);if(cur_frm.fields_dict.naming_series){hide_field('naming_series');if(cur_frm.doc.__islocal){unhide_field('naming_series');}}}
/*
* erpnext/startup/js/modules.js
*/
diff --git a/js/all-web.js b/js/all-web.js
index e33c322..ee05181 100644
--- a/js/all-web.js
+++ b/js/all-web.js
@@ -865,6 +865,7 @@
$(document).bind('startup',function(){erpnext.startup.start();});erpnext.send_message=function(opts){if(opts.btn){$(opts.btn).start_working();}
wn.call({method:'website.send_message',args:opts,callback:function(r){if(opts.btn){$(opts.btn).done_working();}
if(opts.callback)opts.callback(r)}});}
+erpnext.hide_naming_series=function(){console.log(1);if(cur_frm.fields_dict.naming_series){hide_field('naming_series');if(cur_frm.doc.__islocal){unhide_field('naming_series');}}}
/*
* erpnext/website/js/topbar.js
*/