diff --git a/Jenkinsfile b/Jenkinsfile index 1766e3aea..c20da8ab2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,8 @@ def PROTECTED_BRANCH def BRANCH_ENV = [ test: 'test', - master: 'production' + master: 'production', + beta: 'production' ] node { @@ -15,7 +16,8 @@ node { PROTECTED_BRANCH = [ 'dev', 'test', - 'master' + 'master', + 'beta' ].contains(env.BRANCH_NAME) // https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index 6de402a26..cab4f98e9 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -2,7 +2,7 @@ import CreateNewPostcode from 'src/components/CreateNewPostcodeForm.vue'; import VnSelectDialog from 'components/common/VnSelectDialog.vue'; import { useI18n } from 'vue-i18n'; -import { ref } from 'vue'; +import { computed } from 'vue'; import { useAttrs } from 'vue'; import { useRequired } from 'src/composables/useRequired'; const { t } = useI18n(); @@ -43,7 +43,7 @@ const formatLocation = (obj, properties) => { return filteredParts.join(', '); }; -const modelValue = ref( +const modelValue = computed(() => props.location ? formatLocation(props.location, locationProperties) : null ); diff --git a/src/composables/useRole.js b/src/composables/useRole.js index d1a6d6ef3..3ec65dd0a 100644 --- a/src/composables/useRole.js +++ b/src/composables/useRole.js @@ -20,7 +20,7 @@ export function useRole() { function hasAny(roles) { const roleStore = state.getRoles(); - + if (typeof roles === 'string') roles = [roles]; for (const role of roles) { if (roleStore.value.indexOf(role) !== -1) return true; } diff --git a/src/pages/Customer/Card/CustomerWebAccess.vue b/src/pages/Customer/Card/CustomerWebAccess.vue index ea901c65a..3c4106846 100644 --- a/src/pages/Customer/Card/CustomerWebAccess.vue +++ b/src/pages/Customer/Card/CustomerWebAccess.vue @@ -29,7 +29,8 @@ async function hasCustomerRole() { :filter="filter" model="customer" :mapper=" - ({ active, name, email }) => { + ({ account }) => { + const { name, email, active } = account; return { active, name, diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index f5a4f7d80..389807344 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -37,7 +37,7 @@ const columns = computed(() => [ }, isId: true, columnFilter: { - name: 'search', + name: 'id', }, }, { @@ -74,7 +74,9 @@ const columns = computed(() => [ component: 'select', attrs: { url: 'Clients', - fields: ['id', 'name'], + fields: ['id', 'socialName'], + optionLabel: 'socialName', + optionValue: 'id', }, columnField: { component: null, diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 95ef3118e..ff428c72c 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -760,7 +760,7 @@ watch(