-
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
[HOLD for payment 2024-10-11] [$250] [Instant Submit] Retain the option to Pay elsewhere on processing/submitted reports when payments get disabled. #49874
Comments
Triggered auto assignment to @JmillsExpensify ( |
|
Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify ( |
I don't think this needs design input, its sort of a new feature but more of a work around since we don't have a "mark as close" in new dot feature. Also unassigning @JmillsExpensify since @garrettmknight created the original issue for this so I think it'd be best to keep him as the BZ member on this since he has context. |
Job added to Upwork: https://www.upwork.com/jobs/~021839794267146442929 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach ( |
Note to contributors, I think this should be straightforward, the data for what state a report is in should be in its onyx data. The psuedocode logic we want here is basically this:
Please see our constants code for what numbers correspond to what status the report is in. |
And remember, we still want reports that are in the "closed" state, aka expenses that are created while the workspace setting "allow payments" is false, should not show "Pay elsewhere". Its only expenses that are created while "allow payments" is turned on, and then once its turned off we should allow those expenses that are still in the submitted/processing state should be able to be paid elsewhere. |
Edited by proposal-police: This proposal was edited at 2024-09-28 11:35:17 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.There is not option to "Pay Elsewhere". What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
Lines 6941 to 6943 in 71db3f1
I introduced new
the Line 1705 in 71db3f1
App/src/components/ReportActionItem/ReportPreview.tsx Lines 519 to 520 in 71db3f1
Now, the AnimatedSettlementButton button can be displayed even if the
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no option to "Pay Elsewhere" when What is the root cause of that problem?The reason is we don't show Settlement Button if policy.reimbursementChoice is Lines 6941 to 6943 in 71db3f1
and we are not handling Lines 1700 to 1709 in 71db3f1
What changes do you think we should make in order to solve the problem?TO solve this problem we have to remove this early return condition here. Lines 6941 to 6943 in 71db3f1
and also update function Lines 1700 to 1709 in 71db3f1
by doing this we will have if (policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_MANUAL || policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_NO) {
return isAdmin && (isApproved || isManager);
} We will update
to const shouldShowPaywithExpensifyOption = !shouldHidePaymentOptions
&& policy?.reimbursementChoice !== CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_MANUAL;
&& policy?.reimbursementChoice !== CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_NO; What alternative solutions did you explore? (Optional)None |
Current assignee @blimpich is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.44-12 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-10-11. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary:
|
@ZhenjaHorbach please propose the regression test and I'll pay out your contract. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Not overdue ! |
@garrettmknight, @blimpich, @ZhenjaHorbach, @truph01 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Paid, closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Email or phone of affected tester (no customers):
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/378376
Issue reported by: @garrettmknight
Slack conversation: https://expensify.slack.com/archives/C036QM0SLJK/p1709825435599569
Action Performed:
Expected Result:
There should be an option to "Pay Elsewhere" on the expense for user A.
Actual Result:
There is not option to "Pay Elsewhere".
Workaround:
Turn on payments again, pay the expenses, then turn it off.
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: