[minor] [fix]
diff --git a/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.py b/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.py
index 07a97d8..84f5328 100644
--- a/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.py
+++ b/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.py
@@ -164,5 +164,5 @@
 					%(mcond)s
 			    ORDER BY gle.posting_date desc, gle.voucher_no desc 
 			    limit %(start)s, %(page_len)s""" %  {dt:filters["dt"], acc:filters["acc"], 
-			    account_type: filters['account_type'], 'mcond':get_match_cond(doctype, searchfield)
+			    account_type: filters['account_type'], 'mcond':get_match_cond(doctype, searchfield),
 			    'txt': "%%%s%%" % txt,"start": start, "page_len": page_len})
\ No newline at end of file
diff --git a/selling/doctype/customer/customer.txt b/selling/doctype/customer/customer.txt
index 48c3d15..5b8e323 100644
--- a/selling/doctype/customer/customer.txt
+++ b/selling/doctype/customer/customer.txt
@@ -2,7 +2,7 @@
  {
   "creation": "2013-06-11 14:26:44", 
   "docstatus": 0, 
-  "modified": "2013-07-05 14:34:09", 
+  "modified": "2013-07-11 16:53:18", 
   "modified_by": "Administrator", 
   "owner": "Administrator"
  }, 
@@ -93,7 +93,7 @@
   "fieldtype": "Link", 
   "hidden": 0, 
   "in_filter": 1, 
-  "label": "Lead Ref", 
+  "label": "From Lead", 
   "no_copy": 1, 
   "oldfieldname": "lead_name", 
   "oldfieldtype": "Link", 
diff --git a/setup/doctype/company/company.py b/setup/doctype/company/company.py
index 1835bf9..ae2d8ee 100644
--- a/setup/doctype/company/company.py
+++ b/setup/doctype/company/company.py
@@ -160,8 +160,8 @@
 				['Indirect Income','Income','Group','Yes','Income Account','Credit',self.doc.name,''],
 			['Source of Funds (Liabilities)','','Group','No','','Credit',self.doc.name,''],
 				['Capital Account','Source of Funds (Liabilities)','Group','No','','Credit',self.doc.name,''],
-					['Reserves and Surplus','Capital Account','Group','No','','Credit',self.doc.name,''],
-					['Shareholders Funds','Capital Account','Group','No','','Credit',self.doc.name,''],
+					['Reserves and Surplus','Capital Account','Ledger','No','','Credit',self.doc.name,''],
+					['Shareholders Funds','Capital Account','Ledger','No','','Credit',self.doc.name,''],
 				['Current Liabilities','Source of Funds (Liabilities)','Group','No','','Credit',self.doc.name,''],
 					['Accounts Payable','Current Liabilities','Group','No','','Credit',self.doc.name,''],
 					['Stock Liabilities','Current Liabilities','Group','No','','Credit',self.doc.name,''],
diff --git a/setup/page/setup/setup.js b/setup/page/setup/setup.js
index 1f5132c..1844d5d 100644
--- a/setup/page/setup/setup.js
+++ b/setup/page/setup/setup.js
@@ -68,7 +68,7 @@
 			
 		} else {
 			var col = $(repl('<div class="col col-lg-5">\
-					<span class="badge">%(count)s</span>\
+					<span class="badge view-link">%(count)s</span>\
 					 <b><i class="%(icon)s"></i>\
 						<a class="data-link">%(title)s</a></b>\
 					</div>', {
diff --git a/setup/page/setup/setup.py b/setup/page/setup/setup.py
index 2ca870d..4bb1a20 100644
--- a/setup/page/setup/setup.py
+++ b/setup/page/setup/setup.py
@@ -9,7 +9,7 @@
 	},
 	{"doctype":"Company"}, 
 	{"doctype":"Fiscal Year"}, 
-	{"doctype":"Currency"}, 
+	{"doctype":"Currency", "filter": {"enabled": 1}},
 	{
 		"type": "Section",
 		"title": "Users and Permissions",
@@ -48,8 +48,8 @@
 			{"doctype":"Customer Group", "tree": "Sales Browser"}, 
 			{"doctype":"Territory", "tree": "Sales Browser"}, 
 			{"doctype":"Sales Person", "tree": "Sales Browser"}, 
-			{"doctype":"Contact"}, 
-			{"doctype":"Address"}, 
+			{"doctype":"Contact", "query": "select count(*) from `tabContact` where ifnull(customer, '')!=''"}, 
+			{"doctype":"Address", "query": "select count(*) from `tabAddress` where ifnull(customer, '')!=''"}, 
 			{ "title": "Selling Settings", 
 				"route": "Form/Selling Settings", "type": "Link", "icon": "icon-cog" },
 		]
@@ -58,8 +58,8 @@
 		"doctype": "Supplier",
 		"dependencies": [
 			{"doctype":"Supplier Type"}, 
-			{"doctype":"Contact"}, 
-			{"doctype":"Address"}, 
+			{"doctype":"Contact", "query": "select count(*) from `tabContact` where ifnull(supplier, '')!=''"}, 
+			{"doctype":"Address", "query": "select count(*) from `tabAddress` where ifnull(supplier, '')!=''"}, 
 			{ "title": "Buying Settings", 
 				"route": "Form/Buying Settings", "type": "Link", "icon": "icon-cog" },
 		]
diff --git a/startup/event_handlers.py b/startup/event_handlers.py
index cd5cebf..3f14542 100644
--- a/startup/event_handlers.py
+++ b/startup/event_handlers.py
@@ -30,7 +30,7 @@
 			login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D')
 		webnotes.conn.commit()
 		
-	if webnotes.cookies.get("full_name"):
+	if webnotes.conn.get_value("Profile", webnotes.session.user, "user_type") == "Partner":
 		from website.helpers.cart import set_cart_count
 		set_cart_count()
 		
diff --git a/utilities/doctype/address/address.txt b/utilities/doctype/address/address.txt
index edc7ac7..09be67e 100644
--- a/utilities/doctype/address/address.txt
+++ b/utilities/doctype/address/address.txt
@@ -2,7 +2,7 @@
  {
   "creation": "2013-01-10 16:34:32", 
   "docstatus": 0, 
-  "modified": "2013-07-05 14:24:00", 
+  "modified": "2013-07-11 17:02:12", 
   "modified_by": "Administrator", 
   "owner": "Administrator"
  }, 
@@ -53,7 +53,7 @@
   "fieldname": "address_title", 
   "fieldtype": "Data", 
   "label": "Address Title", 
-  "reqd": 1
+  "reqd": 0
  }, 
  {
   "doctype": "DocField", 
diff --git a/utilities/transaction_base.py b/utilities/transaction_base.py
index db5cc07..cbcd488 100644
--- a/utilities/transaction_base.py
+++ b/utilities/transaction_base.py
@@ -76,7 +76,8 @@
 		
 		# fields prepended with default in Customer doctype
 		for f in ['sales_partner', 'commission_rate', 'currency', 'price_list']:
-			out[f] = customer.fields.get("default_" + f)
+			if customer.fields.get("default_" + f):
+				out[f] = customer.fields.get("default_" + f)
 			
 		return out