From e91cafe560ff73f4fac751468b133e120882d44b Mon Sep 17 00:00:00 2001 From: hasyed-akamai Date: Thu, 17 Oct 2024 18:08:51 +0530 Subject: [PATCH] fix: [M3-8408] - Change of heading from "Invoice" to "Tax Invoice" for UAE customers (#11097) * fix: [M3-8408] - Change of heading from "Invoice" to "Tax Invoice" for UAE customers * Added changeset: Change of Heading from Invoice to Tax Invoice for UAE Customers * Change Changeset Description Co-authored-by: Purvesh Makode * Change Changeset Type Co-authored-by: Purvesh Makode --------- Co-authored-by: Purvesh Makode --- packages/manager/.changeset/pr-11097-fixed-1728926799806.md | 5 +++++ .../src/features/Billing/PdfGenerator/PdfGenerator.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 packages/manager/.changeset/pr-11097-fixed-1728926799806.md diff --git a/packages/manager/.changeset/pr-11097-fixed-1728926799806.md b/packages/manager/.changeset/pr-11097-fixed-1728926799806.md new file mode 100644 index 00000000000..93400dceb54 --- /dev/null +++ b/packages/manager/.changeset/pr-11097-fixed-1728926799806.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Changed +--- + +Invoice heading from 'Invoice' to 'Tax Invoice' for UAE Customers ([#11097](https://github.com/linode/manager/pull/11097)) diff --git a/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts b/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts index 1acc134b281..823b68a9835 100644 --- a/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts +++ b/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts @@ -301,7 +301,10 @@ export const printInvoice = async ( doc, Math.max(leftHeaderYPosition, rightHeaderYPosition) + 12, { - text: `Invoice: #${invoiceId}`, + text: + account.country === 'AE' + ? `Tax Invoice: #${invoiceId}` + : `Invoice: #${invoiceId}`, } );