Skip to content

Commit fcefc60

Browse files
committed
Merge branch 'develop'
2 parents 0d0d3ba + b579fd7 commit fcefc60

File tree

73 files changed

+734
-1762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+734
-1762
lines changed

erpnext/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import unicode_literals
33
import frappe
44

5-
__version__ = '8.0.24'
5+
__version__ = '8.0.25'
66

77
def get_default_company(user=None):
88
'''Get default company for user'''

erpnext/accounts/doctype/account/account.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ def validate_warehouse_account(self):
188188
account_balance = get_balance_on(self.name)
189189

190190
if account_balance != stock_balance:
191-
frappe.throw(_('Account balance ({0}) and stock value ({1}) must be same')\
192-
.format(fmt_money(account_balance, currency=self.account_currency),
193-
fmt_money(stock_balance, currency=self.account_currency)))
191+
frappe.throw(_('Account balance ({0}) for {1} and stock value ({2}) for warehouse {3} must be same')
192+
.format(fmt_money(account_balance, currency=self.account_currency), self.name,
193+
fmt_money(stock_balance, currency=self.account_currency), self.warehouse))
194194

195195
elif self.warehouse:
196196
self.warehouse = None

erpnext/accounts/doctype/accounts_settings/accounts_settings.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ def on_update(self):
2121
company.save()
2222

2323
# Create account head for warehouses
24-
warehouse_list = frappe.db.sql("select name, company from tabWarehouse", as_dict=1)
24+
warehouse_list = frappe.db.sql("""select name, company from tabWarehouse
25+
where disabled=0""", as_dict=1)
2526
warehouse_with_no_company = [d.name for d in warehouse_list if not d.company]
2627
if warehouse_with_no_company:
27-
frappe.throw(_("Company is missing in warehouses {0}").format(comma_and(warehouse_with_no_company)))
28+
frappe.throw(_("Company is missing in warehouses {0}")
29+
.format(comma_and(warehouse_with_no_company)))
30+
2831
for wh in warehouse_list:
2932
wh_doc = frappe.get_doc("Warehouse", wh.name)
3033
wh_doc.flags.ignore_permissions = True

0 commit comments

Comments
 (0)