diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 814bf0c22..e15a144cc 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -1093,6 +1093,7 @@ export default { deleteTravel: 'Delete travel', AddEntry: 'Add entry', thermographs: 'Thermographs', + hb: 'HB', }, variables: { search: 'Id/Reference', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 6b5b3ad7c..8a140c36f 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -1093,6 +1093,7 @@ export default { deleteTravel: 'Eliminar envío', AddEntry: 'Añadir entrada', thermographs: 'Termógrafos', + hb: 'HB', }, variables: { search: 'Id/Referencia', diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 3b025096f..28f081a02 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -44,14 +44,14 @@ const entriesTableColumns = computed(() => { label: t('travel.summary.confirmed'), field: 'isConfirmed', name: 'isConfirmed', - align: 'center', + align: 'left', showValue: false, }, { label: t('travel.summary.entryId'), field: 'id', name: 'id', - align: 'center', + align: 'left', showValue: false, }, { @@ -68,6 +68,13 @@ const entriesTableColumns = computed(() => { align: 'left', showValue: true, }, + { + label: t('travel.summary.hb'), + field: 'hb', + name: 'hb', + align: 'left', + showValue: true, + }, { label: t('travel.summary.freight'), field: 'freightValue', @@ -151,27 +158,33 @@ const entriesTableRows = computed(() => { return entries.value; }); -const entriesTotalHb = computed(() => { - return entriesTableRows.value.reduce((acc, { hb }) => acc + hb, 0); -}); +const entriesTotalHb = computed(() => + entriesTableRows.value.reduce((acc, { hb }) => acc + hb, 0) +); -const entriesTotalFreight = computed(() => { - return toCurrency( +const entriesTotalFreight = computed(() => + toCurrency( entriesTableRows.value.reduce((acc, { freightValue }) => acc + freightValue, 0) - ); -}); + ) +); -const entriesTotalCc = computed(() => { - return entriesTableRows.value.reduce((acc, { cc }) => acc + cc, 0); -}); +const entriesTotalPackageValue = computed(() => + toCurrency( + entriesTableRows.value.reduce((acc, { packageValue }) => acc + packageValue, 0) + ) +); -const entriesTotalPallet = computed(() => { - return entriesTableRows.value.reduce((acc, { pallet }) => acc + pallet, 0); -}); +const entriesTotalCc = computed(() => + entriesTableRows.value.reduce((acc, { cc }) => acc + cc, 0) +); -const entriesTotalM3 = computed(() => { - return entriesTableRows.value.reduce((acc, { m3 }) => acc + m3, 0); -}); +const entriesTotalPallet = computed(() => + entriesTableRows.value.reduce((acc, { pallet }) => acc + pallet, 0) +); + +const entriesTotalM3 = computed(() => + entriesTableRows.value.reduce((acc, { m3 }) => acc + m3, 0) +); const getTravelEntries = async (id) => { try { @@ -320,7 +333,7 @@ async function setTravelData(travelData) {