[fix] sales order with status closed fetching on production planning tool
This commit is contained in:
parent
3e43f275a0
commit
d7908f8e3a
@ -42,7 +42,7 @@ class ProductionPlanningTool(Document):
|
||||
select distinct so.name, so.transaction_date, so.customer, so.base_grand_total
|
||||
from `tabSales Order` so, `tabSales Order Item` so_item
|
||||
where so_item.parent = so.name
|
||||
and so.docstatus = 1 and so.status != "Stopped"
|
||||
and so.docstatus = 1 and so.status not in ("Stopped", "Closed")
|
||||
and so.company = %(company)s
|
||||
and so_item.qty > so_item.delivered_qty {0} {1}
|
||||
and (exists (select name from `tabBOM` bom where bom.item=so_item.item_code
|
||||
|
Loading…
Reference in New Issue
Block a user