From b291455a05fa5be97c6cb4e707a6e535fdfc7850 Mon Sep 17 00:00:00 2001 From: HenriT Date: Tue, 16 Feb 2021 21:45:40 +0200 Subject: [PATCH] Fix invoice totals in list. Don't store full client in invoices. --- src/components/invoices/InvoiceTotals.vue | 15 +++------------ src/services/invoice.service.js | 3 +++ src/store/invoices.js | 9 --------- src/store/models/invoice.js | 21 +++++++++++++++++++++ src/utils/helpers.js | 2 +- 5 files changed, 28 insertions(+), 22 deletions(-) diff --git a/src/components/invoices/InvoiceTotals.vue b/src/components/invoices/InvoiceTotals.vue index e20626a..3ecfc0c 100644 --- a/src/components/invoices/InvoiceTotals.vue +++ b/src/components/invoices/InvoiceTotals.vue @@ -2,7 +2,7 @@ Subtotal - {{ subTotal | currency }} + {{ invoice.subTotal | currency }} @@ -13,7 +13,7 @@ @change="updateProp({ vat_rate: $event })"/>) - {{ totalVat | currency }} + {{ invoice.totalVat | currency }} @@ -24,12 +24,11 @@ placeholder="Add currency" @change="updateProp({ currency: $event })"/> - {{ total | currency }} + {{ invoice.total | currency }}