From 025dd8bee4be2709bdd12a041d6dcc711410151d Mon Sep 17 00:00:00 2001 From: Ruben Lagerwerf <98549214+RubenLWF@users.noreply.github.com> Date: Sun, 10 Nov 2024 23:13:25 +0100 Subject: [PATCH 1/4] fix(pos): incorrect remaining balance displayed (#446) --- apps/point-of-sale/src/components/Cart/CartComponent.vue | 2 +- .../Cart/TransactionHistory/TransactionHistoryComponent.vue | 2 +- apps/point-of-sale/src/stores/cart.store.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/point-of-sale/src/components/Cart/CartComponent.vue b/apps/point-of-sale/src/components/Cart/CartComponent.vue index db2ae654..87718fd1 100644 --- a/apps/point-of-sale/src/components/Cart/CartComponent.vue +++ b/apps/point-of-sale/src/components/Cart/CartComponent.vue @@ -68,7 +68,7 @@ const transactions = ref([]); const getUserRecentTransactions = () => { transactions.value = []; - if (cartStore.getBuyer) { + if (cartStore.getBuyer && (cartStore.getBuyer.id === authStore.getUser?.id || settings.isBorrelmode)) { // todo clean up apiService.user .getUsersTransactions( diff --git a/apps/point-of-sale/src/components/Cart/TransactionHistory/TransactionHistoryComponent.vue b/apps/point-of-sale/src/components/Cart/TransactionHistory/TransactionHistoryComponent.vue index 32a969b5..3528125e 100644 --- a/apps/point-of-sale/src/components/Cart/TransactionHistory/TransactionHistoryComponent.vue +++ b/apps/point-of-sale/src/components/Cart/TransactionHistory/TransactionHistoryComponent.vue @@ -8,7 +8,7 @@ */