Skip to content

Commit 635a421

Browse files
Sudharsanan11mergify[bot]
authored andcommitted
fix(stock): ignore pos reserved batches for stock levels
(cherry picked from commit 277ba9c)
1 parent 816cbde commit 635a421

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,10 @@ def get_auto_batch_nos(kwargs):
25462546
qty = flt(kwargs.qty)
25472547

25482548
stock_ledgers_batches = get_stock_ledgers_batches(kwargs)
2549-
pos_invoice_batches = get_reserved_batches_for_pos(kwargs)
2549+
2550+
pos_invoice_batches = frappe._dict()
2551+
if not kwargs.for_stock_levels:
2552+
pos_invoice_batches = get_reserved_batches_for_pos(kwargs)
25502553

25512554
sre_reserved_batches = frappe._dict()
25522555
if not kwargs.ignore_reserved_stock:

0 commit comments

Comments
 (0)