Skip to content

[PAID] [$250] [Violations] Distance - Incorrect error message when distance amount is changed to smaller amount #41401

Closed

Description

@izarutskaya

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: 1.4.69-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit a distance expense.
  4. Go to transaction thread.
  5. Modify the amount to smaller than the calculated amount.

Expected Result:

The error message should correctly reflect the difference in the new amount.
It should follow Old Dot style where it shows "Expense amount differs from the calculated distance amount",

Actual Result:

When the distance amount is manually changed to the lower amount, the error message is "Amount greater than scanned receipt", which is generic and untrue.

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

Bug6467703_1714556398274.20240501_173617.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01888703ab728af885
  • Upwork Job ID: 1786179879242878976
  • Last Price Increase: 2024-05-02
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @strepanier03

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on May 1, 2024
  2. melvin-bot commented on May 1, 2024

    @melvin-bot

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

  3. melvin-bot commented on May 1, 2024

    @melvin-bot

    Triggered auto assignment to @strepanier03 (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.

  4. github-actions commented on May 1, 2024

    @github-actions
    Contributor

    👋 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.
  5. izarutskaya commented on May 1, 2024

    @izarutskaya
    Author

    Production
    image (14)

  6. izarutskaya commented on May 1, 2024

    @izarutskaya
    Author

    @strepanier03 I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

  7. izarutskaya commented on May 1, 2024

    @izarutskaya
    Author

    We think this issue might be related to the #collect project.

  8. neonbhai commented on May 1, 2024

    @neonbhai
    Contributor

    Proposal

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

    Incorrect error message when distance amount is changed to smaller amount

    What is the root cause of that problem?

    The modifiedAmount violation message is worded differently

    modifiedAmount: 'Amount greater than scanned receipt',

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

    We will change the modifiedAmount violation to the OldDot style message: Expense amount differs from the calculated distance amount

    modifiedAmount: 'Amount greater than scanned receipt',

    modifiedAmount: 'Expense amount differs from the calculated distance amount'

    we will also change es.ts with the spanish translation

  9. 62 remaining items

  10. strepanier03 commented on Jul 24, 2024

    @strepanier03
    Contributor

    @Krishna2323 - I sent you an offer via Upwork, I'll keep an eye out for the acceptance notification to finish up.

    @sobitneupane - I'll check in later for the checklist and once it's done I'll post the payment summary. Thanks!

  11. strepanier03 commented on Jul 24, 2024

    @strepanier03
    Contributor

    Saw you accepted so I paid and closed the contract @Krishna2323, thanks!

  12. melvin-bot commented on Jul 24, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@strepanier03)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1786179879242878976/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  13. strepanier03 commented on Jul 26, 2024

    @strepanier03
    Contributor

    @sobitneupane - Gentle bump on the checklist when you get a chance.

  14. sobitneupane commented on Jul 29, 2024

    @sobitneupane
    Contributor

    BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

    • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

    #37813

    • [@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:

    Not Required.

    • [@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

    Not Required.

    • [@sobitneupane] Determine if we should create a regression test for this bug.

    Yes.

    • [@sobitneupane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  15. sobitneupane commented on Jul 29, 2024

    @sobitneupane
    Contributor

    Regression Test Proposal

    1. Go to Submit expense > Scan > Add valid receipt > Select workspace > Submit
    2. Wait for scanning to complete, once completed edit the amount to a higher value
    3. Verify Amount greater than scanned receipt error appears below amount field
    4. Go to Submit expense > Distance > Select 2 waypoints > Select workspace > Submit
    5. Open transaction page > Wait for amount to be calculated > Edit the amount to higher value
    6. Verify Amount differs from calculated distance error appears below amount field

    Do we agree 👍 or 👎

  16. strepanier03 commented on Jul 29, 2024

    @strepanier03
    Contributor

    Payment Summary

    @JmillsExpensify - One payment request incoming.

  17. JmillsExpensify commented on Jul 29, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @sobitneupane

  18. strepanier03 commented on Jul 30, 2024

    @strepanier03
    Contributor

    Thanks all, closing now.

  19. changed the title [-][HOLD for payment 2024-07-24] [$250] [Violations] Distance - Incorrect error message when distance amount is changed to smaller amount[/-] [+][PAID] [$250] [Violations] Distance - Incorrect error message when distance amount is changed to smaller amount[/+] on Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternalHelp Wanted

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions