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

[Hold for #30721][$500] IOU - After creating a manual Split Bill, the merchant, date and category are not saved #31781

Closed
5 of 6 tasks
izarutskaya opened this issue Nov 23, 2023 · 16 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Nov 23, 2023

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: v1.4.2-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:

  1. Open New Expensify app
  2. Navigate to or create a Workspace Chat
  3. In Compose Box, in the action menu, click split bill
  4. Complete the Split Bill by filling in any data in the Date, Merchant, Category fields
  5. Navigate to the description of the created IOU

Expected Result:

Once a manual split bill has been created, all data entered must be saved.

Actual Result:

After creating a manual Split Bill, the merchant, date and category on the description page are not saved

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

Bug6288164_1700720561920.Recording__763.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019c592d650af13034
  • Upwork Job ID: 1727653495276339200
  • Last Price Increase: 2023-11-30
@izarutskaya izarutskaya 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 Nov 23, 2023
@melvin-bot melvin-bot bot changed the title IOU - After creating a manual Split Bill, the merchant, date and category are not saved [$500] IOU - After creating a manual Split Bill, the merchant, date and category are not saved Nov 23, 2023
Copy link

melvin-bot bot commented Nov 23, 2023

Job added to Upwork: https://www.upwork.com/jobs/~019c592d650af13034

Copy link

melvin-bot bot commented Nov 23, 2023

Triggered auto assignment to @kadiealexander (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 Nov 23, 2023
Copy link

melvin-bot bot commented Nov 23, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Nov 23, 2023

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Nov 23, 2023

Proposal

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

After creating a manual Split Bill, the merchant, date and category on the description page are not saved

What is the root cause of that problem?

  1. The back-end is not returning the transaction data, so the data is not displayed
  2. For merchant field, when splitting bill here, we're not using the merchant and date field from the IOU to create the transaction. So even if we edit merchant and date in offline mode, they will not be saved.

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

  1. Fix back-end to return proper transaction data
  2. User merchant and date field from the iou when creating transaction when splitting bill (IOU.splitBill, IOU.splitBillAndOpenReport, ...), both to call back-end endpoint and in optimistic data

What alternative solutions did you explore? (Optional)

In 2, if we don't allow date and merchant field in splitting bill, we should hide those fields in the split bill flow

@dummy-1111
Copy link
Contributor

Proposal

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

When creating a manual split bill, the merchant, date, and category are not saved

What is the root cause of that problem?

IOU.startSplitBill(
selectedParticipants,
props.currentUserPersonalDetails.login,
props.currentUserPersonalDetails.accountID,
trimmedComment,
receipt,
existingSplitChatReportID,
);

IOU.splitBill(
selectedParticipants,
props.currentUserPersonalDetails.login,
props.currentUserPersonalDetails.accountID,
props.iou.amount,
trimmedComment,
props.iou.currency,
props.iou.category,
reportID,
);

IOU.splitBillAndOpenReport(
selectedParticipants,
props.currentUserPersonalDetails.login,
props.currentUserPersonalDetails.accountID,
props.iou.amount,
trimmedComment,
props.iou.currency,
props.iou.category,
);

As you can see above, we don't pass these data to the API
This is the root cause

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

We need to pass merchant, created, and category data to the SplitBill and SplitBillAndOpenReport APIs

I've verified that passing merchant works fine, but category and created don't work. Backend fix might be needed as well

What alternative solutions did you explore? (Optional)

@fedirjh
Copy link
Contributor

fedirjh commented Nov 27, 2023

The merchant is being handled in #29691 -> PR (#30721)

@melvin-bot melvin-bot bot removed the Overdue label Nov 27, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Nov 27, 2023

This seems to require a backend fix to accept the other fields, date, category, and merchant. I also noticed that when the transaction is edited, the new data is reflected in the money request report but inside the IOU preview it does not update

This is the request after the edition :

Screenshot 2023-11-27 at 3 30 04 PM

This is the IOU preview after the edition of the money request :

Screenshot 2023-11-27 at 3 29 43 PM

Copy link

melvin-bot bot commented Nov 30, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 30, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Nov 30, 2023

@dukenv0307 @s-alves10 Will your proposal cover this case as well?

@dukenv0307
Copy link
Contributor

@fedirjh In this case above I think when we change description or other fields which isn't amount it should't updae in split bill because with split bill we have many child transactions.

Copy link

melvin-bot bot commented Nov 30, 2023

@fedirjh, @kadiealexander Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@kadiealexander
Copy link
Contributor

@fedirjh any thoughts?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Dec 4, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Dec 6, 2023

@kadiealexander Let's wait for #30721 to get merged.

@melvin-bot melvin-bot bot removed the Overdue label Dec 6, 2023
@kadiealexander kadiealexander changed the title [$500] IOU - After creating a manual Split Bill, the merchant, date and category are not saved [Hold for #30721][$500] IOU - After creating a manual Split Bill, the merchant, date and category are not saved Dec 7, 2023
@kadiealexander kadiealexander added the Weekly KSv2 label Dec 7, 2023
@kadiealexander kadiealexander removed Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Dec 7, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 15, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Dec 15, 2023

Still on hold for #30721

@fedirjh
Copy link
Contributor

fedirjh commented Dec 28, 2023

@kadiealexander Issue seems to be fixed with #30721, could not be reproduced. Let's close.

Screenshot 2023-12-28 at 7 18 56 AM Screenshot 2023-12-28 at 7 19 03 AM
CleanShot.2023-12-28.at.07.23.16.mp4

@melvin-bot melvin-bot bot removed the Overdue label Dec 28, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 5, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jan 8, 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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants