diff --git a/css/all-app.css b/css/all-app.css index 18a99f5aa4c..b38d5cb6905 100644 --- a/css/all-app.css +++ b/css/all-app.css @@ -234,10 +234,15 @@ div.std-footer-item { padding: 15px; } +.layout-wrapper-background { + background-color: #f2f2f2 !important; + padding: 0px; +} + .layout-main-section { width: 68%; float: left; - padding: 13px; + padding: 15px; background-color: #FFF; min-height: 450px; } @@ -245,10 +250,9 @@ div.std-footer-item { .layout-side-section { width: 24%; float: right; - margin-right: 15px; color: #606060; overflow-x: hidden; - padding: 13px; + padding: 15px; min-height: 450px; } @@ -1619,46 +1623,39 @@ ul.box_tabs li.box_tab_selected a { /* * lib/css/legacy/sidebar.css - */div.psidebar-wrapper { - margin: 0px 8px; + */div.psidebar { } -div.psidebar-head { +div.psidebar div.head { font-size: 14px; font-weight: bold; color: #555; margin-bottom: 12px; } -div.psidebar-section { +div.psidebar div.section { margin-bottom: 11px; overflow: hidden; } -div.psidebar-section-head { +div.psidebar div.section-head { font-size: 12px; padding: 5px 11px; border-bottom: 2px solid #444; } -div.psidebar-section-body { +div.psidebar div.section-body { margin: 7px 11px 11px 11px; } -div.psidebar-section-item { +div.psidebar div.section-item { margin-bottom: 7px; } -.psidebar-section-link { +div.psidebar .section-link { font-size: 11px; color: #666; } - -div.follower-list { - color: #666; - margin-top: 7px; - font-size: 11px; -} /* * lib/css/bootstrap/bootstrap-buttons.css */.btn.danger, diff --git a/css/all-web.css b/css/all-web.css index 43e94e487d8..96574e329e0 100644 --- a/css/all-web.css +++ b/css/all-web.css @@ -234,10 +234,15 @@ div.std-footer-item { padding: 15px; } +.layout-wrapper-background { + background-color: #f2f2f2 !important; + padding: 0px; +} + .layout-main-section { width: 68%; float: left; - padding: 13px; + padding: 15px; background-color: #FFF; min-height: 450px; } @@ -245,10 +250,9 @@ div.std-footer-item { .layout-side-section { width: 24%; float: right; - margin-right: 15px; color: #606060; overflow-x: hidden; - padding: 13px; + padding: 15px; min-height: 450px; } diff --git a/erpnext/home/page/event_updates/event_updates.js b/erpnext/home/page/event_updates/event_updates.js index 25c74ae9154..11dfdf8e336 100644 --- a/erpnext/home/page/event_updates/event_updates.js +++ b/erpnext/home/page/event_updates/event_updates.js @@ -16,9 +16,7 @@ pscript.home_make_body = function() { var wrapper = page_body.pages['Event Updates']; // body - $(wrapper).addClass('layout-wrapper') - .css('background-color', wn.sidebar_background).css('padding', '0px'); - wrapper.style.backgroud + $(wrapper).addClass('layout-wrapper').addClass('layout-wrapper-background') wrapper.body = $a(wrapper, 'div', 'layout-main-section'); wrapper.head = $a(wrapper.body, 'div'); diff --git a/erpnext/selling/doctype/campaign/campaign.txt b/erpnext/selling/doctype/campaign/campaign.txt index 1f1c3a02369..8810cb88557 100644 --- a/erpnext/selling/doctype/campaign/campaign.txt +++ b/erpnext/selling/doctype/campaign/campaign.txt @@ -5,164 +5,84 @@ { 'creation': '2010-08-08 17:08:54', 'docstatus': 0, - 'modified': '2010-09-20 14:06:57', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-02-20 18:06:32', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all DocType { + '_last_update': u'1326102553', 'allow_trash': 1, - 'autoname': 'field:campaign_name', - 'colour': 'White:FFF', + 'autoname': u'field:campaign_name', + 'colour': u'White:FFF', + 'default_print_format': u'Standard', 'doctype': 'DocType', - 'document_type': 'Master', - 'module': 'Selling', + 'document_type': u'Master', + 'module': u'Selling', 'name': '__common__', - 'section_style': 'Simple', - 'server_code_error': ' ', + 'section_style': u'Simple', + 'server_code_error': u' ', 'show_in_menu': 0, - 'version': 6 + 'version': 7 }, # These values are common for all DocField { - 'doctype': 'DocField', + 'doctype': u'DocField', 'name': '__common__', - 'parent': 'Campaign', - 'parentfield': 'fields', - 'parenttype': 'DocType' - }, - - # These values are common for all DocPerm - { - 'amend': 0, - 'doctype': 'DocPerm', - 'name': '__common__', - 'parent': 'Campaign', - 'parentfield': 'permissions', - 'parenttype': 'DocType', - 'read': 1, - 'submit': 0 + 'parent': u'Campaign', + 'parentfield': u'fields', + 'parenttype': u'DocType' }, # DocType, Campaign { 'doctype': 'DocType', - 'name': 'Campaign' - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': 'DocPerm', - 'idx': 1, - 'permlevel': 1, - 'role': 'Sales Manager', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': 'DocPerm', - 'idx': 2, - 'permlevel': 0, - 'role': 'Sales Manager', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': 'DocPerm', - 'idx': 3, - 'permlevel': 1, - 'role': 'Sales Master Manager', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': 'DocPerm', - 'idx': 4, - 'permlevel': 1, - 'role': 'Sales User', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': 'DocPerm', - 'idx': 5, - 'permlevel': 0, - 'role': 'Sales User', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 1, - 'create': 1, - 'doctype': 'DocPerm', - 'idx': 6, - 'permlevel': 0, - 'role': 'Sales Master Manager', - 'write': 1 + 'name': u'Campaign' }, # DocField { - 'doctype': 'DocField', - 'fieldname': 'trash_reason', - 'fieldtype': 'Small Text', - 'idx': 1, - 'label': 'Trash Reason', - 'oldfieldname': 'trash_reason', - 'oldfieldtype': 'Small Text', + 'doctype': u'DocField', + 'fieldname': u'trash_reason', + 'fieldtype': u'Small Text', + 'label': u'Trash Reason', + 'oldfieldname': u'trash_reason', + 'oldfieldtype': u'Small Text', 'permlevel': 1 }, # DocField { - 'doctype': 'DocField', - 'fieldtype': 'Section Break', - 'idx': 2, - 'label': 'Campaign', - 'oldfieldtype': 'Section Break', + 'doctype': u'DocField', + 'fieldtype': u'Section Break', + 'label': u'Campaign', + 'oldfieldtype': u'Section Break', 'permlevel': 0 }, # DocField { - 'doctype': 'DocField', - 'fieldname': 'campaign_name', - 'fieldtype': 'Data', - 'idx': 3, - 'label': 'Campaign Name', - 'oldfieldname': 'campaign_name', - 'oldfieldtype': 'Data', + 'doctype': u'DocField', + 'fieldname': u'campaign_name', + 'fieldtype': u'Data', + 'label': u'Campaign Name', + 'oldfieldname': u'campaign_name', + 'oldfieldtype': u'Data', 'permlevel': 0, 'reqd': 1 }, # DocField { - 'doctype': 'DocField', - 'fieldname': 'description', - 'fieldtype': 'Text', - 'idx': 4, - 'label': 'Description', - 'oldfieldname': 'description', - 'oldfieldtype': 'Text', + 'doctype': u'DocField', + 'fieldname': u'description', + 'fieldtype': u'Text', + 'label': u'Description', + 'oldfieldname': u'description', + 'oldfieldtype': u'Text', 'permlevel': 0, - 'width': '300px' + 'width': u'300px' } ] \ No newline at end of file diff --git a/erpnext/selling/page/selling_home/__init__.py b/erpnext/selling/page/selling_home/__init__.py new file mode 100644 index 00000000000..959135f4728 --- /dev/null +++ b/erpnext/selling/page/selling_home/__init__.py @@ -0,0 +1,12 @@ +import webnotes + +@webnotes.whitelist() +def get_report_list(arg=None): + """return list of reports for this module""" + webnotes.response['values'] = webnotes.conn.sql("""select + distinct criteria_name, doc_type, parent_doc_type + from `tabSearch Criteria` + where module='Selling' + and docstatus in (0, NULL) + order by criteria_name + limit %(limit_start)s, %(limit_page_length)s""" % webnotes.form_dict, as_dict=True) \ No newline at end of file diff --git a/erpnext/selling/page/selling_home/selling_home.html b/erpnext/selling/page/selling_home/selling_home.html new file mode 100644 index 00000000000..5c7f1b1100a --- /dev/null +++ b/erpnext/selling/page/selling_home/selling_home.html @@ -0,0 +1,65 @@ +
Prospective customers
+Business opportunities
+Quotes sent to Leads / Customers
+Confirmed orders from Customers
+