[minor] re-order at re-order level, not below

This commit is contained in:
Rushabh Mehta 2015-11-25 17:23:00 +05:30
parent 625592e997
commit 03b3d66b90
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
background-repeat: no-repeat;
background-position: center top;
border-radius: 0.5em;
border: 1px solid #ebeff2;
border: 1px solid #EBEFF2;
}
.product-image.missing-image {
width: 100%;
@ -39,7 +39,7 @@
background-repeat: no-repeat;
background-position: center top;
border-radius: 0.5em;
border: 1px solid #ebeff2;
border: 1px solid #EBEFF2;
border: 1px dashed #d1d8dd;
position: relative;
}

View File

@ -48,7 +48,7 @@ def _reorder_item():
# projected_qty will be 0 if Bin does not exist
projected_qty = flt(item_warehouse_projected_qty.get(item_code, {}).get(warehouse))
if reorder_level and projected_qty < reorder_level:
if reorder_level and projected_qty <= reorder_level:
deficiency = reorder_level - projected_qty
if deficiency > reorder_qty:
reorder_qty = deficiency