refs #5835 refactor taxRate
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-12-11 13:49:50 +01:00
parent 61955268f4
commit 22a634e7eb
1 changed files with 2 additions and 5 deletions

View File

@ -187,11 +187,8 @@ function setData(entity) {
intrastatTotals.value = { ...getIntrastatTotals(entity.invoiceInIntrastat) };
}
function taxRate(taxableBase, rate) {
if (rate && taxableBase) {
return (rate / 100) * taxableBase;
}
return 0;
function taxRate(taxableBase = 0, rate = 0) {
return (rate / 100) * taxableBase;
}
function getLink(param) {