Closed IuliiaHerets closed 1 month ago
Triggered auto assignment to @Christinadobrzyn (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.
Triggered auto assignment to @cristipaval (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
We think that this bug might be related to #wave-collect - Release 2
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
The Rate
field is not on staging for me in my tom@trj.chat
account, because it's a feature behind the p2pDistanceRequests
beta and that account isn't on the beta.
So I think this can be demoted as a deploy blocker.
Testing on my expensify.com account which is on the beta, I'm getting this when the UpdateMoneyRequestDistanceRate
command is called:
jsonCode: 501, message: "501 Invalid tax percentage", onyxData: [], requestID: "8af762156c4bbefd-LHR"}
"501 Invalid tax percentage"
8af762156c4bbefd-LHR
Internal logs for that requestID are here.
Could not calculate taxAmount, taxPercentage: , and amount: 0
Throwing exception with message: '501 Invalid tax percentage' from auth/lib/Transaction.cpp:3065
That's here in Auth.
@MonilBhavsar any insight as you added this in the blame? 🤔 (CC: @nkdengineer as well for context on building this feature a few months ago!)
I was assigned couple of server errors too. Something looks off with the command. Looking into it
Amazing! Do you agree this isn't an /app blocker though, given you can't access this Rate
field on the expense to change if you aren't on the p2pDistanceRequests
beta?
agree, shouldn't be an app blocker, neither web. The logic lies in Auth.
But I wonder, in this case if user does not select tax rate and tax claimable percentage. Should we fallback to workspace default tax percentage?
But wait. Why this created as blocker though 🤔
@cristipaval @MonilBhavsar I agree this does not have to be a blocker cc @neil-marcellini as its related to the p2p distance
Feel free to remove the labels
But wait. Why this created as blocker though 🤔
You hit this error if you change the Rate
field on the distance expense, under the conditions in the steps in the OP.
But I wonder, in this case if user does not select tax rate and tax claimable percentage. Should we fallback to workspace default tax percentage?
No, I don't think we do that on OldDot do we? Just the output is $0.00. Let me check.
Yeah, we just leave the tax amount at $0.00 and uneditable - we don't default to the workspace default tax rate or anything as far as I can tell.
Okay, thanks for looking! 🙌
Here, we need to skip calculating tax percentage if taxCode is empty(not set by user), and add automated tests https://github.com/Expensify/Auth/blob/c15ed2282c02386eb3d2239ff33263994c4ec798/auth/command/UpdateMoneyRequestDistanceRate.cpp#L90
I'm prioritising fire cleanup task currently, so not picking up
I'm working on https://github.com/Expensify/Expensify/issues/418428, and that should fix this issue
@cristipaval, @Christinadobrzyn Huh... This is 4 days overdue. Who can take care of this?
Thanks @MonilBhavsar! I'll add a hold label to retest after https://github.com/Expensify/Expensify/issues/418428 is deployed
I'm handing this over to you, @MonilBhavsar, as I get closer to my parental leave. Thanks for fixing 🙏
PR was deployed and issue is off hold now @Christinadobrzyn
Testing again - this appears to be resolved! Asking QA to test. https://expensify.slack.com/archives/C9YU7BX5M/p1723649337946129
Awesome! closing!
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.17-1
Reproducible in staging?: Y Reproducible in production?: N Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
User will be able to select the distance rate without tax rate and tax reclaimable.
Actual Result:
Error shows up after selecting the distance rate without tax rate and tax reclaimable.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/0fa301d4-2df0-4510-98bc-c85cc46a91df
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @Christinadobrzyn