Closed mvtglobally closed 1 month ago
Triggered auto assignment to @RachCHopkins (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.
Edited by proposal-police: This proposal was edited at 2024-09-26 17:57:41 UTC.
Scan-Billable option is displayed in confirmation page but not shown after creating expense
the policy id that is passed to the confirmation list component is passed as undefined
incase of the split details because the report is not an expense chat
however when submiting an expense we call the IOU.getIOURequestPolicyID(transaction,report)
to get the policy id
to make it consisent we can update the value in the SplitBillDetailsPage
to:
policyID={ReportUtils.isPolicyExpenseChat(report) ? report?.policyID : IOU.getIOURequestPolicyID(transaction,report)}
or we can make it having the same value:
policyID={IOU.getIOURequestPolicyID(transaction, report)}
Billable option is displayed in confirmation page but not shown after creating expense
We are adding a check here isPolicyExpenseChat
then we pass report?.policyID
otherwise we are passing undefined
as policyID
. In our case the room is not policyExpenseChat
it's chatType is policyRoom
https://github.com/Expensify/App/blob/04b82bc10b5fd259bf8127546cebf757f8de85f6/src/pages/iou/SplitBillDetailsPage.tsx#L153
This is why the policy will be undefined here too causing shouldshowBillable
to be false
https://github.com/Expensify/App/blob/99b4c5a4563a5f65e1a0ac06fff12cd11e8b95e1/src/components/MoneyRequestConfirmationListFooter.tsx#L250
We can remove the check isPolicyExpenseChat
from here
https://github.com/Expensify/App/blob/04b82bc10b5fd259bf8127546cebf757f8de85f6/src/pages/iou/SplitBillDetailsPage.tsx#L153
We can do something like this.
policyID={report?.policyID ?? '-1'}
Optionally we can simply do
policyID={report?.policyID}
Billable expenses are for companies on-charging disbursements. Splitting expenses is for P2P.
I'm not sure Split expenses should ever be billable. Checking on the expected behaviour.
Confirmed: Split expenses should never be billable. Even if Billable is enforced. There is no likely scenario in which a customer would split a bill and then also bill it to a client.
In saying that, "Split" functionality development is officially on Hold. Closing this for 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: v9.0.40-1 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: Applause Internal team Slack conversation:
Action Performed:
Expected Result:
Billable option is displayed in confirmation page similarly it must be shown after creating scan split expense in room.
Actual Result:
Billable option is displayed in confirmation page but not shown after creating scan split expense in room.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
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/6118edc3-2e84-4fdb-83ed-d5dd678fb74d
View all open jobs on GitHub