diff --git a/accounts/page/accounts_browser/accounts_browser.txt b/accounts/page/accounts_browser/accounts_browser.txt index 70652e0d0b..d3e98db12b 100644 --- a/accounts/page/accounts_browser/accounts_browser.txt +++ b/accounts/page/accounts_browser/accounts_browser.txt @@ -3,42 +3,47 @@ # These values are common in all dictionaries { - 'creation': '2010-12-14 10:23:28', - 'docstatus': 0, - 'modified': '2010-12-29 12:57:23', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + u'creation': '2012-06-14 15:07:28', + u'docstatus': 0, + u'modified': '2012-10-04 16:57:27', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', - 'module': 'Accounts', - 'name': '__common__', - 'page_name': 'Accounts Browser', + u'doctype': u'Page', + 'module': u'Accounts', + u'name': u'__common__', + 'page_name': u'Accounts Browser', 'show_in_menu': 0, - 'standard': 'Yes' + 'standard': u'Yes' }, # These values are common for all Page Role { - 'doctype': 'Page Role', - 'idx': 1, - 'name': '__common__', - 'parent': 'Accounts Browser', - 'parentfield': 'roles', - 'parenttype': 'Page', - 'role': 'Accounts User' + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'Accounts Browser', + 'parentfield': u'roles', + 'parenttype': u'Page' }, # Page, Accounts Browser { - 'doctype': 'Page', - 'name': 'Accounts Browser' + u'doctype': u'Page', + u'name': u'Accounts Browser' }, # Page Role { - 'doctype': 'Page Role' + u'doctype': u'Page Role', + 'role': u'Accounts User' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts Manager' } ] \ No newline at end of file diff --git a/accounts/page/accounts_home/accounts_home.html b/accounts/page/accounts_home/accounts_home.html index 3a6f2b8426..06c645bc86 100644 --- a/accounts/page/accounts_home/accounts_home.html +++ b/accounts/page/accounts_home/accounts_home.html @@ -12,23 +12,29 @@

Bills raised by Suppliers

-

Chart of Accounts

+

Chart of Accounts

Structure of books of accounts


Chart of Cost Centers

Structure cost centers


-

General Ledger +

+ General Ledger beta

General Ledger Report


-

Trial Balance +

Trial Balance beta

Tree view of all Account balances


-

Financial Analytics +

+ Financial Analytics beta

Visual representation of financial trends

@@ -64,17 +70,18 @@ href="#!Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool">Sales or Purchase Returns
- Trend Analyzer
- Financial Statements
- Voucher Import Tool
diff --git a/accounts/page/accounts_home/accounts_home.js b/accounts/page/accounts_home/accounts_home.js index 8e71151e65..3815578d34 100644 --- a/accounts/page/accounts_home/accounts_home.js +++ b/accounts/page/accounts_home/accounts_home.js @@ -22,11 +22,4 @@ pscript['onload_accounts-home'] = function(wrapper) { $('.india-specific').toggle(false); } - if(wn.boot.profile.roles.indexOf('Accounts Manager')==-1 && wn.boot.profile.roles.indexOf('Accounts User')==-1) { - $('[href*="Accounts Browser"]').each(function() { - var txt = $(this).text(); - $(this).parent().css('color', '#999').html(txt); - }); - } - } diff --git a/accounts/page/accounts_home/accounts_home.txt b/accounts/page/accounts_home/accounts_home.txt index 5cbceff6fa..61730ae720 100644 --- a/accounts/page/accounts_home/accounts_home.txt +++ b/accounts/page/accounts_home/accounts_home.txt @@ -3,26 +3,47 @@ # These values are common in all dictionaries { - 'creation': '2012-02-21 13:23:08', - 'docstatus': 0, - 'modified': '2012-02-21 13:23:08', - 'modified_by': u'Administrator', - 'owner': u'Administrator' + u'creation': '2012-06-14 15:07:28', + u'docstatus': 0, + u'modified': '2012-10-04 16:58:11', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', + u'doctype': u'Page', 'module': u'Accounts', - 'name': '__common__', + u'name': u'__common__', 'page_name': u'accounts-home', 'standard': u'Yes', 'title': u'Accounts Home' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'accounts-home', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, accounts-home { - 'doctype': 'Page', - 'name': u'accounts-home' + u'doctype': u'Page', + u'name': u'accounts-home' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts User' } ] \ No newline at end of file diff --git a/accounts/page/financial_analytics/financial_analytics.js b/accounts/page/financial_analytics/financial_analytics.js index 20632deea9..1db9434808 100644 --- a/accounts/page/financial_analytics/financial_analytics.js +++ b/accounts/page/financial_analytics/financial_analytics.js @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +wn.require("lib/js/wn/views/grid_report.js"); wn.require("app/js/account_tree_grid.js"); wn.pages['financial-analytics'].onload = function(wrapper) { diff --git a/accounts/page/financial_analytics/financial_analytics.txt b/accounts/page/financial_analytics/financial_analytics.txt index 834503d1c9..b02144fd01 100644 --- a/accounts/page/financial_analytics/financial_analytics.txt +++ b/accounts/page/financial_analytics/financial_analytics.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-09-17 13:46:47', + u'creation': '2012-09-18 11:05:48', u'docstatus': 0, - u'modified': '2012-09-17 13:46:47', + u'modified': '2012-10-04 17:02:43', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -20,9 +20,36 @@ 'title': u'Financial Analytics' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'financial-analytics', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, financial-analytics { u'doctype': u'Page', u'name': u'financial-analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts User' } ] \ No newline at end of file diff --git a/accounts/page/financial_statements/financial_statements.txt b/accounts/page/financial_statements/financial_statements.txt index 6f64c1ba00..ba212fcfb7 100644 --- a/accounts/page/financial_statements/financial_statements.txt +++ b/accounts/page/financial_statements/financial_statements.txt @@ -3,56 +3,47 @@ # These values are common in all dictionaries { - 'creation': '2010-10-12 15:19:32', - 'docstatus': 0, - 'modified': '2011-01-03 17:32:30', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + u'creation': '2012-06-14 15:07:28', + u'docstatus': 0, + u'modified': '2012-10-04 17:04:05', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', - 'module': 'Accounts', - 'name': '__common__', - 'page_name': 'Financial Statements', + u'doctype': u'Page', + 'module': u'Accounts', + u'name': u'__common__', + 'page_name': u'Financial Statements', 'show_in_menu': 0, - 'standard': 'Yes' + 'standard': u'Yes' }, # These values are common for all Page Role { - 'doctype': 'Page Role', - 'name': '__common__', - 'parent': 'Financial Statements', - 'parentfield': 'roles', - 'parenttype': 'Page' + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'Financial Statements', + 'parentfield': u'roles', + 'parenttype': u'Page' }, # Page, Financial Statements { - 'doctype': 'Page', - 'name': 'Financial Statements' + u'doctype': u'Page', + u'name': u'Financial Statements' }, # Page Role { - 'doctype': 'Page Role', - 'idx': 1, - 'role': 'Accounts User' + u'doctype': u'Page Role', + 'role': u'Accounts User' }, # Page Role { - 'doctype': 'Page Role', - 'idx': 2, - 'role': 'Administrator' - }, - - # Page Role - { - 'doctype': 'Page Role', - 'idx': 3, - 'role': 'Accounts Manager' + u'doctype': u'Page Role', + 'role': u'Accounts Manager' } ] \ No newline at end of file diff --git a/accounts/page/general_ledger/general_ledger.js b/accounts/page/general_ledger/general_ledger.js index c8866fcfd5..b7645eca72 100644 --- a/accounts/page/general_ledger/general_ledger.js +++ b/accounts/page/general_ledger/general_ledger.js @@ -25,6 +25,8 @@ wn.pages['general-ledger'].onload = function(wrapper) { } +wn.require("lib/js/wn/views/grid_report.js"); + erpnext.GeneralLedger = wn.views.GridReport.extend({ init: function(wrapper) { this._super({ diff --git a/accounts/page/general_ledger/general_ledger.txt b/accounts/page/general_ledger/general_ledger.txt index c57ff0f3e2..067f2f0df8 100644 --- a/accounts/page/general_ledger/general_ledger.txt +++ b/accounts/page/general_ledger/general_ledger.txt @@ -3,26 +3,53 @@ # These values are common in all dictionaries { - 'creation': '2012-09-13 13:50:13', - 'docstatus': 0, - 'modified': '2012-09-13 13:50:13', - 'modified_by': u'Administrator', - 'owner': u'Administrator' + u'creation': '2012-09-14 11:25:48', + u'docstatus': 0, + u'modified': '2012-10-04 17:00:09', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', + u'doctype': u'Page', 'module': u'Accounts', - 'name': '__common__', + u'name': u'__common__', 'page_name': u'general-ledger', 'standard': u'Yes', 'title': u'General Ledger' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'general-ledger', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, general-ledger { - 'doctype': 'Page', - 'name': u'general-ledger' + u'doctype': u'Page', + u'name': u'general-ledger' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts User' } ] \ No newline at end of file diff --git a/accounts/page/trial_balance/trial_balance.js b/accounts/page/trial_balance/trial_balance.js index 3504ae0c98..3ecfba75c1 100644 --- a/accounts/page/trial_balance/trial_balance.js +++ b/accounts/page/trial_balance/trial_balance.js @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +wn.require("lib/js/wn/views/grid_report.js"); wn.require("app/js/account_tree_grid.js"); wn.pages['trial-balance'].onload = function(wrapper) { diff --git a/accounts/page/trial_balance/trial_balance.txt b/accounts/page/trial_balance/trial_balance.txt index 88b91d62a6..9bbd513317 100644 --- a/accounts/page/trial_balance/trial_balance.txt +++ b/accounts/page/trial_balance/trial_balance.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-09-17 13:47:16', + u'creation': '2012-09-18 11:05:48', u'docstatus': 0, - u'modified': '2012-09-17 13:47:16', + u'modified': '2012-10-04 17:01:47', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -20,9 +20,36 @@ 'title': u'Trial Balance' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'trial-balance', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, trial-balance { u'doctype': u'Page', u'name': u'trial-balance' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts User' } ] \ No newline at end of file diff --git a/accounts/page/voucher_import_tool/voucher_import_tool.py b/accounts/page/voucher_import_tool/voucher_import_tool.py index b8dd717772..7cff10fe5a 100644 --- a/accounts/page/voucher_import_tool/voucher_import_tool.py +++ b/accounts/page/voucher_import_tool/voucher_import_tool.py @@ -35,12 +35,12 @@ def upload(): rows = read_csv_content_from_uploaded_file() common_values = get_common_values(rows) - data = get_data(rows) + data, start_idx = get_data(rows) if rows[0][0]=="Voucher Import :Single": - return import_single(common_values, data) + return import_single(common_values, data, start_idx) else: - return import_multiple(common_values, data) + return import_multiple(common_values, data, start_idx) def map_fields(field_list, source, target): for f in field_list: @@ -49,12 +49,12 @@ def map_fields(field_list, source, target): else: target[f] = source.get(f) -def import_multiple(common_values, data): +def import_multiple(common_values, data, start_idx): from webnotes.model.doc import Document from webnotes.model.doclist import DocList from webnotes.model.code import get_obj - from accounts.utils import get_fiscal_year_from_date - from webnotes.utils.dateutils import user_to_str + from accounts.utils import get_fiscal_year + from webnotes.utils.dateutils import parse_date messages = [] @@ -82,17 +82,17 @@ def import_multiple(common_values, data): jv = webnotes.DictObj() try: - d.posting_date = user_to_str(d.posting_date) - d.due_date = user_to_str(d.due_date) - d.ref_date = user_to_str(d.ref_date) + d.posting_date = parse_date(d.posting_date) + d.due_date = parse_date(d.due_date) + d.ref_date = parse_date(d.ref_date) d.company = common_values.company jv = Document("Journal Voucher") map_fields(["voucher_type", "posting_date", "naming_series", "remarks:remark", - "ref_no:cheque_no", "ref_date:cheque_date", "is_opening", + "ref_number:cheque_no", "ref_date:cheque_date", "is_opening", "amount:total_debit", "amount:total_credit", "due_date", "company"], d, jv.fields) - jv.fiscal_year = get_fiscal_year_from_date(jv.posting_date) + jv.fiscal_year = get_fiscal_year(jv.posting_date)[0] detail1 = Document("Journal Voucher Detail") detail1.parent = True @@ -112,13 +112,15 @@ def import_multiple(common_values, data): doclist.submit() webnotes.conn.commit() - messages.append("

[row #%s] %s imported

" \ - % (i, jv.name)) + messages.append("""

[row #%s] + %s imported

""" \ + % ((start_idx + 1) + i, jv.name, jv.name)) except Exception, e: webnotes.conn.rollback() + err_msg = webnotes.message_log and webnotes.message_log[0] or unicode(e) messages.append("

[row #%s] %s failed: %s

" \ - % (i, jv.name, webnotes.message_log and webnotes.message_log[0] or "No message")) + % ((start_idx + 1) + i, jv.name, err_msg or "No message")) webnotes.errprint(webnotes.getTraceback()) webnotes.message_log = [] @@ -142,11 +144,13 @@ def get_common_values(rows): def get_data(rows): start_row = 0 data = [] + start_row_idx = 0 for i in xrange(len(rows)): r = rows[i] if r[0]: if start_row and i >= start_row: + if not start_row_idx: start_row_idx = i d = webnotes.DictObj() for cidx in xrange(len(columns)): d[columns[cidx]] = r[cidx] @@ -155,7 +159,8 @@ def get_data(rows): if r[0]=="--------Data----------": start_row = i+2 columns = [c.replace(" ", "_").lower() for c in rows[i+1]] - return data + + return data, start_row_idx @webnotes.whitelist() def get_template_single(): diff --git a/accounts/page/voucher_import_tool/voucher_import_tool.txt b/accounts/page/voucher_import_tool/voucher_import_tool.txt index 658ef00524..ab4b9bdfee 100644 --- a/accounts/page/voucher_import_tool/voucher_import_tool.txt +++ b/accounts/page/voucher_import_tool/voucher_import_tool.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-09-26 15:21:57', + u'creation': '2012-10-02 18:51:49', u'docstatus': 0, - u'modified': '2012-09-26 15:21:57', + u'modified': '2012-10-04 17:04:18', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -20,9 +20,24 @@ 'title': u'Voucher Import Tool' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'voucher-import-tool', + 'parentfield': u'roles', + 'parenttype': u'Page', + 'role': u'Accounts Manager' + }, + # Page, voucher-import-tool { u'doctype': u'Page', u'name': u'voucher-import-tool' + }, + + # Page Role + { + u'doctype': u'Page Role' } ] \ No newline at end of file diff --git a/buying/page/buying_home/buying_home.html b/buying/page/buying_home/buying_home.html index 384a77e725..9ec7b7570c 100644 --- a/buying/page/buying_home/buying_home.html +++ b/buying/page/buying_home/buying_home.html @@ -24,7 +24,8 @@

Address

Address Master


-

Purchase Analytics +

+ Purchase Analytics beta

Purchase trends based on Purchase Invoice

@@ -49,6 +50,13 @@ title = "Supplier classification" href="#!List/Supplier Type">Supplier Type +
-

Gantt Chart

+

Gantt Chart

Gantt chart of all tasks

diff --git a/public/js/modules.js b/public/js/modules.js index a9e82d6ff8..772a561f72 100644 --- a/public/js/modules.js +++ b/public/js/modules.js @@ -128,7 +128,10 @@ erpnext.module_page.hide_links = function(wrapper) { // pages $(wrapper).find('[data-role]').each(function() { - if(!has_common(user_roles, [$(this).attr("data-role"), "System Manager"])) { + // can define multiple roles + var data_roles = $(this).attr("data-role").split(",").map(function(role) { + return role.trim(); }); + if(!has_common(user_roles, ["System Manager"].concat(data_roles))) { var html = $(this).html(); $(this).parent().css('color', '#999'); $(this).replaceWith('\ %(name)s', data)) }, diff --git a/public/js/tree_grid.css b/public/js/tree_grid.css index 00e05d4994..5fe599569c 100644 --- a/public/js/tree_grid.css +++ b/public/js/tree_grid.css @@ -13,9 +13,9 @@ } .toggle.expand { - background: url(images/expand.gif) no-repeat center center; + background: url(app/images/expand.gif) no-repeat center center; } .toggle.collapse { - background: url(images/collapse.gif) no-repeat center center; + background: url(app/images/collapse.gif) no-repeat center center; } \ No newline at end of file diff --git a/selling/doctype/lead/lead.py b/selling/doctype/lead/lead.py index d0a715d204..d50a3488a7 100644 --- a/selling/doctype/lead/lead.py +++ b/selling/doctype/lead/lead.py @@ -67,7 +67,6 @@ class DocType: return ret def validate(self): - import string if self.doc.status == 'Lead Lost' and not self.doc.order_lost_reason: msgprint("Please Enter Lost Reason under More Info section") raise Exception @@ -80,7 +79,6 @@ class DocType: if not validate_email_add(self.doc.email_id): msgprint('Please enter valid email id.') raise Exception - def on_update(self): if self.doc.contact_date: diff --git a/selling/doctype/lead/lead_list.js b/selling/doctype/lead/lead_list.js index b876d52cbb..e3ff931366 100644 --- a/selling/doctype/lead/lead_list.js +++ b/selling/doctype/lead/lead_list.js @@ -4,7 +4,8 @@ wn.doclistviews['Lead'] = wn.views.ListView.extend({ this.fields = this.fields.concat([ 'tabLead.lead_name', 'tabLead.status', - 'tabLead.source' + 'tabLead.source', + 'tabLead.modified_by' ]); this.stats = this.stats.concat(['status', 'source', 'rating', 'company']); }, @@ -25,7 +26,7 @@ wn.doclistviews['Lead'] = wn.views.ListView.extend({ columns: [ {width: '3%', content: 'check'}, - {width: '5%', content:'avatar'}, + {width: '5%', content:'avatar_modified'}, {width: '30%', content:'lead_name'}, {width: '12%', content:'status_html'}, {width: '38%', content:'lead_status+tags', css: {color:'#222'}}, diff --git a/selling/page/sales_analytics/sales_analytics.js b/selling/page/sales_analytics/sales_analytics.js index b87ead51f0..17246dea25 100644 --- a/selling/page/sales_analytics/sales_analytics.js +++ b/selling/page/sales_analytics/sales_analytics.js @@ -23,6 +23,8 @@ wn.pages['sales-analytics'].onload = function(wrapper) { new erpnext.SalesAnalytics(wrapper); } +wn.require("lib/js/wn/views/grid_report.js"); + erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({ init: function(wrapper) { this._super({ diff --git a/selling/page/sales_analytics/sales_analytics.txt b/selling/page/sales_analytics/sales_analytics.txt index 3782df6e14..412d3e9743 100644 --- a/selling/page/sales_analytics/sales_analytics.txt +++ b/selling/page/sales_analytics/sales_analytics.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-09-21 12:06:14', + u'creation': '2012-09-21 20:15:12', u'docstatus': 0, - u'modified': '2012-09-21 12:06:14', + u'modified': '2012-10-04 17:17:39', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -20,9 +20,36 @@ 'title': u'Sales Analytics' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'sales-analytics', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, sales-analytics { u'doctype': u'Page', u'name': u'sales-analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Sales Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Maintenance Manager' } ] \ No newline at end of file diff --git a/selling/page/sales_browser/sales_browser.txt b/selling/page/sales_browser/sales_browser.txt index d6dfbf351b..a94c7a0cb3 100644 --- a/selling/page/sales_browser/sales_browser.txt +++ b/selling/page/sales_browser/sales_browser.txt @@ -3,49 +3,77 @@ # These values are common in all dictionaries { - 'creation': '2010-12-14 10:23:21', - 'docstatus': 0, - 'modified': '2010-12-24 11:56:34', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + u'creation': '2012-06-14 15:07:26', + u'docstatus': 0, + u'modified': '2012-10-04 17:34:55', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', - 'module': 'Selling', - 'name': '__common__', - 'page_name': 'Sales Browser', + u'doctype': u'Page', + 'module': u'Selling', + u'name': u'__common__', + 'page_name': u'Sales Browser', 'show_in_menu': 0, - 'standard': 'Yes' + 'standard': u'Yes' }, # These values are common for all Page Role { - 'doctype': 'Page Role', - 'name': '__common__', - 'parent': 'Sales Browser', - 'parentfield': 'roles', - 'parenttype': 'Page' + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'Sales Browser', + 'parentfield': u'roles', + 'parenttype': u'Page' }, # Page, Sales Browser { - 'doctype': 'Page', - 'name': 'Sales Browser' + u'doctype': u'Page', + u'name': u'Sales Browser' }, # Page Role { - 'doctype': 'Page Role', - 'idx': 1, - 'role': 'Sales Master Manager' + u'doctype': u'Page Role', + 'role': u'Sales Master Manager' }, # Page Role { - 'doctype': 'Page Role', - 'idx': 2, - 'role': 'Material Master Manager' + u'doctype': u'Page Role', + 'role': u'Material Master Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Accounts Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Sales Master Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Purchase Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Purchase Master Manager' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Material Manager' } ] \ No newline at end of file diff --git a/selling/page/selling_home/selling_home.html b/selling/page/selling_home/selling_home.html index 1917b01213..86fe47f8d1 100644 --- a/selling/page/selling_home/selling_home.html +++ b/selling/page/selling_home/selling_home.html @@ -27,7 +27,8 @@

Address

Address Master


-

Sales Analytics +

Sales Analytics beta

Sales trends based on Sales Invoice

@@ -65,17 +66,23 @@
Customer Group + href="#!Sales Browser/Customer Group" + data-role="Sales Manager, Sales Master Manager, + Accounts Manager">Customer Group
Territory + href="#!Sales Browser/Territory" + data-role="Sales Manager, Sales Master Manager + Accounts Manager">Territory
Sales Person + href="#!Sales Browser/Sales Person" + data-role="Sales Manager, Sales Master Manager + Accounts Manager">Sales Person
Item Group + href="#!Sales Browser/Item Group" + data-role="Sales Manager, Sales Master Manager + Accounts Manager">Item Group
- diff --git a/setup/page/modules_setup/modules_setup.txt b/setup/page/modules_setup/modules_setup.txt index 70c6a90cc2..494a96bfc1 100644 --- a/setup/page/modules_setup/modules_setup.txt +++ b/setup/page/modules_setup/modules_setup.txt @@ -3,26 +3,41 @@ # These values are common in all dictionaries { - 'creation': '2012-02-28 17:48:39', - 'docstatus': 0, - 'modified': '2012-02-28 17:48:39', - 'modified_by': u'Administrator', - 'owner': u'Administrator' + u'creation': '2012-06-14 15:07:28', + u'docstatus': 0, + u'modified': '2012-10-04 16:55:31', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', + u'doctype': u'Page', 'module': u'Setup', - 'name': '__common__', + u'name': u'__common__', 'page_name': u'modules_setup', 'standard': u'Yes', 'title': u'Modules Setup' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'modules_setup', + 'parentfield': u'roles', + 'parenttype': u'Page', + 'role': u'System Manager' + }, + # Page, modules_setup { - 'doctype': 'Page', - 'name': u'modules_setup' + u'doctype': u'Page', + u'name': u'modules_setup' + }, + + # Page Role + { + u'doctype': u'Page Role' } ] \ No newline at end of file diff --git a/setup/page/setup/setup.txt b/setup/page/setup/setup.txt index 2ecc40b329..dfc85e3aa9 100644 --- a/setup/page/setup/setup.txt +++ b/setup/page/setup/setup.txt @@ -3,25 +3,40 @@ # These values are common in all dictionaries { - 'creation': '2010-12-16 23:46:03', - 'docstatus': 0, - 'modified': '2011-07-04 16:58:27', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + u'creation': '2012-06-14 15:07:28', + u'docstatus': 0, + u'modified': '2012-10-04 16:52:41', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all Page { - 'doctype': 'Page', - 'module': 'Setup', - 'name': '__common__', - 'page_name': 'Setup', - 'standard': 'Yes' + u'doctype': u'Page', + 'module': u'Setup', + u'name': u'__common__', + 'page_name': u'Setup', + 'standard': u'Yes' + }, + + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'Setup', + 'parentfield': u'roles', + 'parenttype': u'Page', + 'role': u'System Manager' }, # Page, Setup { - 'doctype': 'Page', - 'name': 'Setup' + u'doctype': u'Page', + u'name': u'Setup' + }, + + # Page Role + { + u'doctype': u'Page Role' } ] \ No newline at end of file diff --git a/stock/page/stock_ageing/stock_ageing.js b/stock/page/stock_ageing/stock_ageing.js index 32957000cc..7adf56af62 100644 --- a/stock/page/stock_ageing/stock_ageing.js +++ b/stock/page/stock_ageing/stock_ageing.js @@ -26,6 +26,7 @@ wn.pages['stock-ageing'].onload = function(wrapper) { } +wn.require("lib/js/wn/views/grid_report.js"); wn.require("app/js/stock_grid_report.js"); erpnext.StockAgeing = erpnext.StockGridReport.extend({ diff --git a/stock/page/stock_ageing/stock_ageing.txt b/stock/page/stock_ageing/stock_ageing.txt index bda41e5f7a..bb4aabb302 100644 --- a/stock/page/stock_ageing/stock_ageing.txt +++ b/stock/page/stock_ageing/stock_ageing.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-09-21 18:21:31', + u'creation': '2012-09-21 20:15:14', u'docstatus': 0, - u'modified': '2012-09-21 18:21:31', + u'modified': '2012-10-04 17:34:24', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -20,9 +20,30 @@ 'title': u'Stock Ageing' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'stock-ageing', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, stock-ageing { u'doctype': u'Page', u'name': u'stock-ageing' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Material Manager' } ] \ No newline at end of file diff --git a/stock/page/stock_analytics/stock_analytics.js b/stock/page/stock_analytics/stock_analytics.js index 9b0309f641..bec0bc2524 100644 --- a/stock/page/stock_analytics/stock_analytics.js +++ b/stock/page/stock_analytics/stock_analytics.js @@ -24,6 +24,7 @@ wn.pages['stock-analytics'].onload = function(wrapper) { new erpnext.StockAnalytics(wrapper); } +wn.require("lib/js/wn/views/grid_report.js"); wn.require("app/js/stock_grid_report.js"); erpnext.StockAnalytics = erpnext.StockGridReport.extend({ diff --git a/stock/page/stock_analytics/stock_analytics.txt b/stock/page/stock_analytics/stock_analytics.txt index 3d9510df2e..1405e6ccee 100644 --- a/stock/page/stock_analytics/stock_analytics.txt +++ b/stock/page/stock_analytics/stock_analytics.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-09-20 12:13:45', + u'creation': '2012-09-21 20:15:14', u'docstatus': 0, - u'modified': '2012-09-20 12:13:45', + u'modified': '2012-10-04 17:32:20', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -20,9 +20,30 @@ 'title': u'Stock Analytics' }, + # These values are common for all Page Role + { + u'doctype': u'Page Role', + u'name': u'__common__', + 'parent': u'stock-analytics', + 'parentfield': u'roles', + 'parenttype': u'Page' + }, + # Page, stock-analytics { u'doctype': u'Page', u'name': u'stock-analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Analytics' + }, + + # Page Role + { + u'doctype': u'Page Role', + 'role': u'Material Manager' } ] \ No newline at end of file diff --git a/stock/page/stock_home/stock_home.html b/stock/page/stock_home/stock_home.html index b3a2848363..fd338144b0 100644 --- a/stock/page/stock_home/stock_home.html +++ b/stock/page/stock_home/stock_home.html @@ -24,17 +24,20 @@

Warehouse

Warehouse is where items are stored


-

Stock Ledger +

Stock Ledger beta

Log of stock movements


-

Stock Analytics +

+ Stock Analytics beta

Visual representation of stock trends


-

Stock Ageing +

+ Stock Ageing beta

Analysis of slow moving stock

@@ -102,7 +105,9 @@
Item Group + href="#!Sales Browser/Item Group" + data-role="Material Master Master, Material Manager, + Accounts Manager">Item Group