mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
adjusts query so multiple plans can be used to create single invoice
This commit is contained in:
@@ -158,8 +158,8 @@ class Subscriptions(Document):
|
|||||||
|
|
||||||
if plan_items:
|
if plan_items:
|
||||||
item_names = frappe.db.sql(
|
item_names = frappe.db.sql(
|
||||||
'select item as item_code, cost as rate from `tabSubscription Plan` where name=%s',
|
'select item as item_code, cost as rate from `tabSubscription Plan` where name in %s',
|
||||||
plan_items, as_dict=1
|
(plan_items,), as_dict=1
|
||||||
)
|
)
|
||||||
return item_names
|
return item_names
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user