Skip to content

Commit 2215efa

Browse files
Nishka GosaliaNishka Gosalia
authored andcommitted
fix: conditions in work order and production plan
1 parent c990f9d commit 2215efa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

erpnext/manufacturing/doctype/production_plan/production_plan.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def get_so_items(self):
368368
(so_item.parent.isin(so_list))
369369
& (so_item.docstatus == 1)
370370
& ((so_item.stock_qty - so_item.stock_reserved_qty) > so_item.work_order_qty)
371-
& ((so_item.is_closed == 0) | (so_item.is_closed.isnull()))
371+
& (so_item.is_closed == 0)
372372
)
373373
)
374374

@@ -433,7 +433,7 @@ def get_so_items(self):
433433
.where((bom.item == pi.item_code) & (bom.is_active == 1))
434434
)
435435
)
436-
& ((so_item.is_closed == 0) | (so_item.is_closed.isnull()))
436+
& (so_item.is_closed == 0)
437437
)
438438
)
439439

@@ -1544,7 +1544,7 @@ def get_sales_orders(self):
15441544
& (so.status.notin(["Stopped", "Closed"]))
15451545
& (so.company == self.company)
15461546
& (so_item.qty > so_item.production_plan_qty)
1547-
& ((so_item.is_closed == 0) | (so_item.is_closed.isnull()))
1547+
& (so_item.is_closed == 0)
15481548
)
15491549
)
15501550

0 commit comments

Comments
 (0)