You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IOU - User B can't request money to user A inside the IOU report user A created #28816
For an IOU report created, the ownerAccountID is the requestor and the participantIDs are the requested people.
In this case, for User B, they are the only participant and removing the current user that is user B leaves no participants and this here
@mountiny - I'm headed OOO from today - I checked the PR and it looks like no reviewer payment is due here. Neither was it reported so I believe there is no BZ action to be taken here? If so, then please can you close or unassign me from this issue?
Activity
melvin-bot commentedon Oct 4, 2023
Triggered auto assignment to @sophiepintoraetz (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 4, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)c3024 commentedon Oct 4, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
User B is not shown "Request Money" option in an IOU report of User A's request for money from B
What is the root cause of that problem?
Here we remove the current user from the participants
App/src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Lines 147 to 150 in ab821e5
For an IOU report created, the
ownerAccountIDis the requestor and theparticipantIDs are the requested people.In this case, for User B, they are the only participant and removing the current user that is user B leaves no participants and this here
App/src/libs/ReportUtils.js
Lines 3380 to 3386 in ab821e5
does not return "Request Money" option
What changes do you think we should make in order to solve the problem?
We should change this here
App/src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Line 148 in ab821e5
to something like this
What alternative solutions did you explore? (Optional)
Result
Screen.Recording.2023-10-04.at.9.14.48.PM.mov
mountiny commentedon Oct 4, 2023
This is waiting for backend PR to be deployed https://github.com/Expensify/Auth/pull/8827
sophiepintoraetz commentedon Oct 5, 2023
@mountiny - I'm headed OOO from today - I checked the PR and it looks like no reviewer payment is due here. Neither was it reported so I believe there is no BZ action to be taken here? If so, then please can you close or unassign me from this issue?
mountiny commentedon Oct 5, 2023
This is now fixed in staging, closing