We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816cbde commit 635a421Copy full SHA for 635a421
1 file changed
erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py
@@ -2546,7 +2546,10 @@ def get_auto_batch_nos(kwargs):
2546
qty = flt(kwargs.qty)
2547
2548
stock_ledgers_batches = get_stock_ledgers_batches(kwargs)
2549
- pos_invoice_batches = get_reserved_batches_for_pos(kwargs)
+
2550
+ pos_invoice_batches = frappe._dict()
2551
+ if not kwargs.for_stock_levels:
2552
+ pos_invoice_batches = get_reserved_batches_for_pos(kwargs)
2553
2554
sre_reserved_batches = frappe._dict()
2555
if not kwargs.ignore_reserved_stock:
0 commit comments