mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fixes in bin
This commit is contained in:
@@ -325,7 +325,7 @@ class DocType:
|
|||||||
where name=%s""", (cqty, flt(val_rate), cstr(self.fcfs_bal), stock_val, sle['name']))
|
where name=%s""", (cqty, flt(val_rate), cstr(self.fcfs_bal), stock_val, sle['name']))
|
||||||
|
|
||||||
# update the bin
|
# update the bin
|
||||||
if sll:
|
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 where name=%s", \
|
||||||
(flt(val_rate), cqty, flt(stock_val), self.doc.name))
|
(flt(val_rate), cqty, flt(stock_val), self.doc.name))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user