From 73bcf9fc15059b0bb61512033fb774c32c3d3d4d Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 23 Oct 2023 10:53:58 -0500 Subject: [PATCH] Enable taxes and tips display --- src/app/invoice/invoice.component.html | 18 ++++++++++++++++++ src/app/listorders/listorders.component.html | 18 ++++++++++++++++++ src/app/order/order.component.html | 4 ++-- src/app/receipt/receipt.component.html | 20 +++++++++++++++++++- 4 files changed, 57 insertions(+), 3 deletions(-) diff --git a/src/app/invoice/invoice.component.html b/src/app/invoice/invoice.component.html index 91ac922..2a6baaf 100644 --- a/src/app/invoice/invoice.component.html +++ b/src/app/invoice/invoice.component.html @@ -51,6 +51,24 @@ {{( item.qty * item.cost ) | number : '1.02' | currency: order.currency.toUpperCase()}} + + Sales Tax + + {{ order.taxAmount | currency: order.currency.toUpperCase() }} + + + + Value-Added Tax + + {{ order.vatAmount | currency: order.currency.toUpperCase() }} + + + + Tip + + {{ order.tipAmount | currency: order.currency.toUpperCase() }} + + diff --git a/src/app/listorders/listorders.component.html b/src/app/listorders/listorders.component.html index a02ea90..cfa2040 100644 --- a/src/app/listorders/listorders.component.html +++ b/src/app/listorders/listorders.component.html @@ -154,6 +154,24 @@ width="30%">{{item.qty * item.cost | number:'1.02' | currency: order.currency.toUpperCase() }} + + Sales Tax + + {{ order.taxAmount | currency: order.currency.toUpperCase() }} + + + + Value-Added Tax + + {{ order.vatAmount | currency: order.currency.toUpperCase() }} + + + + Tip + + {{ order.tipAmount | currency: order.currency.toUpperCase() }} + +
0"> Sales Tax {{ tax / 100 | percent:'1.2-4'}} {{ total * tax / 100 | currency: getCurrency() }} - + Value-Added Tax {{ vat / 100 | percent:'1.2-4' }} {{ total * vat / 100 | currency: getCurrency() }} diff --git a/src/app/receipt/receipt.component.html b/src/app/receipt/receipt.component.html index b948cf0..342b9bf 100644 --- a/src/app/receipt/receipt.component.html +++ b/src/app/receipt/receipt.component.html @@ -51,6 +51,24 @@ {{( item.qty * item.cost ) | number : '1.02' | currency: order.currency.toUpperCase()}} + + Sales Tax + + {{ order.taxAmount | currency: order.currency.toUpperCase() }} + + + + Value-Added Tax + + {{ order.vatAmount | currency: order.currency.toUpperCase() }} + + + + Tip + + {{ order.tipAmount | currency: order.currency.toUpperCase() }} + + @@ -92,4 +110,4 @@
- \ No newline at end of file +