diff --git a/src/libs/PolicyUtils.ts b/src/libs/PolicyUtils.ts index a867a8b99cda..9c8632c78ae3 100644 --- a/src/libs/PolicyUtils.ts +++ b/src/libs/PolicyUtils.ts @@ -415,7 +415,7 @@ function getTaxByID(policy: OnyxEntry, taxID: string): TaxRate | undefin * Whether the tax rate can be deleted and disabled */ function canEditTaxRate(policy: Policy, taxID: string): boolean { - return policy.taxRates?.defaultExternalID !== taxID; + return policy.taxRates?.defaultExternalID !== taxID && policy.taxRates?.foreignTaxDefault !== taxID; } function isPolicyFeatureEnabled(policy: OnyxEntry, featureName: PolicyFeatureName): boolean { diff --git a/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx b/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx index 5e753f4f9c10..95f74d3b3f37 100644 --- a/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx +++ b/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx @@ -138,7 +138,9 @@ function WorkspaceTaxesPage({ }; const toggleAllTaxes = () => { - const taxesToSelect = taxesList.filter((tax) => tax.keyForList !== defaultExternalID && tax.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE); + const taxesToSelect = taxesList.filter( + (tax) => tax.keyForList !== defaultExternalID && tax.keyForList !== foreignTaxDefault && tax.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, + ); setSelectedTaxesIDs((prev) => { if (prev.length === taxesToSelect.length) { return [];