mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
Fixed Get Open Sales Orders with Item Filter
Previously Get Open Sales Orders with Item Filter does not filter properly and instead returns Sales Orders with all Items.
This commit is contained in:
@@ -61,7 +61,7 @@ class ProductionPlanningTool(Document):
|
||||
and so.company = %(company)s
|
||||
and so_item.qty > so_item.delivered_qty {0}
|
||||
and (exists (select name from `tabItem` item where item.name=so_item.item_code
|
||||
and (item.is_pro_applicable = 1 or item.is_sub_contracted_item = 1 {1}))
|
||||
and ((item.is_pro_applicable = 1 or item.is_sub_contracted_item = 1) {1}))
|
||||
or exists (select name from `tabPacked Item` pi
|
||||
where pi.parent = so.name and pi.parent_item = so_item.item_code
|
||||
and exists (select name from `tabItem` item where item.name=pi.item_code
|
||||
|
||||
Reference in New Issue
Block a user