Merge branch 'master' into develop

This commit is contained in:
Saurabh 2018-04-24 12:09:40 +05:30
commit 9738d52d5f
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import frappe
from erpnext.hooks import regional_overrides
from frappe.utils import getdate
__version__ = '10.1.24'
__version__ = '10.1.25'
def get_default_company(user=None):
'''Get default company for user'''

View File

@ -346,8 +346,8 @@ class SalesInvoice(SellingController):
self.terms = frappe.db.get_value("Terms and Conditions", self.tc_name, "terms")
# fetch charges
if self.taxes_and_charges and not len(self.get("taxes")):
self.set_taxes()
if self.taxes_and_charges:
self.set_other_charges()
return pos

View File

@ -100,7 +100,7 @@ def get_item_details(items, sl_entries):
select name, item_name, description, item_group, brand, stock_uom
from `tabItem`
where name in ({0})
""".format(', '.join(['"' + frappe.db.escape(i,percent=False) + '"' for i in items])), as_dict=1, debug=1):
""".format(', '.join(['"' + frappe.db.escape(i,percent=False) + '"' for i in items])), as_dict=1):
item_details.setdefault(item.name, item)
return item_details