mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
Fixes in stock reconciliation
This commit is contained in:
@@ -11,8 +11,11 @@ from erpnext.stock.stock_ledger import update_entries_after
|
|||||||
from erpnext.controllers.stock_controller import StockController
|
from erpnext.controllers.stock_controller import StockController
|
||||||
|
|
||||||
class StockReconciliation(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"]
|
self.head_row = ["Item Code", "Warehouse", "Quantity", "Valuation Rate"]
|
||||||
|
|
||||||
|
def validate(self):
|
||||||
self.entries = []
|
self.entries = []
|
||||||
|
|
||||||
self.validate_data()
|
self.validate_data()
|
||||||
@@ -300,4 +303,5 @@ class StockReconciliation(StockController):
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def upload():
|
def upload():
|
||||||
from frappe.utils.datautils import read_csv_content_from_uploaded_file
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user