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