diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 7127ce2d6..020adca27 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -234,7 +234,7 @@ function splitColumns(columns) { if (col.create) splittedColumns.value.create.push(col); if (col.cardVisible) splittedColumns.value.cardVisible.push(col); if ($props.isEditable && col.disable == null) col.disable = false; - if ($props.useModel && col.columnFilter != false) + if ($props.useModel && col.columnFilter) col.columnFilter = { inWhere: true, ...col.columnFilter }; splittedColumns.value.columns.push(col); } diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index 1005db67b..9fb2fc5f5 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -12,7 +12,6 @@ import InvoiceOutSummary from './Card/InvoiceOutSummary.vue'; import { toCurrency, toDate } from 'src/filters/index'; import { useStateStore } from 'stores/useStateStore'; import { QBtn } from 'quasar'; -import CustomerDescriptorProxy from '../Customer/Card/CustomerDescriptorProxy.vue'; import axios from 'axios'; import RightMenu from 'src/components/common/RightMenu.vue'; import InvoiceOutFilter from './InvoiceOutFilter.vue'; @@ -28,6 +27,7 @@ const hasSelectedCards = computed(() => selectedRows.value.length > 0); const MODEL = 'InvoiceOuts'; const { openReport } = usePrintService(); const addressOptions = ref([]); +const selectedOption = ref('ticket'); async function fetchClientAddress(id) { const { data } = await axios.get(`Clients/${id}/addresses`); @@ -214,7 +214,7 @@ watchEffect(selectedRows); :url="`${MODEL}/filter`" :create="{ urlCreate: 'InvoiceOuts/createManualInvoice', - title: t('Create manual invoice'), + title: t('createManualInvoice'), onDataSaved: ({ id }) => tableRef.redirect(id), formInitialData: { active: true, @@ -231,103 +231,142 @@ watchEffect(selectedRows); selection: 'multiple', }" > - - - {{ row.clientSocialName }} - - - - - - - - #{{ scope.opt?.id }} - {{ - scope.opt?.nickname - }} - - - - - - - - - O - - - - - - - - - - - - + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + en: - searchInvoice: Search issued invoice - fileDenied: Browser denied file download... - fileAllowed: Successful download of CSV file - youCanSearchByInvoiceReference: You can search by invoice reference - createInvoice: Make invoice Create manual invoice: Create manual invoice + searchInvoice: Search issued invoice + fileDenied: Browser denied file download... + fileAllowed: Successful download of CSV file + youCanSearchByInvoiceReference: You can search by invoice reference + createInvoice: Make invoice + createManualInvoice: Create manual invoice + es: - searchInvoice: Buscar factura emitida fileDenied: El navegador denegó la - descarga de archivos... fileAllowed: Descarga exitosa de archivo CSV - youCanSearchByInvoiceReference: Puedes buscar por referencia de la factura - createInvoice: Crear factura Create manual invoice: Crear factura manual - + searchInvoice: Buscar factura emitida + fileDenied: El navegador denegó la descarga de archivos... + fileAllowed: Descarga exitosa de archivo CSV + youCanSearchByInvoiceReference: Puedes buscar por referencia de la factura + createInvoice: Crear factura + createManualInvoice: Crear factura manual + diff --git a/src/pages/Order/Card/OrderCreateDialog.vue b/src/pages/Order/Card/OrderCreateDialog.vue index b2b031878..0a8b2ff2a 100644 --- a/src/pages/Order/Card/OrderCreateDialog.vue +++ b/src/pages/Order/Card/OrderCreateDialog.vue @@ -9,7 +9,6 @@ import VnRow from 'components/ui/VnRow.vue'; import VnSelect from 'components/common/VnSelect.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; import { useDialogPluginComponent } from 'quasar'; -import FetchData from 'components/FetchData.vue'; const { t } = useI18n(); const state = useState(); @@ -58,10 +57,6 @@ const fetchAgencyList = async (landed, addressFk) => { } }; -// const fetchOrderDetails = (order) => { -// fetchAddressList(order?.addressFk); -// fetchAgencyList(order?.landed, order?.addressFk); -// }; const $props = defineProps({ clientFk: { type: Number, @@ -73,39 +68,6 @@ const initialFormState = reactive({ addressId: null, clientFk: $props.clientFk, }); -// const orderMapper = (order) => { -// return { -// addressId: order.addressFk, -// agencyModeId: order.agencyModeFk, -// landed: new Date(order.landed).toISOString(), -// }; -// }; -// const orderFilter = { -// include: [ -// { relation: 'agencyMode', scope: { fields: ['name'] } }, -// { -// relation: 'address', -// scope: { fields: ['nickname'] }, -// }, -// { relation: 'rows', scope: { fields: ['id'] } }, -// { -// relation: 'client', -// scope: { -// fields: [ -// 'salesPersonFk', -// 'name', -// 'isActive', -// 'isFreezed', -// 'isTaxDataChecked', -// ], -// include: { -// relation: 'salesPersonUser', -// scope: { fields: ['id', 'name'] }, -// }, -// }, -// }, -// ], -// }; const onClientChange = async (clientId = $props.clientFk) => { try {