diff --git a/css/all-app.css b/css/all-app.css index c8cd9d084fa..0e432d4e0f5 100644 --- a/css/all-app.css +++ b/css/all-app.css @@ -3819,3 +3819,12 @@ body { max-width: 260px !important; } +.expiry-info { + margin-top: 40px; + margin-bottom: -40px; + text-align: center; + background-color: rgb(255, 255, 204); + padding: 7px; + z-index: 1; +} + diff --git a/css/all-web.css b/css/all-web.css index 571a221f3b8..9fbfd3a90a4 100644 --- a/css/all-web.css +++ b/css/all-web.css @@ -2517,6 +2517,15 @@ body { max-width: 260px !important; } +.expiry-info { + margin-top: 40px; + margin-bottom: -40px; + text-align: center; + background-color: rgb(255, 255, 204); + padding: 7px; + z-index: 1; +} + /* * erpnext/website/css/website.css diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.txt b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.txt index 666cd1c02c7..18bd7898c48 100755 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.txt +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.txt @@ -5,7 +5,7 @@ { 'creation': '2012-04-13 11:56:17', 'docstatus': 0, - 'modified': '2012-04-23 12:08:52', + 'modified': '2012-04-27 11:21:21', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -186,20 +186,6 @@ 'trigger': u'Client' }, - # 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'Purchase Invoice', - 'permlevel': 1, - 'print_hide': 1 - }, - # DocField { 'colour': u'White:FFF', @@ -359,6 +345,20 @@ 'search_index': 1 }, + # 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'Purchase Invoice', + 'permlevel': 1, + 'print_hide': 1 + }, + # DocField { 'description': u'The date at which current entry is corrected in the system.', diff --git a/erpnext/patches/april_2012/reload_c_form.py b/erpnext/patches/april_2012/reload_c_form.py index 246ea0fdb1d..bebca6f9bb6 100644 --- a/erpnext/patches/april_2012/reload_c_form.py +++ b/erpnext/patches/april_2012/reload_c_form.py @@ -1,4 +1,4 @@ def execute(): import webnotes - from webnotes.modules.module_manager import reload_doc + from webnotes.modules import reload_doc reload_doc('accounts', 'doctype', 'c_form') diff --git a/erpnext/patches/april_2012/serial_no_fixes.py b/erpnext/patches/april_2012/serial_no_fixes.py index b4fcf759bd7..f291e1000d8 100644 --- a/erpnext/patches/april_2012/serial_no_fixes.py +++ b/erpnext/patches/april_2012/serial_no_fixes.py @@ -1,6 +1,6 @@ def execute(): import webnotes - from webnotes.modules.module_manager import reload_doc + from webnotes.modules import reload_doc reload_doc('stock', 'doctype', 'serial_no') webnotes.conn.sql("update `tabSerial No` set sle_exists = 1") diff --git a/erpnext/setup/doctype/setup_control/setup_control.py b/erpnext/setup/doctype/setup_control/setup_control.py index ba39358866b..84387e13230 100644 --- a/erpnext/setup/doctype/setup_control/setup_control.py +++ b/erpnext/setup/doctype/setup_control/setup_control.py @@ -21,53 +21,16 @@ from webnotes.model.doc import Document, addchild from webnotes.model.code import get_obj from webnotes import session, form, msgprint -sql = webnotes.conn.sql - class DocType: def __init__(self, d, dl): self.doc, self.doclist = d, dl - #Default Naming Series - #--------------------------------------------------- - def naming_series(self): - ns = [['TDS Payment', 'TDSP'], ['Purchase Invoice', 'BILL'], ['Journal Voucher', 'JV'], ['Sales Invoice', 'INV'], ['Lead', 'Lead'], ['Purchase Request', 'IDT'], ['Opportunity', 'Opportunity'], ['Purchase Order', 'PO'], ['Quotation', 'QTN'], ['Purchase Receipt', 'GRN'], ['Stock Entry', 'STE'], ['Sales Order', 'SO'], ['Delivery Note', 'DN'], ['Employee', 'EMP/']] - for r in ns: - rec = Document('Naming Series') - rec.select_doc_for_series = r[0] - rec.new_series = r[1] - rec_obj = get_obj(doc=rec) - rec_obj.add_series() - - # set account details - #----------------------- - def set_account_details(self, args): - """ - Called from gateway after allocation - """ - import json - args = json.loads(args) - - self.set_cp_defaults(args['company'], args['industry'], args['time_zone'], args['country'], args['account_name']) - self.create_profile(args['user'], args['first_name'], args['last_name'], args.get('pwd')) - - # Domain related updates - try: - from server_tools.gateway_utils import add_domain_map - add_domain_map(args) - except ImportError, e: - pass - - # add record in domain_list of Website Settings - account_url = args['url_name'] + '.erpnext.com' - webnotes.conn.set_value('Website Settings', 'Website Settings', - 'subdomain', account_url) - - # Account Setup # --------------- def setup_account(self, args): import webnotes, json args = json.loads(args) + webnotes.conn.begin() curr_fiscal_year, fy_start_date, fy_abbr = self.get_fy_details(args.get('fy_start')) @@ -117,6 +80,7 @@ class DocType: # Set self.set_defaults(def_args) + self.set_cp_defaults(**args) self.create_feed_and_todo() @@ -126,6 +90,7 @@ class DocType: import webnotes.utils user_fullname = (args.get('first_name') or '') + (args.get('last_name') and (" " + args.get('last_name')) or '') + webnotes.conn.commit() return {'sys_defaults': webnotes.utils.get_defaults(), 'user_fullname': user_fullname} def create_feed_and_todo(self): @@ -204,14 +169,12 @@ class DocType: # Set Control Panel Defaults # -------------------------- - def set_cp_defaults(self, cname, industry, timezone, country, acc_name): + def set_cp_defaults(self, industry, country, timezone, company_name): cp = Document('Control Panel','Control Panel') - cp.account_id = acc_name - cp.company_name = cname + cp.company_name = company_name cp.industry = industry cp.time_zone = timezone cp.country = country - cp.client_name = '