Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.36k stars 2.79k forks source link

[HOLD for payment 2024-08-14] [$250] Customers and Projects have option as `Sage Intacct Employee Default` #45823

Closed m-natarajan closed 1 month ago

m-natarajan commented 2 months ago

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: 9.0.10-2 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: @sakluger Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1721402815163979

Action Performed:

Pre-testing requirement: Make sure that your test account is on the intacctOnNewExpensify beta

  1. Open any workspace settings
  2. Enable accounting
  3. Connect to Intacct
  4. Click on Import

Expected Result:

Customers and Projects dimensions should have Tag and Report field options only; Employee Default should not be an option

Actual Result:

Sage Intacct Employee Default shows as an option for Customers and Projects dimensions

NOTE: For me it projects is showing as Tags

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

image (6) Snip - (3) New Expensify - Google Chrome

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fea203f70b955c11
  • Upwork Job ID: 1815806282266209115
  • Last Price Increase: 2024-07-23
Issue OwnerCurrent Issue Owner: @stephanieelliott
melvin-bot[bot] commented 2 months ago

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

stephanieelliott commented 2 months ago

Updated the issue body to be a bit more clear -- the Customer and Project dimensions should show the Report Field and Tag options ONLY; Employee Default should not show as an option for these dimensions and needs to be removed.

melvin-bot[bot] commented 2 months ago

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

melvin-bot[bot] commented 2 months ago

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

dominictb commented 2 months ago

Proposal

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

Sage Intacct Employee Default shows as an option for Customers and Projects dimensions

What is the root cause of that problem?

After connecting to Sage intacct, BE returns Employee Default for Customer and Project

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

  1. We should fix BE to return Tags by default
  2. In

https://github.com/Expensify/App/blob/2bb1d002b9dfa7045a5ddbcb7ee99d4ae207948d/src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx#L95

We should change to CONST.SAGE_INTACCT_MAPPING_VALUE.TAG

Then remove employeeDefault in

https://github.com/Expensify/App/blob/2bb1d002b9dfa7045a5ddbcb7ee99d4ae207948d/src/pages/workspace/accounting/intacct/import/SageIntacctMappingsTypePage.tsx#L29-L35

We also can remove default mapping options in getDisplayTypeTranslationKey and getDisplayTypeTranslationKeys

What alternative solutions did you explore? (Optional)

NA

jayeshmangwani commented 2 months ago

Hey @dominictb 👋 , I have a hard time reaching this page.

Just a question: how can we reach this page and reproduce the issue?

stephanieelliott commented 2 months ago

@jayeshmangwani how far are you able to get on the repro steps -- are you able to reach Connect to Intacct? If not, you likely need to complete the pre-requisite steps described in https://github.com/Expensify/App/issues/45938#issue-2423611937, more specifically we need to add you to the intacctOnNewExpensify beta. If you can share the email address for the test account you're using, I can add you to that beta.

jayeshmangwani commented 2 months ago

more specifically we need to add you to the intacctOnNewExpensify beta. If you can share the email address for the test account you're using, I can add you to that beta.

Please add jm98289517+46@gmail.com , I will try to connect with this user

SzymczakJ commented 2 months ago

I was implementing this and Sage Intacct design doc didn't state anything like this, do we have a main source of truth?

jayeshmangwani commented 2 months ago

@SzymczakJ Currently, I don't have access to the Design doc. However, according to @sakluger's Issue Description:

According to the design doc and based on the OldDot config settings, Customer and Project dimensions do not support employee default, so those two dimensions should only have tag and report field options.

SzymczakJ commented 2 months ago

Sorry for the confusion, I should have read the whole thread before writing comments 😅. Can this issue be assigned as I already have context and I am author of this implementation?

JmillsExpensify commented 2 months ago

Assigned @SzymczakJ since he implemented this feature.

hungvu193 commented 2 months ago

I'll review PR today 😄

jayeshmangwani commented 2 months ago

@stephanieelliott Please assign this issue to @hungvu193 as they reviewed the original PR that worked on this feature and have more context. I am unassigning myself.

melvin-bot[bot] commented 1 month ago

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

hungvu193 commented 1 month ago

@Gonals https://github.com/Expensify/App/pull/46505 will be ready for your final review

melvin-bot[bot] commented 1 month ago

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

melvin-bot[bot] commented 1 month ago

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

If no regressions arise, payment will be issued on 2024-08-14. :confetti_ball:

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

melvin-bot[bot] commented 1 month ago

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:

melvin-bot[bot] commented 1 month ago

Payment Summary

Upwork Job

BugZero Checklist (@stephanieelliott)

hungvu193 commented 1 month ago

@stephanieelliott No payment is needed for me. Feel free to close