mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
fix(stock): ignore pos reserved batches for stock levels
This commit is contained in:
@@ -2689,7 +2689,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:
|
||||
|
||||
Reference in New Issue
Block a user