Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta committed May 19, 2017
2 parents d144a4c + f3a3189 commit 50835cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion erpnext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals
import frappe

__version__ = '8.0.32'
__version__ = '8.0.33'


def get_default_company(user=None):
Expand Down
2 changes: 1 addition & 1 deletion erpnext/accounts/report/financial_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def sort_root_accounts(roots):
"""Sort root types as Asset, Liability, Equity, Income, Expense"""

def compare_roots(a, b):
if re.split('\W+', a.value)[0].isdigit():
if a.value and re.split('\W+', a.value)[0].isdigit():
# if chart of accounts is numbered, then sort by number
return cmp(a.value, b.value)
if a.report_type != b.report_type and a.report_type == "Balance Sheet":
Expand Down
2 changes: 1 addition & 1 deletion erpnext/crm/doctype/opportunity/opportunity.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def make_new_lead_if_required(self):
self.lead = lead_name

def declare_enquiry_lost(self,arg):
if not self.has_quotation():
if not self.has_lost_quotation():
frappe.db.set(self, 'status', 'Lost')
frappe.db.set(self, 'order_lost_reason', arg)
else:
Expand Down

0 comments on commit 50835cb

Please sign in to comment.