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 payment 2024-08-28] [$250] [P2P Distance] Split - Tax rate and Tax reclaimable are empty in the transaction thread #47062

Closed
6 tasks done
IuliiaHerets opened this issue Aug 8, 2024 · 17 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 8, 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!


Version Number: v9.0.18-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Track tax is enabled.
  • Tax rate and Tax reclaimable are filled in for the distance rate.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Click + > Split expense > Distance.
  4. Split a distance expense using the distance rate from the precondition.
  5. Click on the split preview.
  6. Note that Tax rate and Tax reclaimable are filled in.
  7. Go to the transaction thread of the split expense.

Expected Result:

Tax rate and Tax reclaimable have the correct info in the transaction thread.

Actual Result:

Tax rate and Tax reclaimable are empty in the transaction thread.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6565401_1723106046705.20240808_162903.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d1cb3838667f8739
  • Upwork Job ID: 1821526714732909137
  • Last Price Increase: 2024-08-08
  • Automatic offers:
    • situchan | Reviewer | 103456830
Issue OwnerCurrent Issue Owner: @twisterdotcom
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Triggered auto assignment to @mountiny (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Aug 8, 2024

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 8, 2024
Copy link
Contributor

github-actions bot commented Aug 8, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #vip-split

@bernhardoj
Copy link
Contributor

Proposal

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

Tax code and amount is empty when creating split distance request.

What is the root cause of that problem?

When we are creating a split distance, it will call createSplitsAndOnyxData.

App/src/libs/actions/IOU.ts

Lines 5020 to 5040 in 0926267

if (iouType === CONST.IOU.TYPE.SPLIT) {
const {
splitData,
splits,
onyxData: splitOnyxData,
} = createSplitsAndOnyxData(
participants,
currentUserLogin ?? '',
currentUserAccountID,
amount,
comment,
currency,
merchant,
created,
category ?? '',
tag ?? '',
splitShares,
report?.reportID ?? '',
billable,
CONST.IOU.REQUEST_TYPE.DISTANCE,
);

However, we don't pass the tax code and amount to createSplitsAndOnyxData.

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

Pass both tax code and amount to createSplitsAndOnyxData.

const {
    splitData,
    splits,
    onyxData: splitOnyxData,
} = createSplitsAndOnyxData(
    ...,
    CONST.IOU.REQUEST_TYPE.DISTANCE,
    taxCode,
    taxAmount,
);

@twisterdotcom
Copy link
Contributor

@mountiny is this right? I think we could just assign @bernhardoj now if so. I don't think we need to block a deploy with this as it's not an error, it's just unexpected behavior from a less frequently used flow.

@twisterdotcom twisterdotcom added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed Hourly KSv2 DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels Aug 8, 2024
@melvin-bot melvin-bot bot changed the title Split distance - Tax rate and Tax reclaimable are empty in the transaction thread [$250] Split distance - Tax rate and Tax reclaimable are empty in the transaction thread Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d1cb3838667f8739

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

melvin-bot bot commented Aug 8, 2024

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

@situchan
Copy link
Contributor

situchan commented Aug 8, 2024

@bernhardoj's proposal looks good.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Aug 8, 2024

Current assignee @mountiny is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

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

mountiny commented Aug 8, 2024

Sounds good

Copy link

melvin-bot bot commented Aug 8, 2024

📣 @situchan 🎉 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

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

PR is ready

cc: @situchan

@neil-marcellini neil-marcellini changed the title [$250] Split distance - Tax rate and Tax reclaimable are empty in the transaction thread [$250] [P2P Distance] Split - Tax rate and Tax reclaimable are empty in the transaction thread Aug 13, 2024
@bernhardoj
Copy link
Contributor

PR is deployed to prod a week ago. This should be ready for payment.

Requested in ND.

@mountiny mountiny changed the title [$250] [P2P Distance] Split - Tax rate and Tax reclaimable are empty in the transaction thread [Hold for payment 2024-08-28] [$250] [P2P Distance] Split - Tax rate and Tax reclaimable are empty in the transaction thread Aug 28, 2024
@mountiny mountiny added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Weekly KSv2 labels Aug 28, 2024
@JmillsExpensify
Copy link

Awaiting payment summary

@twisterdotcom
Copy link
Contributor

Payment Summary:

@JmillsExpensify
Copy link

$250 approved for @bernhardoj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants