Discount fix

This commit is contained in:
Siarhei-Sialitski 2023-01-09 17:38:31 +01:00
parent 10f9ecc038
commit 057c6eb5e9
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
<div class="d-flex align-items-center justify-content-end mt-4 mb-4 text-uppercase u-text-xl">
<div>Total</div>
<div class="ml-3">${{order.total | number:'.2-2'}}</div>
<div class="ml-3">${{ (order.discount ? ((order.total - order.discount) < 0 ? 0 : (order.total - order.discount)) : order.total) | number:'.2-2'}}</div>
</div>
<aside class="d-flex justify-content-end mt-5">

View File

@ -118,7 +118,7 @@
<div class="divider d-flex align-items-center justify-content-end mb-4 pt-4 text-uppercase u-text-xl">
<div>Total</div>
<div class="ml-3">${{ order.total | number:'.2-2'}}</div>
<div class="ml-3">${{ (coupon?.discount ? ((order.total - coupon?.discount) < 0 ? 0 : (order.total - coupon?.discount)) : order.total) | number:'.2-2'}}</div>
</div>
<div class="esh-orders_new-buttons d-flex justify-content-end align-items-center">