Closed trjExpensify closed 4 weeks ago
Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.
Job added to Upwork: https://www.upwork.com/jobs/~021831725635476300859
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External
)
Upwork job price has been updated to $125
Pay elsewhere missing as a payment method when configured for direct reimbursement on a workspace
The shouldShowPayElsewhereOption
here is return false because both !isPaidGroupPolicy
and policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_MANUAL
are false
we displaying the VBBA option if both isExpenseReport
and shouldShowPaywithExpensifyOption
are true
So add another condition on shouldShowPayElsewhereOption
to show it if both isExpenseReport
and shouldShowPaywithExpensifyOption
are true
const shouldShowPayElsewhereOption = (!isPaidGroupPolicy || policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_MANUAL || (isExpenseReport && shouldShowPaywithExpensifyOption)) && !isInvoiceReport;
also we need to move the shouldShowPayElsewhereOption
to inside paymentButtonOptions
after isExpenseReport
declaration
Result
Pay elsewhere missing as a payment method when configured for direct reimbursement on a workspace
We only allow the Pay Elsewhere option when policy.reimbursementChoice
is REIMBURSEMENT_MANUAL
.
We now want to show the option when reimbursement choice is either Manual or REIMBURSEMENT_YES.
We will change the logic here:
const shouldShowPayElsewhereOption = (!isPaidGroupPolicy || policy?.reimbursementChoice
!== CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_NO) && !isInvoiceReport;
Pay elsewhere missing as a payment method when configured for direct reimbursement on a workspace
Here we only show pay elsewhere
only when policy?.reimbursementChoice
is reimburseManual
but when bank account is accounted the policy?.reimbursementChoice is reimburseYes
https://github.com/Expensify/App/blob/cc1c7d066e178c0c4a74af044f2392c71eafaca3/src/components/SettlementButton.tsx#L171
We don't need the policy?.reimbursementChoice
check because in canIOUBePaid we already hide the button when policy?.reimbursementChoice === reimburseNo
and for other two options we want to show pay elsewhere
button
https://github.com/Expensify/App/blob/8fc5e6867e6433c9b759e84409b8c4430b32c57b/src/libs/actions/IOU.ts#L6844-L6846
We can change this code to
const shouldShowPayElsewhereOption = !isPaidGroupPolicy || !isInvoiceReport;
Or we can change this to
const shouldShowPayElsewhereOption = !isInvoiceReport;
๐ฃ @shubham1206agra ๐ An offer has been automatically sent to your Upwork account for the Contributor role ๐ Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review ๐งโ๐ป Keep in mind: Code of Conduct | Contributing ๐
We chose @shubham1206agra to work on it based on internal slack discussion and clarification of the logic. Apologies for not making this cleaner before and losing some time then @shubham1206agra What is your ETA for a PR
@trjExpensify, @mountiny, @shubham1206agra, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@shubham1206agra didn't you have a PR for this?
โ ๏ธ Looks like this issue was linked to a Deploy Blocker here
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
Payment will be due tomorrow. ๐
Payment summary as follows:
Aimane, go ahead and request. @shubham1206agra please accept the offer, it's waiting on yah.
and Melvin, please feel free to jump in a lake.
@shubham1206agra can you accept the offer so we can close this?
@trjExpensify Accepted offer
I am still using upwork
I am still using upwork
Oh really? Why so? You're in the list for NewDot. ๐ค
yes I am eligible but I moved back to upwork
Got it. @mallenexpensify will work on getting that update. In the meantime, an offer has been sent.
@trjExpensify @mountiny @shubham1206agra @aimane-chnaif this issue is now 4 weeks old, please consider:
Thanks!
Paid, closing!
@trjExpensify Payment failed due to upwork bug. Can you please reopen?
I've paid a bonus to get around that. Let me know if that doesn't work.
Received bonus. Thanks
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: v9.0.29-7 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: @trjExpensify Slack conversation: https://github.com/Expensify/App/issues/36301#issuecomment-2329473649
Action Performed:
Workflows
> Enable approvals and paymentsConnect bank account
and add a VBBAExpected Result:
The pay button should have an option to change it to
Pay elsewhere
to mark the report as manually reimbursed.Actual Result:
The pay button does not have that option, only
Pay $x using Expensify
.Workaround:
No
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensify