From 7d614d7fadefc856a5fc553b115254dec629f816 Mon Sep 17 00:00:00 2001 From: Eirik Th S Date: Mon, 21 Jun 2021 15:18:28 +0200 Subject: [PATCH] Fixed bug with space subtotal for plan --- www/plan/index.php | 2 +- www/plan/plan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/plan/index.php b/www/plan/index.php index e3f72ab..91ef130 100644 --- a/www/plan/index.php +++ b/www/plan/index.php @@ -26,7 +26,7 @@
-
Space subtotal: 239.00
+
Space subtotal: 00.00



diff --git a/www/plan/plan.js b/www/plan/plan.js index 186a661..c674aa2 100644 --- a/www/plan/plan.js +++ b/www/plan/plan.js @@ -505,7 +505,7 @@ function updateTotalPrice(){ totalPrice += store.itemsObj[itemID].amount*store.itemsObj[itemID].price; } } - $("#totalPrice").html(totalPrice); + $("#totalPrice").html(totalPrice.toFixed(2)); } let spaceID = 0;