diff options
author | Sebastian Reichel <sre@ring0.de> | 2013-05-25 20:23:19 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2013-05-25 20:23:19 +0200 |
commit | 9df2385eb59a43152349ed774fb570065022f8e5 (patch) | |
tree | f4f42caadf3395548f0109c4c43ef02221f48994 | |
parent | 591b7537a26b79389eb2295b2c0afc8b4c35df67 (diff) | |
download | serial-barcode-scanner-9df2385eb59a43152349ed774fb570065022f8e5.tar.bz2 |
allow price=0 (allow donations)
-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"); |