diff --git a/src/pages/InvoiceIn/Card/InvoiceInSummary.vue b/src/pages/InvoiceIn/Card/InvoiceInSummary.vue index b3b4f37b6..d7039fe3d 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInSummary.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInSummary.vue @@ -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) {