summaryrefslogtreecommitdiffstats
path: root/src/web/web.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-05-25 20:23:19 +0200
committerSebastian Reichel <sre@ring0.de>2013-05-25 20:23:19 +0200
commit9df2385eb59a43152349ed774fb570065022f8e5 (patch)
treef4f42caadf3395548f0109c4c43ef02221f48994 /src/web/web.vala
parent591b7537a26b79389eb2295b2c0afc8b4c35df67 (diff)
downloadserial-barcode-scanner-9df2385eb59a43152349ed774fb570065022f8e5.tar.bz2
allow price=0 (allow donations)
Diffstat (limited to 'src/web/web.vala')
-rw-r--r--src/web/web.vala2
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");