[fix] Get stock and rate function restored

This commit is contained in:
Nabin Hait 2015-08-17 10:50:23 +05:30 committed by Anand Doshi
parent 92d8a9b2d5
commit 1c98886c85

View File

@ -232,6 +232,10 @@ class StockEntry(StockController):
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)
self.distribute_additional_costs()