-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Workspace - Manual request is created when splitting bill using FAB button #33014
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01aa50518aa43c0a7e |
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Manual request is created when splitting bill using FAB button What is the root cause of that problem?The bug is we cannot make split request with a single participant because of this line:
Since number of participants is 1 for splitting with 1 person, manual request will be made, and the request will not be split. What changes do you think we should make in order to solve the problem?We should pass separate functions for manual request and split request, like we did in the old participants selector Manual Requests are triggered with Split Requests are triggered with const goToNextStep = useCallback((isNextStepSplit = false) => {
const nextStepIOUType = isNextStepSplit ? CONST.IOU.TYPE.SPLIT : iouType;
...
} const confirmSplitRequest = useCallback(() => {
onFinish(isNextStepSplit: true);
}
onConfirmSelection={() => confirmSplitRequest()} AlternativelyWe can separate the onFinish() function to navigate to the required step using two different functions like in old Participants Selector: App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Lines 28 to 32 in 3df907c
We can separate the onFinish() function to navigate to the required step using two different function like in old Participants Selector: App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Lines 28 to 32 in 3df907c
In this change we will seperate onFinish to two functions const onFinishSplitRequest = useCallback(() => {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(CONST.IOU.TYPE.SPLIT,
transactionID, selectedReportID.current || reportID));
}, [iouType, transactionID, reportID]); const onFinishManualRequest = useCallback(() => {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(iouType, transactionID,
selectedReportID.current || reportID));
}, [iouType, transactionID, reportID]); |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Manual request is created when splitting bill using FAB button What is the root cause of that problem?The bug is we cannot make split request with a single participant because of this line:
What changes do you think we should make in order to solve the problem?
Here we don't need save length. We need to save newIouType here.
and navigate
Result Screen.Recording.2023-12-14.at.12.27.25.AM.mov |
This will be handled here |
Sounds good. Closing since this is a dupe |
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: 1.4.12-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:
Expected Result:
The bill split is created in the workspace chat
Actual Result:
Manual expense is created instead of bill split when it is done from FAB button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6312192_1702499090439.20231214_041839.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: