[enhancement] added reserved_qty_for_production in bin and updated item dashboard

This commit is contained in:
Rushabh Mehta
2016-04-18 19:27:36 +05:30
parent c46c1f0288
commit 0525387328
25 changed files with 635 additions and 125 deletions

View File

@@ -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()