Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/DistanceRequestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function getTaxableAmount(policy: OnyxEntry<Policy>, customUnitRateID: string, d
const unit = distanceUnit?.attributes?.unit ?? CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES;
const rate = customUnitRate?.rate ?? CONST.DEFAULT_NUMBER_ID;
const amount = getDistanceRequestAmount(distance, unit, rate);
const taxClaimablePercentage = customUnitRate.attributes?.taxClaimablePercentage ?? CONST.DEFAULT_NUMBER_ID;
const taxClaimablePercentage = customUnitRate.attributes?.taxClaimablePercentage ?? 1;
return amount * taxClaimablePercentage;
}

Expand Down
5 changes: 0 additions & 5 deletions src/pages/iou/request/step/IOURequestStepAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import {
setDraftSplitTransaction,
setMoneyRequestAmount,
setMoneyRequestParticipantsFromReport,
setMoneyRequestTaxAmount,
setSplitShares,
trackExpense,
updateMoneyRequestAmountAndCurrency,
Expand Down Expand Up @@ -177,10 +176,6 @@ function IOURequestStepAmount({
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
setMoneyRequestAmount(transactionID, amountInSmallestCurrencyUnits, currency || CONST.CURRENCY.USD, shouldKeepUserInput);

// Initially when we're creating money request, we do not know the participant and hence if the request is with workspace with tax tracking enabled
// So, we reset the taxAmount here and calculate it in the hook in MoneyRequestConfirmationList component
setMoneyRequestTaxAmount(transactionID, null);

if (backTo) {
Navigation.goBack(backTo);
return;
Expand Down
Loading
Loading