From d2996f083857201ac3ae2d2348fdef9c081fd13b Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 25 Sep 2024 12:23:41 +0200 Subject: [PATCH 1/2] fix: refs #6943 prevent null --- src/components/CreateBankEntityForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue index 1117225c7..0a3c10f57 100644 --- a/src/components/CreateBankEntityForm.vue +++ b/src/components/CreateBankEntityForm.vue @@ -21,7 +21,7 @@ const customer = computed(() => state.get('customer')); const bankEntityFormData = reactive({ name: null, bic: null, - countryFk: customer.value.countryFk, + countryFk: customer.value?.countryFk, id: null, }); From aab428494e50d2b31369e82fc8efd41f07882e25 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 25 Sep 2024 12:40:22 +0200 Subject: [PATCH 2/2] fix: refs #6898 add role --- src/pages/Supplier/Card/SupplierAccounts.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/Supplier/Card/SupplierAccounts.vue b/src/pages/Supplier/Card/SupplierAccounts.vue index b0e8b06e8..1513a76db 100644 --- a/src/pages/Supplier/Card/SupplierAccounts.vue +++ b/src/pages/Supplier/Card/SupplierAccounts.vue @@ -102,9 +102,7 @@ const setWireTransfer = async () => { @@ -115,6 +113,7 @@ const setWireTransfer = async () => { option-label="bic" option-value="id" hide-selected + :roles-allowed-to-create="['financial']" >