From a45cbed63c523f421dc87d4e81f030e813d8c908 Mon Sep 17 00:00:00 2001 From: Rene Vergara A Date: Tue, 24 Oct 2023 20:51:39 -0400 Subject: [PATCH] Fix 0000072 - Tax, VAT and Tip language translation completed for invoice component --- src/app/invoice/invoice.component.html | 6 +++--- src/app/invoice/invoice.component.ts | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/invoice/invoice.component.html b/src/app/invoice/invoice.component.html index 2a6baaf..3fc3b55 100644 --- a/src/app/invoice/invoice.component.html +++ b/src/app/invoice/invoice.component.html @@ -52,19 +52,19 @@ - Sales Tax + {{ vE.invoiceTax }} {{ order.taxAmount | currency: order.currency.toUpperCase() }} - Value-Added Tax + {{ vE.invoiceVAT }} {{ order.vatAmount | currency: order.currency.toUpperCase() }} - Tip + {{ vE.invoiceTip }} {{ order.tipAmount | currency: order.currency.toUpperCase() }} diff --git a/src/app/invoice/invoice.component.ts b/src/app/invoice/invoice.component.ts index ff53c93..36ed22a 100644 --- a/src/app/invoice/invoice.component.ts +++ b/src/app/invoice/invoice.component.ts @@ -90,7 +90,10 @@ export class InvoiceComponent implements OnInit { invoiceCopyamountError : '', invoiceCopymemoError : '', invoiceInvalidId : '', - invoiceInfoNotavail : '' + invoiceInfoNotavail : '', + invoiceTax : '', + invoiceVAT : '', + invoiceTip : '' }; // constructor( @@ -278,6 +281,9 @@ export class InvoiceComponent implements OnInit { this.vE.invoiceCopymemoError = response.data.invoice_copymemo_error; this.vE.invoiceInvalidId = response.data.invoice_invalid_id; this.vE.invoiceInfoNotavail = response.data.invoice_info_notavail; + this.vE.invoiceTax = response.data.invoice_tax; + this.vE.invoiceVAT = response.data.invoice_vat; + this.vE.invoiceTip = response.data.invoice_tip; }, error => { console.log('Error >> ',error); }