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

[Due for payment 2025-02-27] [$250] Company cards - Netsuite - Wrong account name in preview for journal entries accounts #55753

Closed
1 of 8 tasks
vincdargento opened this issue Jan 24, 2025 · 27 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 External Added to denote the issue can be worked on by a contributor

Comments

@vincdargento
Copy link

vincdargento commented Jan 24, 2025

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.89-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+ccardfeed@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Windows 10 / Chrome
App Component: Workspace Settings

Action Performed:

Pre-requisite:

  • User must have assigned a few company cards
  • User have enable Accounting and connected to Netsuite
  1. Go to Workspace settings > Company cards
  2. Click on an assigned card
  3. Click on NetSuite vendor bills export
  4. Click on "export option" highlighted text in the subheader
  5. Click on "Export company card expenses as:" field
  6. Click on "Export as:"
  7. Select Journal entries
  8. Go back to card details
  9. Click on NetSuite journal entries export
  10. Click on a different account, note the displayed name
  11. Verify the selected account in the preview

Expected Result:

The name of the journal entry account displayed in the preview should be the same as in the list

Actual Result:

The name of the journal entry account displayed in the preview is not the same as in the list

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

bandicam.2025-01-24.13-38-07-225.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021885426285334547544
  • Upwork Job ID: 1885426285334547544
  • Last Price Increase: 2025-01-31
  • Automatic offers:
    • shubham1206agra | Contributor | 106076552
Issue OwnerCurrent Issue Owner: @abekkala
@vincdargento vincdargento added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Jan 24, 2025
Copy link

melvin-bot bot commented Jan 24, 2025

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

@isagoico
Copy link

@joekaufmanexpensify We found this issue when writing the TestRail regression steps for Company Cards

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Jan 24, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-01-24 21:37:47 UTC.

Proposal

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

Company cards - Netsuite - Wrong account name in preview for journal entries accounts

What is the root cause of that problem?

In

function getExportMenuItem(

We accidentally override title in this case shown below

title = companyCard?.nameValuePairs?.netsuite_export_payable_account ?? data.find((exportPayable) => exportPayable.isSelected)?.text;

Which causes the wrong account name in preview.

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

Remove

title = companyCard?.nameValuePairs?.netsuite_export_payable_account ?? data.find((exportPayable) => exportPayable.isSelected)?.text;

to fix the issue.

Result

Screen.Recording.2025-01-25.at.3.09.45.AM.mov

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA since this is a UI bug

What alternative solutions did you explore? (Optional)

Copy link
Contributor

⚠️ Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@joekaufmanexpensify
Copy link
Contributor

Agreed, this seems like a bug.

@melvin-bot melvin-bot bot added the Overdue label Jan 27, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

Copy link

melvin-bot bot commented Jan 30, 2025

@abekkala Eep! 4 days overdue now. Issues have feelings too...

@abekkala abekkala added the External Added to denote the issue can be worked on by a contributor label Jan 31, 2025
@melvin-bot melvin-bot bot changed the title Company cards - Netsuite - Wrong account name in preview for journal entries accounts [$250] Company cards - Netsuite - Wrong account name in preview for journal entries accounts Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

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

@melvin-bot melvin-bot bot removed the Overdue label Jan 31, 2025
@mollfpr
Copy link
Contributor

mollfpr commented Feb 3, 2025

I agree with @shubham1206agra proposal. We probably forget to remove that line in this PR #52575.

🎀 👀 🎀 C+ reviewed!

Copy link

melvin-bot bot commented Feb 3, 2025

Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented Feb 7, 2025

@abekkala @lakchote @mollfpr this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Feb 7, 2025
Copy link

melvin-bot bot commented Feb 7, 2025

@abekkala, @lakchote, @mollfpr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@mollfpr
Copy link
Contributor

mollfpr commented Feb 10, 2025

Friendly bump @lakchote 👀

@melvin-bot melvin-bot bot removed the Overdue label Feb 10, 2025
@lakchote
Copy link
Contributor

@shubham1206agra's proposal LGTM.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 11, 2025
@abekkala
Copy link
Contributor

@shubham1206agra do you have a timeframe on the PR?

Copy link

melvin-bot bot commented Feb 14, 2025

@abekkala, @lakchote, @mollfpr, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Feb 14, 2025
@mollfpr
Copy link
Contributor

mollfpr commented Feb 14, 2025

@shubham1206agra Any update on the PR?

@melvin-bot melvin-bot bot removed the Overdue label Feb 14, 2025
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 16, 2025
@mollfpr mollfpr removed their assignment Feb 18, 2025
@mollfpr
Copy link
Contributor

mollfpr commented Feb 18, 2025

@abekkala @lakchote Please assign @hungvu193 to take over the C+ 🙏

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 20, 2025
@melvin-bot melvin-bot bot changed the title [$250] Company cards - Netsuite - Wrong account name in preview for journal entries accounts [Due for payment 2025-02-27] [$250] Company cards - Netsuite - Wrong account name in preview for journal entries accounts Feb 20, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 20, 2025
Copy link

melvin-bot bot commented Feb 20, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Feb 20, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.1-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-02-27. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Feb 20, 2025

@hungvu193 / @shubham1206agra @abekkala @hungvu193 / @shubham1206agra The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@abekkala
Copy link
Contributor

PAYMENT SUMMARY FOR FEB 27

  • Fix: @shubham1206agra [$250, if no regressions] payment via NewDot
  • PR Review: @hungvu193 [$250, if no regressions] payment via NewDot
    please complete checklist

@hungvu193
Copy link
Contributor

hungvu193 commented Feb 25, 2025

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: https://github.com/Expensify/App/pull/52180/files#r1969198462

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue: https://github.com/Expensify/Expensify/issues/474110

Regression Test Proposal

Precondition:

  • User must have company cards
  • User must have workspace that connected to Netsuite

Test:

  1. Go to Workspace settings > Company cards.
  2. Click on an assigned card.
  3. Click on NetSuite vendor bills export.
  4. Click on "export option" highlighted text in the subheader.
  5. Click on "Export company card expenses as:" field.
  6. Click on "Export as:".
  7. Select Journal entries.
  8. Go back to card details.
  9. Click on NetSuite journal entries export.
  10. Click on a different account, note the displayed name.
  11. Verify that the name of the journal entry account displayed in the preview should be the same as in the list.

Do we agree 👍 or 👎

@abekkala
Copy link
Contributor

PAYMENT SUMMARY FOR FEB 27

  • Fix: @shubham1206agra [$250, if no regressions] payment via NewDot
  • PR Review: @hungvu193 [$250, if no regressions] payment via NewDot

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 26, 2025
@github-project-automation github-project-automation bot moved this from HIGH to DONE in [#whatsnext] #retain Feb 27, 2025
@garrettmknight
Copy link
Contributor

$250 approved fro @hungvu193

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 External Added to denote the issue can be worked on by a contributor
Projects
Status: DONE
Development

No branches or pull requests

9 participants