Skip to content

Commit

Permalink
Merge pull request #45050 from etCoderDysto/negative-tax
Browse files Browse the repository at this point in the history
fix: Show positive amount when manually entering tax amount
  • Loading branch information
Hayata Suenaga authored Jul 11, 2024
2 parents 28e5e45 + 3ce2a72 commit fa6d729
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MoneyRequestConfirmationListFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ function MoneyRequestConfirmationListFooter({
// Do not hide fields in case of paying someone
const shouldShowAllFields = !!isDistanceRequest || shouldExpandFields || !shouldShowSmartScanFields || isTypeSend || !!isEditingSplitBill;
// Calculate the formatted tax amount based on the transaction's tax amount and the IOU currency code
const formattedTaxAmount = CurrencyUtils.convertToDisplayString(transaction?.taxAmount, iouCurrencyCode);
const taxAmount = TransactionUtils.getTaxAmount(transaction, false);
const formattedTaxAmount = CurrencyUtils.convertToDisplayString(taxAmount, iouCurrencyCode);
// Get the tax rate title based on the policy and transaction
const taxRateTitle = TransactionUtils.getTaxName(policy, transaction);
// Determine if the merchant error should be displayed
Expand Down

0 comments on commit fa6d729

Please sign in to comment.