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

Xero - Export button is showing in report details page for Admin, but not for Employee #45590

Closed
6 tasks done
izarutskaya opened this issue Jul 17, 2024 · 9 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2

Comments

@izarutskaya
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.8-1
Reproducible in staging?: Y
Reproducible in production?: New feature
Found when validating PR : #44170
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • Admin and employee are in the same workspace.
  • Workspace is connected to Xero.
  1. Go to staging.new.expensify.com
  2. [Employee] Submit an expense in the workspace chat.
  3. [Admin] Go to workspace chat with employee.
  4. [Admin] Click on the expense preview.
  5. [Admin] Pay elsewhere the report.
  6. [Admin and employee] Note that there is Xero action button in the header.
  7. [Admin and employee] Click on the report header.

Expected Result:

There should be consistency in showing Export button in report details page for both admin and employee.

Actual Result:

Export button is showing in report details page for Admin, but not for Employee.

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

Bug6544826_1721203779570.20240717_160308.mp4

View all open jobs on GitHub

@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

Triggered auto assignment to @rlinoz (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Jul 17, 2024

Triggered auto assignment to @zanyrenney (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.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 17, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@kosmydel
Copy link
Contributor

kosmydel commented Jul 17, 2024

I'm not sure, but this PR might fix it: #45577

@hungvu193
Copy link
Contributor

I think it's expected that we only show export button with admin or manager.

@lakchote
Copy link
Contributor

I think it's expected that we only show export button with admin or manager.

Exactly. We should only show the export button if it's an admin or manager.

cc @trjExpensify

Currently we're showing the export option for both (Admin/Manager and Member) if we're in a QBO setup which is wrong.

My PR #45577 solves that so it only shows the export to integration button if it's an Admin/Manager, just like the backend expects it.

@rlinoz
Copy link
Contributor

rlinoz commented Jul 17, 2024

Cool, so we can close this one as working as expected.

@rlinoz rlinoz removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 17, 2024
@rlinoz rlinoz closed this as completed Jul 17, 2024
@trjExpensify
Copy link
Contributor

Moving over to the PR for that Q. 👀

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. Engineering Hourly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants