fix: refs #7936 format tax calculation to two decimal places
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-11-29 12:42:03 +01:00
parent de87fef42a
commit e2ddc079ec
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ function taxRate(invoiceInTax) {
const taxTypeSage = taxRateSelection?.rate ?? 0;
const taxableBase = invoiceInTax?.taxableBase ?? 0;
return (taxTypeSage / 100) * taxableBase;
return ((taxTypeSage / 100) * taxableBase).toFixed(2);
}
const formatOpt = (row, { model, options }, prop) => {