summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web.vala b/src/web.vala
index c61c8b9..7823d35 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>f%€</td><td>%f€</td></tr>".printf(
- e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100, e.guestprice / 100
+ table += "<tr><td><a href=\"/products/%s\">%s</a></td><td><a href=\"/products/%s\">%s</a></td><td>%d</td><td>%.2f€</td><td>%.2f€</td></tr>".printf(
+ e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100.0, e.guestprice / 100.0
);
}