[cleanup] yes/no selects changed to checks in Item

This commit is contained in:
Rushabh Mehta
2015-07-24 15:16:25 +05:30
parent 18e033514e
commit 1e8025b327
59 changed files with 731 additions and 689 deletions

View File

@@ -307,7 +307,7 @@ class AccountsController(TransactionBase):
item_codes = list(set(item.item_code for item in self.get("items")))
if item_codes:
stock_items = [r[0] for r in frappe.db.sql("""select name
from `tabItem` where name in (%s) and is_stock_item='Yes'""" % \
from `tabItem` where name in (%s) and is_stock_item=1""" % \
(", ".join((["%s"]*len(item_codes))),), item_codes)]
return stock_items