-
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
[$250] Android - QAB - In mWeb, merchant shown as "expense"&in Android unexpected error for QAB expense #48238
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Merchant is shown as "Expense" if the expense was created via the "Quick action" button What is the root cause of that problem?Expense created via Expense created via Then in
What changes do you think we should make in order to solve the problem?We need to add a check for diff --git a/src/components/ReportActionItem/MoneyRequestView.tsx b/src/components/ReportActionItem/MoneyRequestView.tsx
index 57c5c01da55..d2860bbd0fb 100644
--- a/src/components/ReportActionItem/MoneyRequestView.tsx
+++ b/src/components/ReportActionItem/MoneyRequestView.tsx
@@ -163,7 +163,10 @@ function MoneyRequestView({
originalAmount: transactionOriginalAmount,
originalCurrency: transactionOriginalCurrency,
} = useMemo<Partial<TransactionDetails>>(() => ReportUtils.getTransactionDetails(transaction) ?? {}, [transaction]);
- const isEmptyMerchant = transactionMerchant === '' || transactionMerchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT;
+ const isEmptyMerchant =
+ transactionMerchant === '' ||
+ transactionMerchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT ||
+ transactionMerchant === CONST.TRANSACTION.DEFAULT_MERCHANT;
const isDistanceRequest = TransactionUtils.isDistanceRequest(transaction);
const formattedTransactionAmount = transactionAmount ? CurrencyUtils.convertToDisplayString(transactionAmount, transactionCurrency) : '';
const formattedOriginalAmount = transactionOriginalAmount && transactionOriginalCurrency && CurrencyUtils.convertToDisplayString(transactionOriginalAmount, transactionOriginalCurrency); |
My proposal doesn't cover the error on android part as it is being fixed in #45086 |
Job added to Upwork: https://www.upwork.com/jobs/~01095a4da6e8b969c0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.In mweb, merchant shown as "expense" in QAB via createe expense. In Android, QAB via created expense shows unexpected error. What is the root cause of that problem?
The problem here is, that when we create a money request via QAB we pass the merchant as empty string here and here but we pass it as What changes do you think we should make in order to solve the problem?We should pass the merchant as OPTIONAL: We can also add the check here to return
What alternative solutions did you explore? (Optional) |
@CyberAndrii 's proposal LGTM because first 🎀 👀 🎀 |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@rushatgabhane Can you please check again, for consistent I think we should pass merchant as |
Waiting on @rushatgabhane to check the comment above before assigning |
What @nkdengineer said here also makes sense and it feels closer to the root cause. @aldo-expensify we can assign @nkdengineer. What do you think? |
After reading both proposals, I agree with you. Assigning @nkdengineer . |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This issue has not been updated in over 15 days. @twisterdotcom, @rushatgabhane, @aldo-expensify, @nkdengineer eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@twisterdotcom The PR was deployed to production. This is ready for payment. |
Payment Summary:
|
$250 approved for @rushatgabhane |
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.25
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/4898411
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
With any inconsistency and error user must be able to submit expense via QAB.
Actual Result:
In mweb, merchant shown as "expense" in QAB via createe expense. In Android, QAB via created expense shows unexpected error.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6585120_1724841105617.sub.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: