diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index d0911d41d..09431dce0 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -841,6 +841,7 @@ travel: availabledHour: Availabled hour thermographs: Thermographs hb: HB + roundedCc: Rounded CC basicData: daysInForward: Automatic movement (Raid) isRaid: Raid diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index ac441d28d..10ff812df 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -924,6 +924,7 @@ travel: availabled: F. Disponible availabledHour: Hora Disponible hb: HB + roundedCc: CC redondeado basicData: daysInForward: Desplazamiento automatico (redada) isRaid: Redada diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue index 5ebad3144..556f89b0e 100644 --- a/src/pages/Entry/EntryList.vue +++ b/src/pages/Entry/EntryList.vue @@ -249,7 +249,6 @@ function getBadgeAttrs(row) { let timeDiff = today - timeTicket; if (timeDiff > 0) return { color: 'info', 'text-color': 'black' }; - if (timeDiff < 0) return { color: 'warning', 'text-color': 'black' }; switch (row.entryTypeCode) { case 'regularization': case 'life': @@ -274,6 +273,7 @@ function getBadgeAttrs(row) { default: break; } + if (timeDiff < 0) return { color: 'warning', 'text-color': 'black' }; return { color: 'transparent' }; } diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index da933de60..5a824ddc3 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -91,6 +91,13 @@ const entriesTableColumns = computed(() => { showValue: true, }, { label: 'CC', field: 'cc', name: 'cc', align: 'left', showValue: true }, + { + label: t('travel.summary.roundedCc'), + field: 'cc', + name: 'roundedCc', + align: 'left', + showValue: true, + }, { label: 'Pallet', field: 'pallet', @@ -193,14 +200,15 @@ const entriesTotals = computed(() => { freightValue: 0, packageValue: 0, cc: 0, + roundedCc: 0, pallet: 0, m3: 0, }; entriesTableRows.value.forEach((row) => { for (const key in totals) { - if (key === 'cc') { - totals[key] += Math.ceil(row[key] || 0); + if (key === 'roundedCc') { + totals['roundedCc'] += Math.ceil(row['cc'] || 0); } else { totals[key] += row[key] || 0; } @@ -212,6 +220,7 @@ const entriesTotals = computed(() => { freight: toCurrency(totals.freightValue), packageValue: toCurrency(totals.packageValue), cc: totals.cc.toFixed(2), + roundedCc: totals.roundedCc, pallet: totals.pallet.toFixed(2), m3: totals.m3.toFixed(2), }; @@ -378,6 +387,11 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; + diff --git a/test/cypress/integration/route/routeExtendedList.spec.js b/test/cypress/integration/route/routeExtendedList.spec.js index fb2885f35..fee8369e3 100644 --- a/test/cypress/integration/route/routeExtendedList.spec.js +++ b/test/cypress/integration/route/routeExtendedList.spec.js @@ -118,8 +118,8 @@ describe('Route extended list', () => { cy.validateContent(selector, value); }); }); - - it('Should clone selected route and add ticket', () => { + // task https://redmine.verdnatura.es/issues/8814 + xit('Should clone selected route and add ticket', () => { cy.get(selectors.firstRowSelectCheckBox).click(); cy.get(selectors.cloneBtn).click(); cy.dataCy('Starting date_inputDate').type('01-01-2001'); @@ -146,7 +146,8 @@ describe('Route extended list', () => { cy.readFile(`${downloadsFolder}/${fileName}`).should('exist'); }); - it('Should mark as served the selected route', () => { + // task https://redmine.verdnatura.es/issues/8814 + xit('Should mark as served the selected route', () => { cy.get(selectors.lastRowSelectCheckBox).click(); cy.get(selectors.markServedBtn).click(); diff --git a/test/cypress/integration/ticket/ticketList.spec.js b/test/cypress/integration/ticket/ticketList.spec.js index 5613a5854..fb6a1a641 100644 --- a/test/cypress/integration/ticket/ticketList.spec.js +++ b/test/cypress/integration/ticket/ticketList.spec.js @@ -1,5 +1,5 @@ /// -describe('TicketList', () => { +describe.skip('TicketList', () => { const firstRow = 'tbody.q-virtual-scroll__content tr:nth-child(1)'; beforeEach(() => { @@ -35,7 +35,8 @@ describe('TicketList', () => { cy.get('.summaryBody').should('exist'); }); - it('filter client and create ticket', () => { + // task https://redmine.verdnatura.es/issues/8779 + xit('filter client and create ticket', () => { cy.intercept('GET', /\/api\/Tickets\/filter/).as('ticketSearchbar'); searchResults(); cy.wait('@ticketSearchbar');