Fixed bug with space subtotal for plan

master
Eirik Th S 2021-06-21 15:18:28 +02:00
parent 8305e3c487
commit 7d614d7fad
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
<hr> <hr>
</div> </div>
<div id='totalPriceWrapper'>Space subtotal: <span id="totalPrice" class="priceWrapper price">239.00</span></div> <div id='totalPriceWrapper'>Space subtotal: <span id="totalPrice" class="priceWrapper price">00.00</span></div>
<br> <br>
<button id="addStore">Add store</button><br><br> <button id="addStore">Add store</button><br><br>
<button id="refreshAll">Refresh all</button> <button id="refreshAll">Refresh all</button>

View File

@ -505,7 +505,7 @@ function updateTotalPrice(){
totalPrice += store.itemsObj[itemID].amount*store.itemsObj[itemID].price; totalPrice += store.itemsObj[itemID].amount*store.itemsObj[itemID].price;
} }
} }
$("#totalPrice").html(totalPrice); $("#totalPrice").html(totalPrice.toFixed(2));
} }
let spaceID = 0; let spaceID = 0;