fixes in bin
This commit is contained in:
parent
3e8f35c09e
commit
d4c5a9e2c4
@ -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))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user