diff --git a/src/pages/InvoiceIn/InvoiceInList.vue b/src/pages/InvoiceIn/InvoiceInList.vue index 82e550aca..e9255398b 100644 --- a/src/pages/InvoiceIn/InvoiceInList.vue +++ b/src/pages/InvoiceIn/InvoiceInList.vue @@ -2,6 +2,7 @@ import { ref, computed, onMounted, onUnmounted } from 'vue'; import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; +import { useState } from 'src/composables/useState'; import { downloadFile } from 'src/composables/downloadFile'; import { toDate, toCurrency } from 'src/filters/index'; import InvoiceInFilter from './InvoiceInFilter.vue'; @@ -17,6 +18,7 @@ import VnInputDate from 'src/components/common/VnInputDate.vue'; import FetchData from 'src/components/FetchData.vue'; const stateStore = useStateStore(); +const user = useState().getUser(); const { viewSummary } = useSummaryDialog(); const { t } = useI18n(); @@ -132,7 +134,7 @@ const cols = computed(() => [ urlCreate: 'InvoiceIns', title: t('globals.createInvoiceIn'), onDataSaved: ({ id }) => tableRef.redirect(id), - formInitialData: {}, + formInitialData: { companyFk: user.companyFk, issued: Date.vnNew() }, }" redirect="invoice-in" :columns="cols"