From d4c5a9e2c42df6c134b8cee09152dea2bd9e4f4a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 30 Apr 2012 11:50:34 +0530 Subject: [PATCH] fixes in bin --- erpnext/stock/doctype/bin/bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index 1c2b53e5e5..da9eafd961 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/stock/doctype/bin/bin.py @@ -326,7 +326,7 @@ class DocType: # update the bin if sll or not prev_sle: - sql("update `tabBin` set valuation_rate=%s, actual_qty=%s, stock_value = %s where name=%s", \ + sql("update `tabBin` set valuation_rate=%s, actual_qty=%s, stock_value = %s, projected_qty = (actual_qty + indented_qty + ordered_qty + planned_qty - reserved_qty) where name=%s", \ (flt(val_rate), cqty, flt(stock_val), self.doc.name))