mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 06:58:27 +00:00
[fix] Batch-wise balance history: show records only with batch-id
This commit is contained in:
@@ -54,7 +54,7 @@ def get_stock_ledger_entries(filters):
|
|||||||
return frappe.db.sql("""select item_code, batch_no, warehouse,
|
return frappe.db.sql("""select item_code, batch_no, warehouse,
|
||||||
posting_date, actual_qty
|
posting_date, actual_qty
|
||||||
from `tabStock Ledger Entry`
|
from `tabStock Ledger Entry`
|
||||||
where docstatus < 2 %s order by item_code, warehouse""" %
|
where docstatus < 2 and ifnull(batch_no, '') != '' %s order by item_code, warehouse""" %
|
||||||
conditions, as_dict=1)
|
conditions, as_dict=1)
|
||||||
|
|
||||||
def get_item_warehouse_batch_map(filters, float_precision):
|
def get_item_warehouse_batch_map(filters, float_precision):
|
||||||
|
|||||||
Reference in New Issue
Block a user