fix(stock): ignore pos reserved batches for stock levels

(cherry picked from commit 277ba9cb79)
This commit is contained in:
Sudharsanan11
2026-02-07 11:16:35 +05:30
committed by Mergify
parent 3e0a7f2400
commit e2c12043ae

View File

@@ -2690,7 +2690,10 @@ def get_auto_batch_nos(kwargs):
available_batches = get_available_batches(kwargs)
stock_ledgers_batches = get_stock_ledgers_batches(kwargs)
pos_invoice_batches = get_reserved_batches_for_pos(kwargs)
pos_invoice_batches = frappe._dict()
if not kwargs.for_stock_levels:
pos_invoice_batches = get_reserved_batches_for_pos(kwargs)
sre_reserved_batches = frappe._dict()
if not kwargs.ignore_reserved_stock: