Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.57k stars 2.92k forks source link

Fix bug with default accounts for QBD #52819

Closed ZhenjaHorbach closed 3 days ago

ZhenjaHorbach commented 5 days ago

Explanation of Change

Fix bugs with default accounts for QBD

Fixed Issues

$ https://github.com/Expensify/App/issues/52692 PROPOSAL:

Tests

  1. Navigate to Accounting
  2. Click on Export
  3. Click on "Export out-of-pocket expenses"
  4. Verify the options "Export Out-of-Pocket Expenses as" is displayed
  5. Verify on the "Export Out-of-Pocket Expenses as" page field for Account Payable account is shown and clicking leads to the Accounts payable" page
  6. Verify that The "Account payable" field should be populated by the first account payable of the list from the "Accounts payable" page.

Offline tests

  1. Navigate to Accounting
  2. Click on Export
  3. Click on "Export out-of-pocket expenses"
  4. Verify the options "Export Out-of-Pocket Expenses as" is displayed
  5. Verify on the "Export Out-of-Pocket Expenses as" page field for Account Payable account is shown and clicking leads to the Accounts payable" page
  6. Verify that The "Account payable" field should be populated by the first account payable of the list from the "Accounts payable" page.

QA Steps

  1. Navigate to Accounting
  2. Click on Export
  3. Click on "Export out-of-pocket expenses"
  4. Verify the options "Export Out-of-Pocket Expenses as" is displayed
  5. Verify on the "Export Out-of-Pocket Expenses as" page field for Account Payable account is shown and clicking leads to the Accounts payable" page
  6. Verify that The "Account payable" field should be populated by the first account payable of the list from the "Accounts payable" page.

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/d9c63c32-056a-4878-8c0a-e292dc453b53
Android: mWeb Chrome https://github.com/user-attachments/assets/9f0ccd6d-d204-4f15-a735-c2a1357f6bc1
iOS: Native https://github.com/user-attachments/assets/357ae648-5d85-4986-87a4-37f87ddfad2f
iOS: mWeb Safari https://github.com/user-attachments/assets/d445731e-9fcc-4fa9-b46c-88e2f1be6472
MacOS: Chrome / Safari https://github.com/user-attachments/assets/912ed070-8d1c-4f7c-9052-444e13981ca7
MacOS: Desktop https://github.com/user-attachments/assets/3005357f-9a94-48d2-96bf-985c45345b65
melvin-bot[bot] commented 5 days ago

@hoangzinh 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]

ZhenjaHorbach commented 5 days ago

@hoangzinh

PR is ready ! Plus I made a few extra changes for nonReimbursableAccount just in case To avoid similar issues

hoangzinh commented 4 days ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/04d309c3-c45b-4cea-8f17-30f24b8930ae
Android: mWeb Chrome https://github.com/user-attachments/assets/52c51e12-cead-419d-a2c8-0d869d21150d
iOS: Native https://github.com/user-attachments/assets/32b6c79e-74a8-4b95-b6d5-6fd646ace8cb
iOS: mWeb Safari https://github.com/user-attachments/assets/67bbae6f-9872-4c1f-9dc5-2689a5380ba2
MacOS: Chrome / Safari https://github.com/user-attachments/assets/9c31eb14-9e62-40a1-a245-95c7f437b9e3
MacOS: Desktop https://github.com/user-attachments/assets/0754f380-9f75-4b4b-8e08-9679255dcdc7
hoangzinh commented 4 days ago

@ZhenjaHorbach do you mind to invite me to your testing QBD workspace again? I just setup QBD and it seems all accounts are empty :(. My email is: toiyeucuocsong99+50@gmail.com

ZhenjaHorbach commented 4 days ago

toiyeucuocsong99+50@gmail.com

Added !

melvin-bot[bot] commented 4 days ago

We did not find an internal engineer to review this PR, trying to assign a random engineer to #52692 as well as to this PR... Please reach out for help on Slack if no one gets assigned!

ZhenjaHorbach commented 3 days ago

@lakchote All yours !

lakchote commented 3 days ago

@ZhenjaHorbach is Accounts payable an actual available account when you click on Export out-of-pocket expenses > Accounts payable? It's a bit confusing if that's the case since you have pa-1, pa-2, pa-3 as accounts available.

ZhenjaHorbach commented 3 days ago

@ZhenjaHorbach is Accounts payable an actual available account when you click on Export out-of-pocket expenses > Accounts payable? It's a bit confusing if that's the case since you have pa-1, pa-2, pa-3 as accounts available.

Yes This is an available account And as far as I remember Accounts payable is added by default When pa-1, pa-2, pa-3 I added by myself

lakchote commented 3 days ago

@ZhenjaHorbach is Accounts payable an actual available account when you click on Export out-of-pocket expenses > Accounts payable? It's a bit confusing if that's the case since you have pa-1, pa-2, pa-3 as accounts available.

Yes This is an available account And as far as I remember Accounts payable is added by default When pa-1, pa-2, pa-3 I added by myself

Got it, thanks. LGTM

OSBotify commented 3 days ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

github-actions[bot] commented 3 days ago

🚀 Deployed to staging by https://github.com/lakchote in version: 9.0.66-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 success ✅
🍎🔄 iOS HybridApp 🍎🔄 success ✅