Skip to content

Commit

Permalink
enforce tax claimable to be less than tax rate
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Dec 13, 2024
1 parent b2dca65 commit b7f2270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/PolicyDistanceRatesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function validateRateValue(
function validateTaxClaimableValue(values: FormOnyxValues<TaxReclaimableForm>, rate: Rate | undefined): FormInputErrors<TaxReclaimableForm> {
const errors: FormInputErrors<TaxReclaimableForm> = {};

if (rate?.rate && Number(values.taxClaimableValue) > rate.rate / 100) {
if (rate?.rate && Number(values.taxClaimableValue) >= rate.rate / 100) {
errors.taxClaimableValue = Localize.translateLocal('workspace.taxes.error.updateTaxClaimableFailureMessage');
}
return errors;
Expand Down

0 comments on commit b7f2270

Please sign in to comment.