diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index c8d83b6c4..9f5ae319c 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -81,7 +81,7 @@ onMounted(async () => { }); // Podemos enviarle al form la estructura de data inicial sin necesidad de fetchearla - state.set($props.model, $props.formInitialData ?? {}); + state.set($props.model, $props.formInitialData); if ($props.autoLoad && !$props.formInitialData) { await fetch(); } diff --git a/src/components/common/VnCurrency.vue b/src/components/common/VnCurrency.vue new file mode 100644 index 000000000..660c4e979 --- /dev/null +++ b/src/components/common/VnCurrency.vue @@ -0,0 +1,34 @@ + + + + + +es: + amount: importe + diff --git a/src/components/common/VnDms.vue b/src/components/common/VnDms.vue index d2651f5d8..d5c59517d 100644 --- a/src/components/common/VnDms.vue +++ b/src/components/common/VnDms.vue @@ -111,7 +111,7 @@ function addDefaultData(data) { diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue index 5591fd15c..05dff9a72 100644 --- a/src/pages/Customer/Card/CustomerSummary.vue +++ b/src/pages/Customer/Card/CustomerSummary.vue @@ -62,7 +62,7 @@ const creditWarning = computed(() => { - + {{ t('customer.summary.basicData') }} @@ -96,7 +96,7 @@ const creditWarning = computed(() => { /> - + {{ t('customer.summary.fiscalAddress') }} @@ -121,7 +121,7 @@ const creditWarning = computed(() => { - + {{ t('customer.summary.fiscalData') }} @@ -149,7 +149,7 @@ const creditWarning = computed(() => { - + {{ t('customer.summary.billingData') }} @@ -170,7 +170,7 @@ const creditWarning = computed(() => { /> - + {{ t('customer.summary.consignee') }} @@ -188,7 +188,7 @@ const creditWarning = computed(() => { /> - + {{ t('customer.summary.webAccess') }} diff --git a/src/pages/Customer/Payments/CustomerPaymentsFilter.vue b/src/pages/Customer/Payments/CustomerPaymentsFilter.vue index 74ea2c203..1b79868c0 100644 --- a/src/pages/Customer/Payments/CustomerPaymentsFilter.vue +++ b/src/pages/Customer/Payments/CustomerPaymentsFilter.vue @@ -1,9 +1,9 @@ @@ -51,28 +47,9 @@ function isValidNumber(value) { - { - if (value.includes(',')) - params.amount = params.amount.replace(',', '.'); - } - " - :rules="[ - (val) => isValidNumber(val) || !val || 'Please type a number', - ]" - lazy-rules - > - - - - + - diff --git a/src/pages/Department/Card/DepartmentSummary.vue b/src/pages/Department/Card/DepartmentSummary.vue index 40bb4c83d..ee511270b 100644 --- a/src/pages/Department/Card/DepartmentSummary.vue +++ b/src/pages/Department/Card/DepartmentSummary.vue @@ -36,7 +36,10 @@ onMounted(async () => { - + {{ t('Basic data') }} diff --git a/src/pages/Entry/Card/EntrySummary.vue b/src/pages/Entry/Card/EntrySummary.vue index 3861e0321..e1679ee5c 100644 --- a/src/pages/Entry/Card/EntrySummary.vue +++ b/src/pages/Entry/Card/EntrySummary.vue @@ -39,30 +39,47 @@ onMounted(async () => { const tableColumnComponents = { quantity: { component: () => 'span', + props: () => {}, }, stickers: { component: () => 'span', + props: () => {}, + event: () => {}, }, packagingFk: { component: () => 'span', + props: () => {}, + event: () => {}, }, weight: { component: () => 'span', + props: () => {}, + event: () => {}, }, packing: { component: () => 'span', + props: () => {}, + event: () => {}, }, grouping: { component: () => 'span', + props: () => {}, + event: () => {}, }, buyingValue: { component: () => 'span', + props: () => {}, + event: () => {}, }, amount: { component: () => 'span', + props: () => {}, + event: () => {}, }, pvp: { component: () => 'span', + props: () => {}, + event: () => {}, }, }; @@ -147,140 +164,91 @@ const fetchEntryBuys = async () => { :url="`Entries/${entityId}/getEntry`" @on-fetch="(data) => setEntryData(data)" > - - - - - {{ entry.id }} - {{ entry.supplier.nickname }} - + {{ t('globals.summary.basicData') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + {{ t('Travel data') }} - - - - - - - {{ entry.travel.ref }} - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + {{ entry.travel.ref }} + + + + + + + + + + + + + + + + + + @@ -297,7 +265,10 @@ const fetchEntryBuys = async () => { - + diff --git a/src/pages/InvoiceIn/Card/InvoiceInSummary.vue b/src/pages/InvoiceIn/Card/InvoiceInSummary.vue index 850b67cc3..1df785b9d 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInSummary.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInSummary.vue @@ -381,7 +381,7 @@ function getLink(param) { - + {{ t('invoiceIn.card.intrastat') }} diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index d8e742706..8915a96ec 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -9,6 +9,7 @@ import { toCurrency } from 'src/filters'; import FetchData from 'src/components/FetchData.vue'; import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; import CrudModel from 'src/components/CrudModel.vue'; +import VnCurrency from 'src/components/common/VnCurrency.vue'; const route = useRoute(); const { t } = useI18n(); @@ -225,7 +226,7 @@ async function addExpense() { - - - - - + /> @@ -328,7 +325,7 @@ async function addExpense() { - - - - - + /> - - - - - + diff --git a/src/pages/InvoiceOut/InvoiceOutFilter.vue b/src/pages/InvoiceOut/InvoiceOutFilter.vue index f8a430b51..985bfb085 100644 --- a/src/pages/InvoiceOut/InvoiceOutFilter.vue +++ b/src/pages/InvoiceOut/InvoiceOutFilter.vue @@ -6,6 +6,7 @@ import FetchData from 'components/FetchData.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; +import VnCurrency from 'src/components/common/VnCurrency.vue'; const { t } = useI18n(); const props = defineProps({ @@ -57,7 +58,11 @@ function setWorkers(data) { - + diff --git a/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue b/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue index 3adfa1d13..66b9257a0 100644 --- a/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue +++ b/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue @@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; +import VnCurrency from 'src/components/common/VnCurrency.vue'; const { t } = useI18n(); const props = defineProps({ @@ -84,7 +85,7 @@ const props = defineProps({ - { - + {{ t('globals.summary.basicData') }} @@ -105,7 +109,11 @@ const isAdministrative = computed(() => { - + {{ t('supplier.summary.billingData') }} @@ -124,7 +132,11 @@ const isAdministrative = computed(() => { - + {{ t('supplier.summary.fiscalData') }} @@ -155,7 +167,11 @@ const isAdministrative = computed(() => { /> - + {{ t('supplier.summary.fiscalAddress') }} diff --git a/src/pages/Worker/Card/WorkerSummary.vue b/src/pages/Worker/Card/WorkerSummary.vue index 176d9adf4..8867c4289 100644 --- a/src/pages/Worker/Card/WorkerSummary.vue +++ b/src/pages/Worker/Card/WorkerSummary.vue @@ -78,7 +78,7 @@ const filter = { @@ -102,10 +102,10 @@ const filter = { - + {{ t('worker.summary.personalPhone') }} - + diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js index a7d59883c..ce79dc976 100644 --- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js @@ -5,11 +5,12 @@ describe('InvoiceInList', () => { ':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content'; const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)'; const summaryHeaders = '.summaryBody .header'; + const screen = '.q-page-container > .q-drawer-container > .fullscreen'; beforeEach(() => { - cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/invoice-in/list`); + cy.get(screen).click(); }); it('should redirect on clicking a invoice', () => {