diff options
-rw-r--r-- | src/web/web.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web.vala b/src/web/web.vala index 98c6095..0bfa08d 100644 --- a/src/web/web.vala +++ b/src/web/web.vala @@ -654,7 +654,7 @@ public class WebServer { bbd = new DateTime.from_unix_local(0); } - if(amount >= 1 && price >= 1) { + if(amount >= 1 && price >= 0) { db.restock(session.user, id, amount, price, supplier, bbd.to_unix()); template.replace("AMOUNT", @"$amount"); template.replace("PRICE", @"$price"); |