diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index 74fd02816..f99e060b8 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -90,6 +90,11 @@ const columns = computed(() => [ field: (row) => row.foreignValue, align: 'left', }, + { + name: 'total', + label: 'Total', + align: 'left', + }, ]); const filter = { @@ -131,6 +136,24 @@ function autocompleteExpense(evt, row, col) { expenseRef.value.vnSelectDialogRef.vnSelectRef.toggleOption(lookup); } + +const taxableBaseTotal = computed(() => { + return getTotal(invoiceInFormRef.value.formData, 'taxableBase', ); +}); + +const taxRateTotal = computed(() => { + return getTotal(invoiceInFormRef.value.formData, null, { + cb: taxRate, + }); +}); + + +const combinedTotal = computed(() => { + return +taxableBaseTotal.value + +taxRateTotal.value; +}); + + + +