Fix stockit increase formula for present behavior

This commit is contained in:
Julius 2013-03-14 21:55:10 +01:00
parent a096b3618c
commit 3208321319
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function addData(orderArticleId, itemPrice, itemUnit, itemSubtotal, itemQuantity
function increaseQuantity(item) {
var value = Number($('#q_' + item).val()) + 1;
if (!isStockit || (value <= (quantityAvailable[item] - quantityOthers[item]))) {
if (!isStockit || (value <= (quantityAvailable[item] + itemsAllocated[item]))) {
update(item, value, $('#t_' + item).val());
}
}