mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 05:39:12 +00:00
[Cleanup][Report] Added company in Warehouse-wise Stock Balance & removed filters from both reports
This commit is contained in:
@@ -1,26 +1,5 @@
|
||||
wn.query_reports["Batch-Wise Balance History"] = {
|
||||
"filters": [
|
||||
{
|
||||
"fieldname":"item_code",
|
||||
"label": "Item",
|
||||
"fieldtype": "Link",
|
||||
"options": "Item",
|
||||
"width": "80"
|
||||
},
|
||||
{
|
||||
"fieldname":"warehouse",
|
||||
"label": "Warehouse",
|
||||
"fieldtype": "Link",
|
||||
"options": "Warehouse",
|
||||
"width": "80"
|
||||
},
|
||||
{
|
||||
"fieldname":"batch_no",
|
||||
"label": "Batch",
|
||||
"fieldtype": "Link",
|
||||
"options": "Batch",
|
||||
"width": "80"
|
||||
},
|
||||
{
|
||||
"fieldname":"from_date",
|
||||
"label": "From Date",
|
||||
|
||||
@@ -49,15 +49,6 @@ def get_columns(filters):
|
||||
|
||||
def get_conditions(filters):
|
||||
conditions = ""
|
||||
if filters.get("item_code"):
|
||||
conditions += " and item_code='%s'" % filters["item_code"]
|
||||
|
||||
if filters.get("warehouse"):
|
||||
conditions += " and warehouse='%s'" % filters["warehouse"]
|
||||
|
||||
if filters.get("batch_no"):
|
||||
conditions += " and batch_no='%s'" % filters["batch_no"]
|
||||
|
||||
if not filters.get("from_date"):
|
||||
webnotes.msgprint("Please enter From Date", raise_exception=1)
|
||||
|
||||
@@ -100,8 +91,6 @@ def get_item_warehouse_batch_map(filters):
|
||||
return iwb_map
|
||||
|
||||
def get_item_details(filters):
|
||||
if filters.get("item_code"):
|
||||
conditions = " and name = '%s'" % filters["item_code"]
|
||||
item_map = {}
|
||||
for d in webnotes.conn.sql("select name, item_name, description from tabItem", as_dict=1):
|
||||
item_map.setdefault(d.name, d)
|
||||
|
||||
Reference in New Issue
Block a user