mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
[enhancement] added reserved_qty_for_production in bin and updated item dashboard
This commit is contained in:
@@ -148,8 +148,9 @@ def update_bin_qty(item_code, warehouse, qty_dict=None):
|
||||
mismatch = True
|
||||
|
||||
if mismatch:
|
||||
bin.projected_qty = flt(bin.actual_qty) + flt(bin.ordered_qty) + \
|
||||
bin.projected_qty = (flt(bin.actual_qty) + flt(bin.ordered_qty) +
|
||||
flt(bin.indented_qty) + flt(bin.planned_qty) - flt(bin.reserved_qty)
|
||||
- flt(bin.reserved_qty_for_production))
|
||||
|
||||
bin.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user