change stock warning threshold

This commit is contained in:
Ludovic Stephan 2016-12-14 23:40:42 -02:00
parent 75be9fd2a6
commit 4db55efb67

View file

@ -816,7 +816,7 @@ $(document).ready(function() {
article_data = articlesList[i];
stock = article_data[4] ;
return (stock >= 0 && stock < nb) ;
return (-5 <= stock - nb && stock - nb <= 5);
}
function addDeposit(amount, is_checkout=1) {