-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-02-26] [$500] [ECARD TRANSACTIONS] Header in expense view shows $%amount% request
instead of $%amount% for %merchant%
#34627
Comments
Triggered auto assignment to @peterdbarkerUK ( |
$%amount% request
instead of $%amount% for %merchant%
$%amount% request
instead of $%amount% for %merchant%
Changes Neededif the transaction is non-reimbursable (transaction.reimbursable = false) then the report header should be |
$%amount% request
instead of $%amount% for %merchant%
$%amount% request
instead of $%amount% for %merchant%
Job added to Upwork: https://www.upwork.com/jobs/~0122f6862da1ad40a2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.if the transaction is non-reimbursable then the report header should be What is the root cause of that problem?here we have the translation for the iou header: Line 629 in c884245
this translation is being called here: Lines 2098 to 2101 in 2c9b08f
now we need to add the merchant What changes do you think we should make in order to solve the problem?we need to change the comment to merchant and with keeping the transaction.reimbursable condition into consideration: return Localize.translateLocal(ReportActionsUtils.isSentMoneyReportAction(reportAction) ? 'iou.threadSentMoneyReportName' : 'iou.threadRequestReportName', {
formattedAmount: CurrencyUtils.convertToDisplayString(transactionDetails?.amount ?? 0, transactionDetails?.currency, TransactionUtils.isDistanceRequest(transaction)) ?? '',
comment: (transaction.reimbursable ? transactionDetails?.merchant : transactionDetails?.comment) ?? '',
}); we can remove the comment in the else statement but i kept it for backeward compibabilty .. however we can rename the |
ProposalPlease re-state the problem that we are trying to solve in this issue.[ECARD TRANSACTIONS] Header in expense view shows What is the root cause of that problem?We are not translating money request the Expensify card when creating the name of the transaction request. Lines 2095 to 2100 in 2c9b08f
What changes do you think we should make in order to solve the problem?
We use the boolean value of
We can remove the Furthermore, we should check if the transaction is a distance request to ensure the money request header title is not too long. These checks should be needed to properly display the header title without affecting reports paid by other payment methods such as Therefore, should create a condition to set the
|
ProposalPlease re-state the problem that we are trying to solve in this issue.[ECARD TRANSACTIONS] Header in expense view shows What is the root cause of that problem?We are not translating money request the Expensify card when creating the name of the transaction request. Lines 2095 to 2100 in 2c9b08f
What changes do you think we should make in order to solve the problem?
We use the boolean value of
We can remove the Furthermore, we should check if the transaction is a distance request to ensure the money request header title is not too long. These checks should be needed to properly display the header title without affecting reports paid by other payment methods such as Therefore, should create a condition to set the
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Header in expense view shows $%amount% request instead of $%amount% for %merchant% What is the root cause of that problem?We have not formatted the language function correctly, and not passed in the merchant: Line 629 in c884245
What changes do you think we should make in order to solve the problem? We can either:We can either:
AlternativelyWe can contruct the phrase by passing merchant as third param to |
@fedirjh few proposals for your review here when you get the chance! |
@abzokhattab your solution does not match the expected result; could you please verify that it displays the correct result? @Tony-MK Why do we have to exclude request that was paid by an Expensify Card ? @neonbhai It is intentional that you didn’t include the checks for non-reimbursable state mentioned in this comment #34627 (comment) ? |
@fedirjh hi, we now pass merchant for reimbursable transactions also. Latest main code was updated in this PR to always use merchant if available: Line 2240 in a1fe671
So a check for the reimbursable state is now not needed. |
In this case, let's wait until #34216 is deployed to staging and then we can check if we need any further changes. cc @peterdbarkerUK I think #34216 has covered this issue. The header title will be displayed as :
Should we still require any further changes? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I think the bug here is that the Header should be:
i.e, as the title says, we shouldn't use the cc: @fedirjh |
cc @grgia @peterdbarkerUK friendly bump for #34627 (comment) , should we proceed with @neonbhai suggestion in #34627 (comment) ? |
@peterdbarkerUK @fedirjh @grgia 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! |
📣 @neonbhai 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thank you @muttmuure @fedirjh! Assigned @neonbhai |
just catching up, but @neonbhai is on the right track there! Here is what is specifically proposed in the card transactions doc:
So the order would be: $%amount% for %merchant% -> if it has a merchant |
@fedirjh @grgia @muttmuure @neonbhai this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
Raising PR shortly! |
thanks @neonbhai ! |
@fedirjh, @grgia, @muttmuure, @neonbhai Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Finalizing PR shortly |
$%amount% request
instead of $%amount% for %merchant%
$%amount% request
instead of $%amount% for %merchant%
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-5 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 2024-02-26. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
BugZero Checklist:
Regression Test Proposal
|
Paid |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue reported by: @kevinksullivan
Slack conversation: https://expensify.slack.com/archives/C05DWUDHVK7/p1705358211614989
Action Performed:
Expected Result:
The report title should use the format
$%amount% for %merchant%
Actual Result:
The report title shows
$%amount% request
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: