Skip to content

Commit

Permalink
Changed the term "VAT" on Documents Listing Page to "Tax" to be appli…
Browse files Browse the repository at this point in the history
…cable to all countries (#10055)

Co-authored-by: Jessy <[email protected]>
  • Loading branch information
jessy-p and Jessy authored Jan 3, 2025
1 parent 573a5b3 commit 8670a4e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-9923-replace-VAT-term
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Replaced the term "VAT" with "Tax" in Documents Listing Page
2 changes: 1 addition & 1 deletion client/documents/filters/test/__snapshots__/index.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ HTMLOptionsCollection [
<option
value="vat_invoice"
>
VAT Invoice
Tax Invoice
</option>,
]
`;
4 changes: 2 additions & 2 deletions client/documents/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ const getDocumentDescription = ( document: Document ) => {
case 'vat_invoice':
if ( document.period_from && document.period_to ) {
return sprintf(
__( 'VAT invoice for %s to %s', 'woocommerce-payments' ),
__( 'Tax invoice for %s to %s', 'woocommerce-payments' ),
formatDateTimeFromString( document.period_from ),
formatDateTimeFromString( document.period_to )
);
}
return __(
'VAT invoice without proper period dates',
'Tax invoice without proper period dates',
'woocommerce-payments'
);

Expand Down
16 changes: 8 additions & 8 deletions client/documents/list/test/__snapshots__/index.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ exports[`Documents list renders correctly 1`] = `
<td
class="woocommerce-table__item is-left-aligned"
>
VAT Invoice
Tax Invoice
</td>
<td
class="woocommerce-table__item is-left-aligned"
>
VAT invoice without proper period dates
Tax invoice without proper period dates
</td>
<td
class="woocommerce-table__item is-numeric"
Expand All @@ -250,12 +250,12 @@ exports[`Documents list renders correctly 1`] = `
<td
class="woocommerce-table__item is-left-aligned"
>
VAT Invoice
Tax Invoice
</td>
<td
class="woocommerce-table__item is-left-aligned"
>
VAT invoice without proper period dates
Tax invoice without proper period dates
</td>
<td
class="woocommerce-table__item is-numeric"
Expand Down Expand Up @@ -537,12 +537,12 @@ exports[`Documents list renders table summary only when the documents summary da
<td
class="woocommerce-table__item is-left-aligned"
>
VAT Invoice
Tax Invoice
</td>
<td
class="woocommerce-table__item is-left-aligned"
>
VAT invoice without proper period dates
Tax invoice without proper period dates
</td>
<td
class="woocommerce-table__item is-numeric"
Expand All @@ -565,12 +565,12 @@ exports[`Documents list renders table summary only when the documents summary da
<td
class="woocommerce-table__item is-left-aligned"
>
VAT Invoice
Tax Invoice
</td>
<td
class="woocommerce-table__item is-left-aligned"
>
VAT invoice without proper period dates
Tax invoice without proper period dates
</td>
<td
class="woocommerce-table__item is-numeric"
Expand Down
2 changes: 1 addition & 1 deletion client/documents/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import { __ } from '@wordpress/i18n';

// Mapping of transaction types to display string.
export const displayType = {
vat_invoice: __( 'VAT Invoice', 'woocommerce-payments' ),
vat_invoice: __( 'Tax Invoice', 'woocommerce-payments' ),
};

0 comments on commit 8670a4e

Please sign in to comment.