-
Notifications
You must be signed in to change notification settings - Fork 4k
[Payment due @mananjadhav] Add the Xero currency conversion fee account picker #98806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
madmax330
merged 21 commits into
Expensify:main
from
ishpaul777:ishpaul/672453-xero-fx-expense-account
Sep 14, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fa5e27d
Add the Xero currency conversion cost account setting
ishpaul777 1e1e421
Add the Xero currency conversion cost account selector
ishpaul777 961aebd
Show the currency conversion cost account on the Xero advanced page
ishpaul777 ab0c240
Generate translations for the Xero currency conversion cost account
ishpaul777 11555f8
Describe the Xero currency conversion cost as a spend money transaction
ishpaul777 fa7229a
Merge branch 'Expensify:main' into ishpaul/672453-xero-fx-expense-acc…
ishpaul777 5eed525
Drop the obsolete globalReimbursements beta check from the FX gate
ishpaul777 4a55c44
Merge branch 'Expensify:main' into ishpaul/672453-xero-fx-expense-acc…
ishpaul777 a45711d
Drop manual memoization and hardcoded policy ID fallback from the Xer…
ishpaul777 cda78c6
Scope getXeroExpenseAccounts to the account list and cover it with tests
ishpaul777 ffc6ae0
Cover the Xero currency conversion fee account rollback and missing p…
ishpaul777 324d0ef
Hide the currency conversion cost settings unless the workspace pays …
ishpaul777 e1b42a9
Pass the policy to the currency conversion cost gate on the Xero adva…
ishpaul777 fd26757
Let admins search the QuickBooks Online currency conversion cost acco…
ishpaul777 560798c
Let admins search the Xero currency conversion cost account list
ishpaul777 4fcac71
Merge remote-tracking branch 'upstream/main' into ishpaul/672453-xero…
ishpaul777 548569a
Drop internal service references from the currency conversion cost co…
ishpaul777 28cc28f
Rename the currency conversion cost gate hook to say what it checks
ishpaul777 5f80e94
Merge branch 'Expensify:main' into ishpaul/672453-xero-fx-expense-acc…
ishpaul777 92259ec
Include FX_EXPENSE_ACCOUNT in subscribedAdvancedSettings for QBO and …
ishpaul777 fca2cb5
Merge branch 'Expensify:main' into ishpaul/672453-xero-fx-expense-acc…
ishpaul777 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,18 @@ | ||
| import CONST from '@src/CONST'; | ||
| import type {Policy} from '@src/types/onyx'; | ||
|
|
||
| import type {OnyxEntry} from 'react-native-onyx'; | ||
|
|
||
| import usePermissions from './usePermissions'; | ||
|
|
||
| /** | ||
| * Whether the currency conversion cost settings are available for a workspace. The cost only arises when | ||
| * the workspace reimburses through Expensify, so every surface that exposes these settings gates on this. | ||
| */ | ||
| function useCanConfigureCurrencyConversionFees(policy: OnyxEntry<Policy>): boolean { | ||
| const {isBetaEnabled} = usePermissions(); | ||
|
|
||
| return isBetaEnabled(CONST.BETAS.GLOBAL_REIMBURSEMENT_FX) && policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_YES; | ||
| } | ||
|
|
||
| export default useCanConfigureCurrencyConversionFees; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.