fix: remove create prop departmentFk

This commit is contained in:
Javier Segarra 2025-03-25 11:41:04 +01:00
parent ca4e02a2bf
commit af5a850311
3 changed files with 0 additions and 27 deletions

View File

@ -105,15 +105,6 @@ const debtWarning = computed(() => {
> >
<QTooltip>{{ t('customer.card.isDisabled') }}</QTooltip> <QTooltip>{{ t('customer.card.isDisabled') }}</QTooltip>
</QIcon> </QIcon>
<QIcon
v-if="entity?.substitutionAllowed"
name="help"
size="xs"
color="primary"
>
<QTooltip>{{ t('Allowed substitution') }}</QTooltip>
</QIcon>
<QIcon <QIcon
v-if="!entity.account?.active" v-if="!entity.account?.active"
color="primary" color="primary"

View File

@ -61,16 +61,6 @@ const openCreateForm = (type) => {
.join('&'); .join('&');
useOpenURL(`/#/${type}/list?${params}`); useOpenURL(`/#/${type}/list?${params}`);
}; };
const updateSubstitutionAllowed = async () => {
try {
await axios.patch(`Clients/${route.params.id}`, {
substitutionAllowed: !$props.customer.substitutionAllowed,
});
notify('globals.notificationSent', 'positive');
} catch (error) {
notify(error.message, 'positive');
}
};
</script> </script>
<template> <template>
@ -79,13 +69,6 @@ const updateSubstitutionAllowed = async () => {
{{ t('globals.pageTitles.createTicket') }} {{ t('globals.pageTitles.createTicket') }}
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem v-ripple clickable>
<QItemSection @click="updateSubstitutionAllowed()">{{
$props.customer.substitutionAllowed
? t('Disable substitution')
: t('Allow substitution')
}}</QItemSection>
</QItem>
<QItem v-ripple clickable> <QItem v-ripple clickable>
<QItemSection @click="showSmsDialog()">{{ t('Send SMS') }}</QItemSection> <QItemSection @click="showSmsDialog()">{{ t('Send SMS') }}</QItemSection>
</QItem> </QItem>

View File

@ -65,7 +65,6 @@ const columns = computed(() => [
attrs: { attrs: {
url: 'Departments', url: 'Departments',
}, },
create: true,
columnField: { columnField: {
component: null, component: null,
}, },