forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Expensify/App into feat/#Ex…
…pensify#23220-bidirectional-pagination
- Loading branch information
Showing
5 changed files
with
151 additions
and
22 deletions.
There are no files selected for viewing
19 changes: 17 additions & 2 deletions
19
docs/articles/expensify-classic/billing-and-subscriptions/Tax-Exempt.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
--- | ||
title: Tax Exempt | ||
description: Tax Exempt | ||
description: Tax-exempt status in Expensify for organizations recognized by the IRS or local tax authorities. | ||
--- | ||
## Resource Coming Soon! | ||
# Overview | ||
If your organization is recognized by the IRS or other local tax authorities as tax-exempt, that means you don’t need to pay any tax on your Expensify monthly bill. Please follow these instructions to request tax-exempt status. | ||
# How to request tax-exempt status in Expensify | ||
1. Go to **Settings > Account > Payments**. | ||
1. Click on the option that says **Request Tax-Exempt Status**. | ||
1. After you've requested tax-exempt status, Concierge (our support service) will start a conversation with you. They will ask you to upload a PDF of your tax-exempt documentation. This document should include your VAT number (or "RUT" in Chile). You can use one of the following documents: 501(c), ST-119, or a foreign tax-exempt declaration. | ||
1. Our team will review your document and let you know if we need any more information. | ||
1. Once everything is verified, we'll update your account accordingly. | ||
|
||
Once your account is marked as tax-exempt, the corresponding state tax will no longer be applied to future billing. | ||
|
||
If you need to remove your tax-exempt status, let your Account Manager know or contact Concierge. | ||
|
||
# FAQ | ||
## What happens to my past Expensify bills that incorrectly had tax added to them? | ||
Expensify can provide a refund for the tax you were charged on your previous bills. Please let your Account Manager know or contact Concierge if this is the case. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* eslint-disable es/no-nullish-coalescing-operators */ | ||
import React, {useEffect, useState} from 'react'; | ||
|
||
function getNewDotURL(url) { | ||
const urlObj = new URL(url); | ||
const paramString = urlObj.searchParams.get('param') ?? ''; | ||
const pathname = urlObj.pathname.slice(1); | ||
|
||
let params; | ||
try { | ||
params = JSON.parse(paramString); | ||
} catch { | ||
params = {}; | ||
} | ||
|
||
if (pathname === 'inbox') { | ||
return 'home'; | ||
} | ||
|
||
if (pathname === 'expenses') { | ||
return `${params.viewMode === 'charts' ? 'insights' : 'expenses'}${paramString ? `/?param=${paramString}` : ''}`; | ||
} | ||
|
||
if (pathname === 'admin_policies') { | ||
const {section} = params; | ||
return section === 'individual' ? 'individual_workspaces' : 'group_workspaces'; | ||
} | ||
|
||
if (pathname === 'policy') { | ||
const workspaceID = params.policyID || ''; | ||
const section = urlObj.hash.slice(1) || 'overview'; | ||
|
||
return `workspace/${workspaceID}/${section}`; | ||
} | ||
|
||
if (pathname === 'settings') { | ||
const {section} = params; | ||
return `settings/${section}`; | ||
} | ||
|
||
if (pathname.includes('domain')) { | ||
return pathname; | ||
} | ||
|
||
return pathname; | ||
} | ||
|
||
function getOldDotURL(url) { | ||
const urlObj = new URL(url); | ||
const pathname = urlObj.pathname; | ||
const paths = pathname.slice(1).split('/'); | ||
|
||
if (pathname === 'home') { | ||
return 'inbox'; | ||
} | ||
|
||
if (pathname === 'expenses' || pathname === 'insights') { | ||
return `expenses/${urlObj.search}`; | ||
} | ||
|
||
if (pathname === 'individual_workspaces' || pathname === 'group_workspaces') { | ||
const param = {section: pathname === 'individual_workspaces' ? 'individual' : 'group'}; | ||
return `admin_policies?param=${JSON.stringify(param)}`; | ||
} | ||
|
||
if (pathname === 'workspace') { | ||
const [, workspaceID, section] = paths; | ||
const param = {policyID: workspaceID}; | ||
return `policy/?param${JSON.stringify(param)}#${section}`; | ||
} | ||
|
||
if (pathname === 'settings') { | ||
const [, section] = paths; | ||
const param = {section}; | ||
return `settings?param=${JSON.stringify(param)}`; | ||
} | ||
|
||
return pathname; | ||
} | ||
|
||
export default function ReportScreen() { | ||
const [oldDotURL, setOldDotURL] = useState('https://www.expensify.com.dev'); | ||
|
||
useEffect(() => { | ||
setOldDotURL(`https://expensify.com.dev/${getOldDotURL(window.location.href)}`); | ||
|
||
window.addEventListener('message', (event) => { | ||
const url = event.data; | ||
// TODO: use this value to navigate to a new path | ||
// eslint-disable-next-line no-unused-vars | ||
const newDotURL = getNewDotURL(url); | ||
}); | ||
}, []); | ||
|
||
return ( | ||
<iframe | ||
style={{flex: 1}} | ||
src={oldDotURL} | ||
title="OldDot" | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters