mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-21 10:19:57 +00:00
fix: filter available batch report by company
(cherry picked from commit 484beb9fba)
This commit is contained in:
committed by
Mergify
parent
f697b024db
commit
af19670320
@@ -154,6 +154,9 @@ def get_batchwise_data_from_serial_batch_bundle(batchwise_data, filters):
|
||||
|
||||
|
||||
def get_query_based_on_filters(query, batch, table, filters):
|
||||
if filters.company:
|
||||
query = query.where(table.company == filters.company)
|
||||
|
||||
if filters.item_code:
|
||||
query = query.where(table.item_code == filters.item_code)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user