Skip to content

[$250] Admin unable to add unreported credit card transactions to a cardholder's existing report in NewDot without opening the report first #92519

@m-natarajan

Description

@m-natarajan

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:
Reproducible in staging?: Needs reproduction (Requires unreported credit card transactions)
Reproducible in production?: Needs reproduction
If this was caught during regression testing, add the test name, ID and link from BrowserStack:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @rairibeiro
Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Open Spend > Expenses
  2. Select the unreported company card transactions > Move to report
  3. Observe the option available is “Create report” under workspace.
  4. Now open a user’s draft report
  5. Go back to Spend > Expenses
  6. Select the unreported company card transactions again > Move to report
  7. Observe the draft report you opened in Moving files and folders a little #4 now appears.

Expected Result:

The admin shouldn't have to open the draft report first in order to move the transactions to the user's draft report.

From @luacmartins:

It seems like that report destination list uses ONYXKEYS.DERIVED.OUTSTANDING_REPORTS_BY_POLICY_ID which is only computed from live Onyx reports. Search sends those in the snapshot, so the user probably doesn't have that report in live Onyx until you open it

I don't know when we started using ONYXKEYS.DERIVED.OUTSTANDING_REPORTS_BY_POLICY_ID but at least for Search, it should consider snapshot data

Actual Result:

The admin has to open the draft report first to then be able to see it in the "Move to report" menu.

Workaround:

Open the draft reports first, but that's unrealistic and bad UX.

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

The screenshot for the issue is in Slack thread

View all open jobs on GitHub

Upwork Automation - Do Not Edit

Metadata

Metadata

Assignees

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type
No fields configured for issues without a type.

Projects

Status
No status
Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions