Merge branch 'dev' into 8667-FixClientNewPayment
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2025-03-25 12:07:21 +00:00
commit 071145a998
5 changed files with 3 additions and 30 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,
}, },

View File

@ -44,7 +44,7 @@ const getPriceDifference = async () => {
shipped: ticket.value.shipped, shipped: ticket.value.shipped,
}; };
const { data } = await axios.post( const { data } = await axios.post(
`tickets/${formData.value.id}/priceDifference`, `tickets/${ticket.value.id}/priceDifference`,
params, params,
); );
ticket.value.sale = data; ticket.value.sale = data;
@ -71,7 +71,7 @@ const submit = async () => {
}; };
const { data } = await axios.post( const { data } = await axios.post(
`tickets/${formData.value.id}/componentUpdate`, `tickets/${ticket.value.id}/componentUpdate`,
params, params,
); );

View File

@ -8,7 +8,7 @@ export const useDescriptorStore = defineStore('descriptorStore', () => {
if (Object.keys(descriptors).length) return descriptors; if (Object.keys(descriptors).length) return descriptors;
const currentDescriptors = {}; const currentDescriptors = {};
const files = import.meta.glob(`src/**/*DescriptorProxy.vue`); const files = import.meta.glob(`/src/**/*DescriptorProxy.vue`);
const moduleParser = { const moduleParser = {
account: 'user', account: 'user',
client: 'customer', client: 'customer',