Skip to content
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

[$250] QBO-If "Export company card expenses as" is set to "Vendor bill", Locations toggle is locked #50112

Closed
1 of 6 tasks
lanitochka17 opened this issue Oct 2, 2024 · 26 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 2, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.43-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5027294
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch app
  2. Go to workspace settings
  3. Connect QBO
  4. Tap export
  5. Set export company card expense to "vendor bills"
  6. Set export out of pocket expense to "journal entry"
  7. Navite to import
  8. Tap locations -- import

Expected Result:

If "Export company card expenses as" is set to "Vendor bill", the Locations toggle must not be locked

Actual Result:

If "Export company card expenses as" is set to "Vendor bill", the Locations toggle is locked

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6622536_1727898934788.Screenrecorder-2024-10-03-01-15-29-585_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021843661642289072627
  • Upwork Job ID: 1843661642289072627
  • Last Price Increase: 2024-10-15
Issue OwnerCurrent Issue Owner: @shubham1206agra
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@sonialiap FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 2, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

If "Export company card expenses as" is set to "Vendor bill", the Locations toggle is locked

What is the root cause of that problem?

  • The condition canImportLocation is incorrect:

const canImportLocation =
qboConfig?.reimbursableExpensesExportDestination === CONST.QUICKBOOKS_REIMBURSABLE_ACCOUNT_TYPE.JOURNAL_ENTRY &&
qboConfig?.nonReimbursableExpensesExportDestination !== CONST.QUICKBOOKS_NON_REIMBURSABLE_EXPORT_ACCOUNT_TYPE.VENDOR_BILL;

What changes do you think we should make in order to solve the problem?

  • It should be:
    const canImportLocation =
        qboConfig?.reimbursableExpensesExportDestination === CONST.QUICKBOOKS_REIMBURSABLE_ACCOUNT_TYPE.JOURNAL_ENTRY &&
        qboConfig?.nonReimbursableExpensesExportDestination === CONST.QUICKBOOKS_NON_REIMBURSABLE_EXPORT_ACCOUNT_TYPE.VENDOR_BILL;

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Oct 7, 2024
@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021843661642289072627

@melvin-bot melvin-bot bot changed the title QBO-If "Export company card expenses as" is set to "Vendor bill", Locations toggle is locked [$250] QBO-If "Export company card expenses as" is set to "Vendor bill", Locations toggle is locked Oct 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External)

@melvin-bot melvin-bot bot removed the Overdue label Oct 8, 2024
@allgandalf
Copy link
Contributor

allgandalf commented Oct 8, 2024

Edited by proposal-police: This proposal was edited at 2024-10-08 14:55:26 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

Location toggle is locked even when it is allowed on the BE.

What is the root cause of that problem?

We block the location toggle for vendor bills :

const canImportLocation =
qboConfig?.reimbursableExpensesExportDestination === CONST.QUICKBOOKS_REIMBURSABLE_ACCOUNT_TYPE.JOURNAL_ENTRY &&
qboConfig?.nonReimbursableExpensesExportDestination !== CONST.QUICKBOOKS_NON_REIMBURSABLE_EXPORT_ACCOUNT_TYPE.VENDOR_BILL;

What changes do you think we should make in order to solve the problem?

If the expected result is to allow the toggle then remove the second condition:

 const canImportLocation = 
     qboConfig?.reimbursableExpensesExportDestination === CONST.QUICKBOOKS_REIMBURSABLE_ACCOUNT_TYPE.JOURNAL_ENTRY 

What alternative solutions did you explore? (Optional)

@allgandalf
Copy link
Contributor

Note

I checked the API response when we set it to vendor bill and the BE accepts this case:

Screenshot 2024-10-08 at 8 22 22 PM

@shubham1206agra
Copy link
Contributor

@allgandalf Can you check the condition on OldDot too?

@allgandalf
Copy link
Contributor

yeah i too had a double guess here, let me check

@allgandalf
Copy link
Contributor

allgandalf commented Oct 8, 2024

Do you know where we check imports on OD?

Where's import?
Screenshot 2024-10-08 at 8 38 15 PM

@allgandalf
Copy link
Contributor

Not allowed in OD:

Screenshot 2024-10-08 at 8 52 39 PM

@shubham1206agra
Copy link
Contributor

@sonialiap Which behavior is correct here?

@hungvu193
Copy link
Contributor

This seems not an issue according to this docs.

cc @hayata-suenaga since I think you implemented this feature (#41638).

Copy link

melvin-bot bot commented Oct 11, 2024

@sonialiap, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Oct 11, 2024
@shubham1206agra
Copy link
Contributor

We are waiting for @hayata-suenaga to respond.

@melvin-bot melvin-bot bot removed the Overdue label Oct 12, 2024
@paultsimura
Copy link
Contributor

@hayata-suenaga doesn't work at Expensify anymore. I doubt you'll get a response for this 🤔

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
@garrettmknight
Copy link
Contributor

@zanyrenney might be able to help out!

@JmillsExpensify
Copy link

Pretty sure that vendor bills support locations, so would love to hear from @zanyrenney on which is right.

@allgandalf
Copy link
Contributor

@JmillsExpensify noting here that BE ALLOWS the toggle, so we are only restricting it on the FE. So i guess you're right here:

image

@zanyrenney
Copy link
Contributor

zanyrenney commented Oct 15, 2024

Hi! This is working as expected and is not a bug for QBO on Collect Workspaces.

Vendor Bills only support importing Locations as a Report Field on QBO. Since we did not build report fields for Collect (we said this was a control feature), Locations on Vendor Bills should be locked.

Pretty sure that vendor bills support locations, so would love to hear from @zanyrenney on which is right.

They do but only as a report field cc @JmillsExpensify

I could have sworn someone was taking on Report Fields as a project for QBO/Xero. I saw a pre-design about it in Control.

@zanyrenney
Copy link
Contributor

zanyrenney commented Oct 15, 2024

Let me get a bit more info from the doc and have a look in Slack for that pre-design.

Hope the answer above helps @shubham1206agra @hungvu193 !

@zanyrenney
Copy link
Contributor

2024-10-15_15-03-20

From the Design Doc!

@zanyrenney
Copy link
Contributor

Here is the pre-design on Report Fields support for QBO / Xero that I thought would build this added "Control" functionality atop this QBO project.

Happy to help get this added if not though! cc @dylanexpensify

Copy link

melvin-bot bot commented Oct 15, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@zanyrenney
Copy link
Contributor

We can close this cc @sonialiap

Copy link

melvin-bot bot commented Oct 15, 2024

@sonialiap, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
Archived in project
Development

No branches or pull requests

10 participants