adjusts query so multiple plans can be used to create single invoice

This commit is contained in:
tundebabzy 2018-02-27 09:36:29 +01:00
parent 559d01e176
commit 3c26a7e862

View File

@ -158,8 +158,8 @@ class Subscriptions(Document):
if plan_items:
item_names = frappe.db.sql(
'select item as item_code, cost as rate from `tabSubscription Plan` where name=%s',
plan_items, as_dict=1
'select item as item_code, cost as rate from `tabSubscription Plan` where name in %s',
(plan_items,), as_dict=1
)
return item_names