New Feature: "When to export" selector for auto-sync for Quickbooks Online#58980
New Feature: "When to export" selector for auto-sync for Quickbooks Online#58980techievivek merged 11 commits intoExpensify:mainfrom
Conversation
| const accountingMethod = config?.accountingMethod ?? COMMON_CONST.INTEGRATIONS.ACCOUNTING_METHOD.CASH; | ||
| const data: MenuListItem[] = Object.values(COMMON_CONST.INTEGRATIONS.ACCOUNTING_METHOD).map((accountingMethodType) => ({ | ||
| value: accountingMethodType, | ||
| text: translate(`workspace.accountingMethods.values.${accountingMethodType}` as TranslationPaths), |
There was a problem hiding this comment.
note to self: update this import
|
@hungvu193 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Fixing, the tests now |
|
@hungvu193 I think @suneox will review this since he was the reviewer of the original PR |
|
@twilight2294 Please fix the ESLint check and typecheck |
|
Looking tomorrow |
|
@suneox PR ready for your review |
|
bump for review @suneox |
I missed this one from the K2 so I'll prioritize it today. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-10.at.21.14.58.mp4Android: mWeb ChromeScreen.Recording.2025-04-10.at.21.20.05.mp4iOS: NativeScreen.Recording.2025-04-10.at.21.56.51.mp4iOS: mWeb SafariScreen.Recording.2025-04-10.at.21.46.57.mp4MacOS: Chrome / SafariScreen.Recording.2025-04-10.at.21.04.09.mp4MacOS: DesktopScreen.Recording.2025-04-10.at.21.17.39.mp4 |
|
@techievivek can you please check and merge this one |
|
@twilight2294 Do you mind resolving the conflicts? Thanks. |
| [CONST.QUICKBOOKS_REIMBURSABLE_ACCOUNT_TYPE.CHECK]: 'To use check export, set up a bank account in QuickBooks Online', | ||
| }, | ||
| noAccountsFound: 'No accounts found', | ||
| noAccountsFoundDescription: 'Add the account in QuickBooks Online and sync the connection again.', |
There was a problem hiding this comment.
This already exists on 3192.
|
@twilight2294 Friendly bump on fixing the linting errors. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/techievivek in version: 9.1.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.29-10 🚀
|
Explanation of Change
We need to build the same selector we made for NetSuite in #51512, but for Quickbooks Online (QBO).
The selection should be saved under the property accountingMethod in the QBO config object.
If there is no accountingMethod property set in the QBO config, the selector should default to CASH
Fixed Issues
$ #57522
$ #58501
$ #58429
PROPOSAL: #57522 (comment)
Tests
Same as Qa
Offline tests
Same as QA
QA Steps
Verify you see a
Auto Syncmenu descriptionVerify that the toggle is visible, verify that when the toggle is enabeld we see a new menu item to select
Verify that you see 2 options CASH and accural.
Verify that the newly selected option is showed on the auto-sync page.
Note
If you see #58501 happening again, please put a internal label on the issue, as it is a BE bug.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen_recording_20250307_152728.mp4
Android: mWeb Chrome
Screen_recording_20250307_153144.mp4
iOS: Native
Simulator.Screen.Recording.-.Expensify.testing.-.2025-03-07.at.14.57.40.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.Expensify.testing.-.2025-03-07.at.14.59.59.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-03-07.at.2.53.30.PM.mov
MacOS: Desktop
Screen.Recording.2025-03-07.at.3.01.01.PM.mov