summaryrefslogtreecommitdiffstats
path: root/src/web.vala
diff options
context:
space:
mode:
authorLennart Weller <lhw@ring0.de>2013-03-17 00:25:43 +0100
committerLennart Weller <lhw@ring0.de>2013-03-17 00:25:43 +0100
commitca7bbb46ce4c5a903f91c056fc117925310d7dd8 (patch)
treebe51166b33be24ec95ae38e39facc4892753b740 /src/web.vala
parentbcb6d09b790168767296603137f5498649fdb4ac (diff)
downloadserial-barcode-scanner-ca7bbb46ce4c5a903f91c056fc117925310d7dd8.tar.bz2
changed the string to a price object
Diffstat (limited to 'src/web.vala')
-rw-r--r--src/web.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web.vala b/src/web.vala
index 7140c22..c61c8b9 100644
--- a/src/web.vala
+++ b/src/web.vala
@@ -440,8 +440,8 @@ public class WebServer {
string table = "";
foreach(var e in db.get_stock()) {
- table += "<tr><td><a href=\"/products/%s\">%s</a></td><td><a href=\"/products/%s\">%s</a></td><td>%d</td><td>%s€</td><td>%s€</td></tr>".printf(
- e.id, e.id, e.id, e.name, e.amount, e.memberprice, e.guestprice
+ table += "<tr><td><a href=\"/products/%s\">%s</a></td><td><a href=\"/products/%s\">%s</a></td><td>%d</td><td>f%€</td><td>%f€</td></tr>".printf(
+ e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100, e.guestprice / 100
);
}