Closed lanitochka17 closed 2 weeks ago
Triggered auto assignment to @twisterdotcom (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@user Your proposal will be dismissed because you did not follow the proposal template.
No option 'Pay via Expensify' for receiver
We are not pushing pay with expensify option in button options https://github.com/Expensify/App/blob/013913357f7bd5844efbc631bba0a2518e5abfb8/src/components/SettlementButton.tsx#L215-L260
We can push pay with expensify option
if (shouldShowPaywithExpensifyOption) {
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.VBBA]);
}
Invoice - No option 'Pay via Expensify' for receiver
The subMenuItems
for both the pay as a business and individual do not include the settle with Expensify option.
Hence the buttonOptions
only includes the option to pay the iou elsewhere.
This also happens in the dropdown for business.
We should add the settle with Expensify option in the subMenuItems
array on this line with the code snippet below.
While checking for shouldShowPaywithExpensifyOption
and isExpenseReport
like this line.
...(isExpenseReport && shouldShowPaywithExpensifyOption ? [{
text: translate('iou.settleExpensify', {formattedAmount : ''}),
icon: Expensicons.Wallet,
value: CONST.IOU.PAYMENT_TYPE.VBBA,
onSelected: () => onPress(CONST.IOU.PAYMENT_TYPE.VBBA),
}] : []),
Or we can push the settle with Expensify option in the subMenuItems
before pushing it to the buttonOptions
over here.
Edited by proposal-police: This proposal was edited at 2023-10-02T00:00:00Z.
No Pay via Expensify option for invoice
The cause is separate for main and staging, In main: The logic for adding "Pay with Expensify" button was removed by this PR which reapplies this PR
In staging (9.0.28-1): The "Pay with Expensify" button is not added if the iouReport is an invoice https://github.com/Expensify/App/blob/a124e4fbbd7a678d3ebae253f3d8fff940c0e528/src/components/SettlementButton.tsx#L198
The check for !isInvoiceReport
was added by this commit which is part of previously mentioned PR but the final changes do not show the change, which is weird.
Add back the changes to bring back the button. Mainly, we need to add back the value in paymentMethod object and the code to push it in buttonOptions. Then remove !isInvoiceReport
from canUseWallet
.
If the invoice report needs to be part of canUseWallet
then we can make a new similar variable for this called showPayViaExpensify
.
Updated proposal
Job added to Upwork: https://www.upwork.com/jobs/~015c21e7f83c78f5bb
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (External
)
Hmm... actually... I wonder if these expected result steps are wrong:
Expected Result:
There are options 'Pay elsewhere' and 'Pay via Expensify' in a button dropdown
Actual Result:
There are options 'Pay as business' and 'Pay as an individual' in a button dropdown. No 'Pay via Expensify'
@davidcardoza is this right now? I feel like this makes more sense.
Users can't pay an invoice via Expensify just yet. The options should be
Regardless of the selection "Pay elsewhere" should be the only option. We're prioritizing invoice payments as part of the VIP-Bill-pay project. @madmax330
Okay, I think this is just a bug with an ongoing project right? I don't think we need to open this up to contributors right now.
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.28-0 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?/cases/view/3073288 Issue reported by: Applause - Internal Team
Action Performed:
Precondition: workspace with a member added
Expected Result:
There are options 'Pay elsewhere' and 'Pay via Expensify' in a button dropdown
Actual Result:
There are options 'Pay as business' and 'Pay as an individual' in a button dropdown. No 'Pay via Expensify'
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/a302086f-49eb-4d4f-b807-b95023606d3b
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jayeshmangwani