fixed price .toFixed(2)

This commit is contained in:
Janis M
2022-03-30 11:06:31 +02:00
parent e6eaa271cd
commit e51a7d0702
3 changed files with 4 additions and 4 deletions

View File

@@ -12,10 +12,10 @@
<div id="order-info">
<p><b>Produktname:</b> <%= product.name %></p>
<p><b>Stückpreis:</b> <%= product.price %> €</p>
<p><b>Stückpreis:</b> <%= product.price.toFixed(2) %> €</p>
<p><b>Anzahl: </b><%= quantity %></p>
<hr>
<p><b>Gesamtpreis:</b> <%= quantity * product.price %> €</p>
<p><b>Gesamtpreis:</b> <%= (quantity * product.price).toFixed(2) %> €</p>
</div>
<!--submit button-->