mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 15:45:01 +00:00
fix: current batch qty showing zero in the stock reconciliation
(cherry picked from commit a5c62f8623)
This commit is contained in:
committed by
Mergify
parent
13f73b59df
commit
24c8a06520
@@ -2111,7 +2111,7 @@ def get_auto_batch_nos(kwargs):
|
||||
picked_batches,
|
||||
)
|
||||
|
||||
if available_batches and kwargs.get("posting_date"):
|
||||
if not kwargs.get("do_not_check_future_batches") and available_batches and kwargs.get("posting_date"):
|
||||
filter_zero_near_batches(available_batches, kwargs)
|
||||
|
||||
if not kwargs.consider_negative_batches:
|
||||
@@ -2130,7 +2130,8 @@ def filter_zero_near_batches(available_batches, kwargs):
|
||||
del kwargs["posting_date"]
|
||||
del kwargs["posting_time"]
|
||||
|
||||
available_batches_in_future = get_available_batches(kwargs)
|
||||
kwargs.do_not_check_future_batches = 1
|
||||
available_batches_in_future = get_auto_batch_nos(kwargs)
|
||||
for batch in available_batches:
|
||||
if batch.qty <= 0:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user