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

[$500] Connect BA modal is not displayed when trying to pay with Expensify in DM chat #35366

Closed
2 of 6 tasks
kavimuru opened this issue Jan 30, 2024 · 21 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review

Comments

@kavimuru
Copy link

kavimuru commented Jan 30, 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!


Issue found when executing #32959
Version Number: v1.4.33-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

Pre-requisite: Account A and account B must have USD as the default currency.

  1. As user A, create a money request with account B in DM chat.
  2. As user B, go to report and click on "Pay with Expensify".
  3. Select "Business bank account".

Expected Result:

The Connect BA modal should appear.

Actual Result:

The Connect BA modal is not displayed, error page is displayed instead.

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

Bug6360364_1706582707418.bandicam_2024-01-29_20-17-57-137.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018a3801ea0661a1ba
  • Upwork Job ID: 1752271356590907392
  • Last Price Increase: 2024-01-30
  • Automatic offers:
    • shubham1206agra | Reviewer | 28147322
    • bernhardoj | Contributor | 28147323
@kavimuru kavimuru added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 30, 2024
@melvin-bot melvin-bot bot changed the title Connect BA modal is not displayed when trying to pay with Expensify in DM chat [$500] Connect BA modal is not displayed when trying to pay with Expensify in DM chat Jan 30, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

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

Copy link

melvin-bot bot commented Jan 30, 2024

Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 30, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

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

@bernhardoj
Copy link
Contributor

bernhardoj commented Jan 30, 2024

Proposal

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

Selecting a business bank account option opens a bank account page with a not found view.

What is the root cause of that problem?

This happens after #33691 where we return early if the email or account ID is empty.

App/src/libs/actions/Policy.ts

Lines 1563 to 1564 in b4fe0c8

const employeeAccountID = iouReport.ownerAccountID;
const employeeEmail = iouReport.ownerEmail;

App/src/libs/actions/Policy.ts

Lines 1584 to 1586 in b4fe0c8

if (!employeeAccountID || !employeeEmail) {
return;
}

The value from createWorkspaceFromIOUPayment is used as the policy ID and because we return early. the value is empty.

const policyID = Policy.createWorkspaceFromIOUPayment(iouReport);
// Navigate to the bank account set up flow for this specific policy
Navigation.navigate(ROUTES.BANK_ACCOUNT_WITH_STEP_TO_OPEN.getRoute('', policyID));

In our case, the email is empty because the IOU report doesn't have ownerEmail but only ownerAccountID. It's been like that for a long time. (ref)

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

Default the email value to an empty string (and don't return early) or we can get the email from personal details login.

const employeeEmail = allPersonalDetails[employeeAccountID];

or potentially remove the usage of the email?

@lschurr
Copy link
Contributor

lschurr commented Feb 1, 2024

@shubham1206agra - Could you review this one?

@shubham1206agra
Copy link
Contributor

@lschurr I am just figuring out a way to test the proposal correctly (Finding out how to set USD as default currency).

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
@lschurr
Copy link
Contributor

lschurr commented Feb 5, 2024

Any update on this one @shubham1206agra?

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@shubham1206agra
Copy link
Contributor

I was busy with some other issues of higher priority. I just need to set up a VPN here to test the USD flow.

@shubham1206agra
Copy link
Contributor

@bernhardoj's proposal works fine.
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 6, 2024

Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Feb 7, 2024

📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 7, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @shubham1206agra

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

This issue has not been updated in over 15 days. @cead22, @lschurr, @bernhardoj, @shubham1206agra eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@shubham1206agra
Copy link
Contributor

@cead22 @lschurr Can someone start payment process here?

@lschurr
Copy link
Contributor

lschurr commented Mar 27, 2024

Thanks for the bump @shubham1206agra! It looks like the automation didn't work to prompt payments.

I just sent you a new offer @shubham1206agra - https://www.upwork.com/nx/wm/offer/new/1028761871?team=8577561

@lschurr
Copy link
Contributor

lschurr commented Mar 27, 2024

Payment summary:

@shubham1206agra
Copy link
Contributor

@lschurr I have discussed internally here. You can close this issue after payment to @bernhardoj, as I am keeping track of payment internally and will ask to pay once the issue is resolved. Just write in the payment summary that I still need to be paid.

@lschurr
Copy link
Contributor

lschurr commented Mar 27, 2024

Sounds good. I updated the payment summary and will close for now.

@lschurr lschurr closed this as completed Mar 27, 2024
@shubham1206agra
Copy link
Contributor

@lschurr You can process payment here now.

@lschurr
Copy link
Contributor

lschurr commented Apr 17, 2024

Great, paid!

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. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

5 participants