Add the QBO currency conversion fee account picker - #98324
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Replaces the hand-written locale files. Only en.ts is edited by hand; the rest carry a generated banner and come from scripts/generateTranslations.ts.
|
@MelvinBot review |
|
@codex review |
|
🤖 Review — this is well-structured. The new picker, action, and selector page are near-exact clones of the existing invoice-collection-account flow, tests cover the action, and all 11 locales are updated. No blocking issues. A couple of minor observations below. What I checked
Minor observations (non-blocking):
I did not run the web app for this since it needs a QBO-connected workspace and the unmerged backend to populate Reply with |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The eslint-seatbelt budget for no-unsafe-type-assertion in this file is 4, and a second per-test cast put it at 5.
Explanation of Change
When a company covers the currency conversion on a cross-border reimbursement, its bank is debited more than the reimbursement. We now export a journal entry recording that extra spend, and it needs a GL account to debit. This adds the picker that sets it, on the QBO advanced page next to the existing bill payment and invoice collections rows.
The account list is a new
expenseAccountscollection holding profit and loss accounts only. Every list QBO ships today is balance sheet accounts, which would park a fee where it never reaches the P&L.Draft because it depends on two unmerged PRs: Integration-Server #9182 produces
expenseAccountsand consumes the setting, and Auth #23645 allowlists the key so the write is accepted. Until the first lands and a policy re-syncs QBO, this picker shows its empty state, so screenshots are not worth taking yet.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/655938
PROPOSAL: N/A, internal
Tests
Offline tests
QA Steps
Same as tests. Requires a QuickBooks Online connected workspace.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Pending. The selector renders empty until Integration-Server #9182 merges and a policy syncs QBO, so these come before this leaves draft.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari