From ac07b1cc078a1dc420608bc398447ef72164bd05 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 17 Aug 2015 10:50:23 +0530 Subject: [PATCH] [fix] Get stock and rate function restored --- erpnext/stock/doctype/stock_entry/stock_entry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index f263f34d1d..7583306898 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -231,6 +231,10 @@ class StockEntry(StockController): frappe.throw(_("""Row {0}: Qty not avalable in warehouse {1} on {2} {3}. Available Qty: {4}, Transfer Qty: {5}""").format(d.idx, d.s_warehouse, self.posting_date, self.posting_time, d.actual_qty, d.transfer_qty), NegativeStockError) + + def get_stock_and_rate(self): + self.set_actual_qty() + self.calculate_rate_and_amount() def calculate_rate_and_amount(self, force=False): self.set_basic_rate(force)