Skip to content
Snippets Groups Projects
Commit 2477b4d5 authored by paborte's avatar paborte
Browse files

Solucionado error de numeros en los costes de la cesta y de los pedidos....

Solucionado error de numeros en los costes de la cesta y de los pedidos. Modificado el enlace del header para que tenga un comportamiento distinto al tener sesión inicada y hacer click en Mi Cuenta
parent d2ce0969
Branches
No related tags found
No related merge requests found
...@@ -92,7 +92,9 @@ ...@@ -92,7 +92,9 @@
class="p-3 border d-flex border-bottom-0 justify-content-between align-items-center" class="p-3 border d-flex border-bottom-0 justify-content-between align-items-center"
> >
<h6>Coste productos</h6> <h6>Coste productos</h6>
<h6 class="verde-tienda">{{ sumaPreciosProductos }} €</h6> <h6 class="verde-tienda">
{{ sumaPreciosProductos.toFixed(2) }} €
</h6>
</div> </div>
<div <div
class="p-3 border d-flex border-bottom-0 justify-content-between align-items-center" class="p-3 border d-flex border-bottom-0 justify-content-between align-items-center"
...@@ -105,7 +107,7 @@ ...@@ -105,7 +107,7 @@
> >
<h6>Total (IVA Incluido)</h6> <h6>Total (IVA Incluido)</h6>
<h6 class="fucsia text-decoration-underline"> <h6 class="fucsia text-decoration-underline">
{{ sumaPreciosProductos + gastosDeEnvio }} {{ (sumaPreciosProductos + gastosDeEnvio).toFixed(2) }}
</h6> </h6>
</div> </div>
<button <button
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
class="p-3 border d-flex justify-content-between align-items-center" class="p-3 border d-flex justify-content-between align-items-center"
> >
<h6>Coste productos</h6> <h6>Coste productos</h6>
<h6 class="verde-tienda">{{ pedido.costeProductos }} €</h6> <h6 class="verde-tienda">{{ pedido.costeProductos.toFixed(2) }} €</h6>
</div> </div>
<div <div
class="p-3 border d-flex border-end justify-content-between align-items-center" class="p-3 border d-flex border-end justify-content-between align-items-center"
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
> >
<h6>Total (IVA incluido)</h6> <h6>Total (IVA incluido)</h6>
<h6 class="fucsia text-decoration-underline"> <h6 class="fucsia text-decoration-underline">
{{ pedido.costeProductos + pedido.costesEnvio }} € {{ (pedido.costeProductos + pedido.costesEnvio).toFixed(2) }} €
</h6> </h6>
</div> </div>
</div> </div>
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
class="p-3 border d-flex justify-content-between align-items-center" class="p-3 border d-flex justify-content-between align-items-center"
> >
<h6>Coste productos</h6> <h6>Coste productos</h6>
<h6 class="verde-tienda">{{ pedido.costeProductos }} €</h6> <h6 class="verde-tienda">{{ pedido.costeProductos.toFixed(2) }} €</h6>
</div> </div>
<div <div
class="p-3 border d-flex border-end justify-content-between align-items-center" class="p-3 border d-flex border-end justify-content-between align-items-center"
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
> >
<h6>Total (IVA incluido)</h6> <h6>Total (IVA incluido)</h6>
<h6 class="fucsia text-decoration-underline"> <h6 class="fucsia text-decoration-underline">
{{ pedido.costeProductos + pedido.costesEnvio }} € {{ (pedido.costeProductos + pedido.costesEnvio).toFixed(2) }} €
</h6> </h6>
</div> </div>
......
...@@ -27,7 +27,7 @@ export class HeaderComponent implements OnInit, OnDestroy { ...@@ -27,7 +27,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
if (user === null) { if (user === null) {
this.rutaCuenta = '/auth'; this.rutaCuenta = '/auth';
} else { } else {
this.rutaCuenta = '/perfil'; this.rutaCuenta = '/perfil/datosPersonales';
} }
}, },
() => {} () => {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment