-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Expense - Amount in expense preview does not match the edited amount in deleted workspace #52896
Comments
Triggered auto assignment to @MitchExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Amount in expense preview does not match the edited amount in deleted workspace What is the root cause of that problem?This is a backend issue. I say that because the total in the response is incorrect, so we display it incorrectly What changes do you think we should make in order to solve the problem?I think, in this case, I must disable expenses to prevent updates when the workspace is archived, to avoid calculating the wrong value and incorrect logic. Some thing like this: // src/components/ReportActionItem/MoneyRequestView.tsx#L438
const isArchivedRoom = ReportUtils.isArchivedRoomWithID(parentReport?.chatReportID);
// src/components/ReportActionItem/MoneyRequestView.tsx#L514
<MenuItemWithTopDescription
title={amountTitle}
shouldShowTitleIcon={isSettled}
titleIcon={Expensicons.Checkmark}
description={amountDescription}
titleStyle={styles.textHeadlineH2}
interactive={canEditAmount}
shouldShowRightIcon={canEditAmount}
onPress={() =>
Navigation.navigate(
ROUTES.MONEY_REQUEST_STEP_AMOUNT.getRoute(
CONST.IOU.ACTION.EDIT,
iouType,
transaction?.transactionID ?? '-1',
report?.reportID ?? '-1',
'',
Navigation.getReportRHPActiveRoute(),
),
)
}
brickRoadIndicator={getErrorForField('amount') ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
errorText={getErrorForField('amount')}
disabled={isArchivedRoom}
/> We will do it like this for the description, date, and so on, if needed. What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021860113886210272641 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The amount in the expense preview in the main chat does not match the edited amount. What is the root cause of that problem?We're not disabling edit the money request when the workspace is deleted. What changes do you think we should make in order to solve the problem?We should return
Line 3133 in 51e25af
What alternative solutions did you explore? (Optional)NA |
Expenses should remain editable even if the workspace is deleted #51164 (comment). This is a BE bug @MitchExpensify. |
Thanks @CyberAndrii for the context. This then looks like a BE issue. |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Asking here to confirm the expected behaviour: #51164 (comment) . Just in case we made that decision to avoid having to work on something we don't care. Now we will have to work in the backend to fix the inconsistency and I would prefer to shift this work to the frontend if we really don't care about the expected behaviour. |
Ok, seems like the expected behaviour is correct here, so I'll investigate why the backend is not modifying the data then. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Can't reproduce in Screen.Recording.2024-12-02.at.6.13.31.PM.movGoing to try staging... |
In staging I see some currency conversion bug: The amount gets converted to the amount in USD, but it still says CA$: Screen.Recording.2024-12-02.at.6.17.35.PM.movThe transaction comes from the backend with the right {
"childCanHold": true,
"childCanUnhold": false,
"childCommenterCount": 0,
"childLastActorAccountID": 18775088,
"childLastMoneyRequestComment": "",
"childLastReceiptTransactionIDs": "",
"childLastVisibleActionCreated": "",
"childManagerAccountID": 18775088,
"childMoneyRequestCount": 1,
"childOldestFourAccountIDs": "",
"childOwnerAccountID": 18775088,
"childRecentReceiptTransactionIDs": [],
"childReportID": 7008012655928011,
"childReportName": "Expense Report #7008012655928011",
"childReportNotificationPreference": "hidden",
"childStateNum": 1,
"childStatusNum": 1,
"childType": "expense",
"childVisibleActionCount": 0,
"message": [
{
"html": " owes C$32.11",
"text": " owes C$32.11",
"type": "COMMENT",
"whisperedTo": []
}
],
"originalMessage": {
"isNewDot": true,
"lastModified": "2024-12-03 02:17:07.709",
"linkedReportID": "7008012655928011"
}
} |
hmm, I'm not able to reproduce the currency issue that I saw in staging: #52896 (comment) in dev |
@izarutskaya can you check if this issue is still reproducible? 🙏 |
@rojiphil @MitchExpensify @aldo-expensify 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! |
@rojiphil, @MitchExpensify, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Adding |
Unassigning myself as I don’t think there is anything to be done in FE. But will stay subscribed though. Thanks. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@MitchExpensify, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@MitchExpensify, @aldo-expensify Huh... This is 4 days overdue. Who can take care of this? |
@MitchExpensify @aldo-expensify this issue is now 4 weeks old, please consider:
Thanks! |
None of us can reproduce, @izarutskaya can you? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@MitchExpensify, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Switching to weekly while we wait for reproduction |
@MitchExpensify Tester still can reproduce this issue 20241227_162859.mp4 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.65-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5250638
Email or phone of affected tester (no customers): applausetester [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The amount in the expense preview in the main chat will match the edited amount.
Actual Result:
The amount in the expense preview in the main chat does not match the edited amount.
This issue only happens when the workspace is deleted.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6671714_1732183366430.bandicam_2024-11-21_17-57-31-566.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: