fix: fixed CustomerConsumption errors when changing customer & downloading pdf #1666

Merged
provira merged 7 commits from fix-CustomerConsumption into dev 2025-04-14 05:17:47 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import VnSelect from 'components/common/VnSelect.vue';
import VnInputDate from 'components/common/VnInputDate.vue';
const arrayData = useArrayData('Client');
const arrayData = useArrayData('Customer');
const { t } = useI18n();
const route = useRoute();
const campaignList = ref();
@ -260,7 +260,7 @@ const updateDateParams = (value, params) => {
:label="t('globals.campaign')"
:filled="true"
class="q-px-sm q-pt-none fit"
:option-label="(opt) => t(opt.code)"
:option-label="(opt) => t(opt.code ?? '')"
:fields="['id', 'code', 'dated', 'scopeDays']"
@update:model-value="(data) => updateDateParams(data, params)"
dense

View File

@ -34,7 +34,7 @@ const columns = computed(() => [
},
{
align: 'left',
format: (row) => row.type.description,
format: (row) => row?.type?.description,
label: t('Description'),
name: 'description',
},