Skip to content

[Awaiting Payment 22nd June] [$250] [Pending/Scanning] Card transactions show Cash in the expense preview instead of Card #42832

Closed

Description

@m-natarajan

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.77-4
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: @kevinksullivan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1717026809436129

Action Performed:

  1. Incur a card transaction on an expensify card
  2. Add a manual request to that same report

Expected Result:

The expense preview should say Card for card transactions.

Actual Result:

The card transactions show as Cash

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

image (2)

Snip - (72) New Expensify - Google Chrome

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fc32ffbea0b1bdc5
  • Upwork Job ID: 1796170573012758528
  • Last Price Increase: 2024-05-30
  • Automatic offers:
    • Nodebrute | Contributor | 102573646
Issue OwnerCurrent Issue Owner: @parasharrajat

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on May 30, 2024
  2. melvin-bot commented on May 30, 2024

    @melvin-bot

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

  3. Nodebrute commented on May 30, 2024

    @Nodebrute
    Contributor

    Propsal

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

    card transactions show Cash in the expense preview

    What is the root cause of that problem?

    This is a feature request. We don't have any logic to show Card instead of cash

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

    We should add another check in getPreviewHeaderText in MoneyRequestPreviewContent.tsx

    const getPreviewHeaderText = (): string => {
    let message = translate('iou.cash');
    if (isDistanceRequest) {
    message = translate('common.distance');

    We can do something like this

    if(isCardTransaction){
    message = translate('iou.card')
    }
    

    We should also check for other places where we want to show card instead of cash

    If we only want to use Card for expensify card transactions then we can use check isExpensifyCardTransaction

    What alternative solutions did you explore?

    We can also do it like this here

    let message = isCardTransaction ? translate('iou.card') : translate('iou.cash')
    
  4. changed the title [-]card transactions show `Cash` in the expense preview[/-] [+][Pending/Scanning] Card transactions show `Cash` in the expense preview instead of `Card`[/+] on May 30, 2024
  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on May 30, 2024
  6. changed the title [-][Pending/Scanning] Card transactions show `Cash` in the expense preview instead of `Card`[/-] [+][$250] [Pending/Scanning] Card transactions show `Cash` in the expense preview instead of `Card`[/+] on May 30, 2024
  7. melvin-bot commented on May 30, 2024

    @melvin-bot
  8. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on May 30, 2024
  9. melvin-bot commented on May 30, 2024

    @melvin-bot

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

  10. moved this to Release 2: Summer 2024 (Aug) in [#whatsnext] #wave-collecton May 30, 2024
  11. 8 remaining items

  12. melvin-bot commented on Jun 3, 2024

    @melvin-bot

    📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
    Keep in mind: Code of Conduct | Contributing 📖

  13. parasharrajat commented on Jun 20, 2024

    @parasharrajat
    Member

    PR was deployed 5 days back on PROD. Not sure why the status was not updated here.

  14. Nodebrute commented on Jun 23, 2024

    @Nodebrute
    Contributor

    @grgia The PR went into production on June 15th. The payment was due on June 22nd. Unfortunately, this issue missed the automatic payment date. Kindly issue the payment.

  15. changed the title [-][$250] [Pending/Scanning] Card transactions show `Cash` in the expense preview instead of `Card`[/-] [+][Awaiting Payment 22nd June] [$250] [Pending/Scanning] Card transactions show `Cash` in the expense preview instead of `Card`[/+] on Jun 24, 2024
  16. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    on Jun 24, 2024
  17. trjExpensify commented on Jun 24, 2024

    @trjExpensify
    Contributor

    Payment summary as follows:

    Regression tests for the project will be added centrally. Closing!

  18. moved this from Release 2: Summer 2024 (Aug) to Done in [#whatsnext] #wave-collecton Jun 24, 2024
  19. parasharrajat commented on Jun 29, 2024

    @parasharrajat
    Member

    Payment requested as per #42832 (comment)

  20. JmillsExpensify commented on Jul 2, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @parasharrajat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions