refs #5835 migrateInvoiceIn #110
|
@ -187,12 +187,9 @@ function setData(entity) {
|
||||||
intrastatTotals.value = { ...getIntrastatTotals(entity.invoiceInIntrastat) };
|
intrastatTotals.value = { ...getIntrastatTotals(entity.invoiceInIntrastat) };
|
||||||
}
|
}
|
||||||
|
|
||||||
function taxRate(taxableBase, rate) {
|
function taxRate(taxableBase = 0, rate = 0) {
|
||||||
jorgep marked this conversation as resolved
Outdated
|
|||||||
if (rate && taxableBase) {
|
|
||||||
return (rate / 100) * taxableBase;
|
return (rate / 100) * taxableBase;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getLink(param) {
|
function getLink(param) {
|
||||||
return `#/invoice-in/${entityId.value}/${param}`;
|
return `#/invoice-in/${entityId.value}/${param}`;
|
||||||
|
|
Loading…
Reference in New Issue
Revisamos si añadiendo valores por defecto podemos quitar líneas