From de68af5e132655d78c57ed91f820fa67bb887b91 Mon Sep 17 00:00:00 2001 From: guillermo Date: Mon, 15 Apr 2024 14:17:23 +0200 Subject: [PATCH 1/2] feat: refs #6724 Disabled QCheckbox entry isBooked --- src/pages/Entry/Card/EntryBasicData.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/Entry/Card/EntryBasicData.vue b/src/pages/Entry/Card/EntryBasicData.vue index 4a8cf154a..7af9238d6 100644 --- a/src/pages/Entry/Card/EntryBasicData.vue +++ b/src/pages/Entry/Card/EntryBasicData.vue @@ -205,7 +205,9 @@ const onFilterTravelSelected = (formData, id) => {
+ From 46fa06cf1e3c6042bc4e29ad2433896d85f7c854 Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 16 Apr 2024 07:14:00 +0200 Subject: [PATCH 2/2] feat: refs #6724 Restriction QCheckbox entry isBooked --- src/pages/Entry/Card/EntryBasicData.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/Entry/Card/EntryBasicData.vue b/src/pages/Entry/Card/EntryBasicData.vue index 7af9238d6..12e03fd32 100644 --- a/src/pages/Entry/Card/EntryBasicData.vue +++ b/src/pages/Entry/Card/EntryBasicData.vue @@ -2,6 +2,7 @@ import { ref } from 'vue'; import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; +import { useRole } from 'src/composables/useRole'; import FetchData from 'components/FetchData.vue'; import FormModel from 'components/FormModel.vue'; @@ -15,6 +16,8 @@ import { toDate } from 'src/filters'; const route = useRoute(); const { t } = useI18n(); +const { hasAny } = useRole(); +const isAdministrative = () => hasAny(['administrative']); const suppliersOptions = ref([]); const travelsOptions = ref([]); @@ -205,9 +208,8 @@ const onFilterTravelSelected = (formData, id) => {
-