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

Expense - Add receipt placeholder is shown for admin but not employee for paid expense #41410

Closed
6 tasks done
izarutskaya opened this issue May 1, 2024 · 13 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@izarutskaya
Copy link

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: 1.4.69-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL: Applause-Internal team
Issue reported by:

Action Performed:

  1. Go to staging.new.expensify.com
  2. [Employee] Submit a manual expense in the workspace chat.
  3. [Admin] Approve and pay elsewhere the request.
  4. [Employee and admin] Go to the paid transaction thread.

Expected Result:

There should be consistency in whether the add receipt placeholder should be shown in the paid transaction thread for admin and employee.

Actual Result:

Add receipt placeholder is shown for admin but not employee for paid expense.

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

Bug6467844_1714563553245.20240501_193424.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. labels May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

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

Copy link

melvin-bot bot commented May 1, 2024

Triggered auto assignment to @miljakljajic (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 May 1, 2024
Copy link
Contributor

github-actions bot commented May 1, 2024

👋 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

@miljakljajic 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.

@izarutskaya
Copy link
Author

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

@miljakljajic
Copy link
Contributor

@amyevans does this seem like BE to you, or can I put the external label on?

@amyevans
Copy link
Contributor

amyevans commented May 1, 2024

Dev/staging:
dev

Prod:
prod

From the looks of it this was an intentional change, introduced in this PR: #37813, with the logic contained in this line:

const shouldShowReceiptEmptyState = !hasReceipt && !isInvoice && (canEditReceipt || isAdmin || isApprover);

We now show the receipt empty state if you are an admin or approver.

Versus on production the logic is:

{!hasReceipt && canEditReceipt && (
<ReceiptEmptyState
hasError={hasErrors}
onPress={() =>
Navigation.navigate(
ROUTES.MONEY_REQUEST_STEP_SCAN.getRoute(
CONST.IOU.ACTION.EDIT,
iouType,
transaction?.transactionID ?? '',
report.reportID,
Navigation.getActiveRouteWithoutParams(),
),
)
}
/>
)}

Definitely not a blocker either way. I'd like confirmation this is the expected behavior though from someone more closely involved in the Receipt Audit feature/PR @cead22 @JmillsExpensify. If it is we can close this out!

@cead22
Copy link
Contributor

cead22 commented May 1, 2024

@amyevans I think you're right and we can close this, but let's wait for Jason to confirm

@melvin-bot melvin-bot bot added the Overdue label May 3, 2024
Copy link

melvin-bot bot commented May 7, 2024

@amyevans, @miljakljajic Eep! 4 days overdue now. Issues have feelings too...

@miljakljajic
Copy link
Contributor

@JmillsExpensify - what do you think? Shall we close?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 7, 2024
Copy link

melvin-bot bot commented May 10, 2024

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

Copy link

melvin-bot bot commented May 14, 2024

@amyevans, @miljakljajic Still overdue 6 days?! Let's take care of this!

@miljakljajic
Copy link
Contributor

Closing - feel free to reopen if you feel strongly otherwise!

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2024
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 Engineering
Projects
None yet
Development

No branches or pull requests

4 participants