From 7f66983309726135eb5aabbe5f885ded25ee65e6 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 21 Oct 2015 12:04:27 +0530 Subject: [PATCH] [minor] added column type definition in batch-wise balance history --- .../batch_wise_balance_history.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/stock/report/batch_wise_balance_history/batch_wise_balance_history.py b/erpnext/stock/report/batch_wise_balance_history/batch_wise_balance_history.py index 9cba2032f8..fca91d6e17 100644 --- a/erpnext/stock/report/batch_wise_balance_history/batch_wise_balance_history.py +++ b/erpnext/stock/report/batch_wise_balance_history/batch_wise_balance_history.py @@ -7,10 +7,10 @@ from frappe import _ from frappe.utils import flt, cint, getdate def execute(filters=None): - if not filters: filters = {} + if not filters: filters = {} float_precision = cint(frappe.db.get_default("float_precision")) or 3 - + columns = get_columns(filters) item_map = get_item_details(filters) iwb_map = get_item_warehouse_batch_map(filters, float_precision) @@ -32,8 +32,8 @@ def get_columns(filters): """return columns based on filters""" columns = [_("Item") + ":Link/Item:100"] + [_("Item Name") + "::150"] + [_("Description") + "::150"] + \ - [_("Warehouse") + ":Link/Warehouse:100"] + [_("Batch") + ":Link/Batch:100"] + [_("Opening Qty") + "::90"] + \ - [_("In Qty") + "::80"] + [_("Out Qty") + "::80"] + [_("Balance Qty") + "::90"] + [_("Warehouse") + ":Link/Warehouse:100"] + [_("Batch") + ":Link/Batch:100"] + [_("Opening Qty") + ":Float:90"] + \ + [_("In Qty") + ":Float:80"] + [_("Out Qty") + ":Float:80"] + [_("Balance Qty") + ":Float:90"] return columns