Fixes in stock reconciliation
diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py
index 35030a6..78cf194 100644
--- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py
+++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py
@@ -11,8 +11,11 @@
from erpnext.controllers.stock_controller import StockController
class StockReconciliation(StockController):
- def validate(self):
+ def __init__(self, arg1, arg2=None):
+ super(StockReconciliation, self).__init__(arg1, arg2)
self.head_row = ["Item Code", "Warehouse", "Quantity", "Valuation Rate"]
+
+ def validate(self):
self.entries = []
self.validate_data()
@@ -300,4 +303,5 @@
@frappe.whitelist()
def upload():
from frappe.utils.datautils import read_csv_content_from_uploaded_file
- return read_csv_content_from_uploaded_file()
+ csv_content = read_csv_content_from_uploaded_file()
+ return filter(lambda x: x and any(x), csv_content)