diff --git a/CHANGELOG.md b/CHANGELOG.md index 47f2f49d1..86ffce3fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,91 @@ +# Version 24.32 - 2024-08-06 + +### Added 🆕 + +- chore: refs #7197 drop space by:jorgep +- chore: refs #7197 drop useless attr by:jorgep +- chore: refs #7197 fix test by:jorgep +- chore: refs #7197 fix tests by:jorgep +- chore: refs #7197 fix unit tests by:jorgep +- chore: refs #7197 idrop useless class by:jorgep +- chore: refs #7197 improve form filling in Cypress tests by:jorgep +- chore: refs #7197 remove unused import by:jorgep +- feat: customerPayments card view by:alexm +- feat: refs #6943 lock grid mode by:jorgep +- feat: refs #6943 wip consumption filter by:jorgep +- feat: refs #7197 add correcting filter by:jorgep +- feat: refs #7197 add supplier activities filter option by:jorgep +- feat: refs #7197 summary responsive by:jorgep +- feat: refs #7323 fix descriptors, added VnTable and minor changes by:Jon +- feat: refs #7323 fixed tests, changed calendar styles and fix workerCreate by:Jon +- feat: refs #7356 list & weekly to VnTable and style fixes by:Jon +- feat: refs #7401 add menu options by:pablone +- feat: SalesClientTable by:Javier Segarra +- feat: salesOrderTable by:Javier Segarra +- feat: salesTicketTable by:Javier Segarra +- feat: VnTable SalesTicketTable by:Javier Segarra +- fix: columns style by:alexm + +### Changed 📦 + +- perf: LeftMenu show/hide by:Javier Segarra +- perf: refs #7356 TicketList state column by:Jon +- perf: VnFilterPanel (origin/7323_WorkerMigration_End) by:Javier Segarra +- perf: width SalesTicketsTable by:Javier Segarra +- refactor: #6943 wip use vnTable CustomerCredits by:jorgep +- refactor: CustomerNotifications use VnTable by:alexm +- refactor: CustomerPayments use VnTable by:alexm +- refactor: refs #7014 deleted main files and changed route files by:Jon +- refactor: refs #7014 improved route.js & deleted RouteMain by:Jon +- refactor: refs #7014 refactor Main.vue by:Jon +- refactor: refs #7014 refactor ZoneCard, deleted ZoneMain & created basic tests for functionality by:Jon +- refactor: refs #7197 use invoiceInSearchbar & queryParams by:jorgep +- refactor: refs #7323 hidden column filter proposal by:Jon +- refactor: refs #7356 fixed VnTable filters by:Jon +- refactor: refs #7356 requested changes by:Jon +- refactor: wip use vnTable CustomerCredits by:jorgep + +### Fixed 🛠️ + +- chore: refs #7197 fix test by:jorgep +- chore: refs #7197 fix tests by:jorgep +- chore: refs #7197 fix unit tests by:jorgep +- feat: refs #7323 fix descriptors, added VnTable and minor changes by:Jon +- feat: refs #7323 fixed tests, changed calendar styles and fix workerCreate by:Jon +- feat: refs #7356 list & weekly to VnTable and style fixes by:Jon +- fix(claim): small details (6336-claim-v6) by:alexm +- fix: columns style by:alexm +- fix: customer defaulter add amount order (6943-fixCustomer) by:alexm +- fix: customerDefaulter correct functionality by:alexm +- fix: customerNotifications filter by:alexm +- fix: fix conflicts by:Jon +- fix: refs #6101 fix TicketList by:Jon +- fix: refs #6891 worker tests by:jorgep +- fix: refs #6943 drop padding-left checkbox & create wrap mode vnRow by:jorgep +- fix: refs #6943 prevent undefined by:jorgep +- fix: refs #7014 fix tests by:Jon +- fix: refs #7014 fix wagon module by:Jon +- fix: refs #7197 add url InvoiceInSearchbar by:jorgep +- fix: refs #7197 amount reactivity by:jorgep +- fix: refs #7197 drop character by:jorgep +- fix: refs #7197 reactivity invoiceCorrection by:jorgep +- fix: refs #7197 responsive summary layout by:jorgep +- fix: refs #7197 rollback by:jorgep +- fix: refs #7197 rollback crudModel by:jorgep +- fix: refs #7197 setInvoiceInCorrecition by:jorgep +- fix: refs #7197 vat, intrastat, filter and list sections by:jorgep +- fix: refs #7323 fix department & email table filter by:Jon +- fix: refs #7323 fixed left filter by:Jon +- fix: refs #7323 fix workerTimeControl form by:Jon +- fix: refs #7401 fix routeForm by:pablone +- fix: refs #7401 remove console.log by:pablone +- fix: refs CAU 207504 fix itemDiary and logs by:Jon +- fix: workerCreate form street field to be always upperCase by:Jon +- hotfix: refs CAU #207614 fix sale.concept field by:Jon +- refactor: refs #7356 fixed VnTable filters by:Jon +- refs #6898 fix by:carlossa +- Ticket expedition initial load fix by:wbuezas + # Version 24.28 - 2024-07-09 ### Added 🆕 diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 4e40c0ba6..be39570ee 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -382,7 +382,6 @@ defineExpose({ diff --git a/src/components/common/VnInputTime.vue b/src/components/common/VnInputTime.vue index a59f0e9e8..7ee93de19 100644 --- a/src/components/common/VnInputTime.vue +++ b/src/components/common/VnInputTime.vue @@ -50,7 +50,7 @@ const formattedTime = computed({ } if (!props.timeOnly) { const [hh, mm] = time.split(':'); - const date = model.value ?? Date.vnNew(); + const date = new Date(model.value ? model.value : null); date.setHours(hh, mm, 0); time = date?.toISOString(); } @@ -62,7 +62,7 @@ const formattedTime = computed({ function dateToTime(newDate) { return date.formatDate(new Date(newDate), dateFormat); } -const timeField = ref(); + watch( () => model.value, (val) => (formattedTime.value = val), @@ -153,4 +153,3 @@ watch( es: Open time: Abrir tiempo -, nextTick diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index c27111df4..68927bc01 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -116,7 +116,7 @@ watch( watch( () => [props.url, props.filter], - ([url, filter]) => fetch({ url, filter }) + ([url, filter]) => mounted.value && fetch({ url, filter }) ); const addFilter = async (filter, params) => { diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 0c7a8a3f6..2053efd62 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -67,6 +67,10 @@ const props = defineProps({ type: Boolean, default: true, }, + searchUrl: { + type: String, + default: 'params', + }, }); const searchText = ref(''); diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 50d620a34..651bcefb0 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -28,7 +28,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { delete params.filter; store.userParams = { ...params, ...store.userParams }; store.userFilter = { ...filter, ...store.userFilter }; - if (filter.order) store.order = filter.order; + if (filter?.order) store.order = filter.order; } }); diff --git a/src/pages/Account/Card/AccountMailAlias.vue b/src/pages/Account/Card/AccountMailAlias.vue index 99ce3ab22..594353219 100644 --- a/src/pages/Account/Card/AccountMailAlias.vue +++ b/src/pages/Account/Card/AccountMailAlias.vue @@ -85,7 +85,7 @@ const fetchMailAliases = async () => { paginateRef.value.fetch(); }; -const getAccountData = async () => { +const getAccountData = async (reload = true) => { loading.value = true; hasAccount.value = await fetchAccountExistence(); if (!hasAccount.value) { @@ -93,7 +93,7 @@ const getAccountData = async () => { store.data = []; return; } - await fetchMailAliases(); + reload && (await fetchMailAliases()); loading.value = false; }; @@ -102,13 +102,11 @@ const openCreateMailAliasForm = () => createMailAliasDialogRef.value.show(); watch( () => route.params.id, () => { - store.url = urlPath; - store.filter = filter.value; getAccountData(); } ); -onMounted(async () => await getAccountData()); +onMounted(async () => await getAccountData(false));