refs #5835 migrateInvoiceIn #110

Merged
jorgep merged 29 commits from 5835-migrateInvoiceIn into dev 2023-12-13 10:25:07 +00:00
1 changed files with 2 additions and 5 deletions
Showing only changes of commit 22a634e7eb - Show all commits

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) {
jorgep marked this conversation as resolved Outdated

Revisamos si añadiendo valores por defecto podemos quitar líneas

Revisamos si añadiendo valores por defecto podemos quitar líneas
return (rate / 100) * taxableBase;
}
function getLink(param) {