diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js
index af5c90563..f596c5196 100644
--- a/src/i18n/en/index.js
+++ b/src/i18n/en/index.js
@@ -1047,7 +1047,9 @@ export default {
entries: 'Entries',
cloneShipping: 'Clone travel',
CloneTravelAndEntries: 'Clone travel and his entries',
+ deleteTravel: 'Delete travel',
AddEntry: 'Add entry',
+ thermographs: 'Thermographs',
},
variables: {
search: 'Id/Reference',
diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js
index 4035c9a63..dbaa3db14 100644
--- a/src/i18n/es/index.js
+++ b/src/i18n/es/index.js
@@ -1047,7 +1047,9 @@ export default {
entries: 'Entradas',
cloneShipping: 'Clonar envío',
CloneTravelAndEntries: 'Clonar travel y sus entradas',
+ deleteTravel: 'Eliminar envío',
AddEntry: 'Añadir entrada',
+ thermographs: 'Termógrafos',
},
variables: {
search: 'Id/Referencia',
diff --git a/src/pages/Entry/EntryCreate.vue b/src/pages/Entry/EntryCreate.vue
index d4eb8a3ef..3063845b0 100644
--- a/src/pages/Entry/EntryCreate.vue
+++ b/src/pages/Entry/EntryCreate.vue
@@ -1,7 +1,7 @@
@@ -48,12 +55,14 @@ const companiesOptions = ref([]);
@on-fetch="(data) => (companiesOptions = data)"
auto-load
/>
-
-
-
-
+
{
+
+
+
@@ -89,10 +96,32 @@ const setData = (entity) => {
+
+
+
+ {{ t('All travels with current agency') }}
+
+
+
es:
Go to module index: Ir al índice del módulo
+ The travel will be deleted: El envío será eliminado
+ Do you want to delete this travel?: ¿Quieres eliminar este envío?
+ All travels with current agency: Todos los envíos con la agencia actual
diff --git a/src/pages/Travel/Card/TravelDescriptorMenuItems.vue b/src/pages/Travel/Card/TravelDescriptorMenuItems.vue
new file mode 100644
index 000000000..17b9333ca
--- /dev/null
+++ b/src/pages/Travel/Card/TravelDescriptorMenuItems.vue
@@ -0,0 +1,108 @@
+
+
+
+
+ {{ t('travel.summary.cloneShipping') }}
+
+
+
+ {{ t('travel.summary.CloneTravelAndEntries') }}
+
+
+
+
+ {{ t('travel.summary.deleteTravel') }}
+
+
+
+
+
+ {{ t('travel.summary.AddEntry') }}
+
+
+
+
+
+
+es:
+ The travel will be deleted: El envío será eliminado
+ Do you want to delete this travel?: ¿Quieres eliminar este envío?
+
diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue
index d809f9142..3b025096f 100644
--- a/src/pages/Travel/Card/TravelSummary.vue
+++ b/src/pages/Travel/Card/TravelSummary.vue
@@ -1,23 +1,20 @@
+ (warehouses = data)"
+ auto-load
+ />
{
{{ t('components.cardDescriptor.moreOptions') }}
-
-
- {{ option.name }}
-
+
+
@@ -214,10 +291,9 @@ const redirectToCreateView = (queryParams) => {
-
+
{
row-key="id"
class="full-width q-mt-md"
>
-
-
-
-
-
-
- {{ props.value }}
-
-
-
-
-
-
- {{ props.value }}
-
-
+
+
+
+ {{ value }}
+
+
+
+
+
+
+ {{ entriesTotalHb }}
+ {{ entriesTotalFreight }}
+ {{ entriesTotalCc }}
+ {{ entriesTotalPallet }}
+ {{ entriesTotalM3 }}
+
+
+
+
+
+
diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue
index 18824503f..2942c8ebe 100644
--- a/src/pages/Travel/ExtraCommunity.vue
+++ b/src/pages/Travel/ExtraCommunity.vue
@@ -16,7 +16,7 @@ import { toCurrency } from 'src/filters';
import { useArrayData } from 'composables/useArrayData';
import { toDate } from 'src/filters';
import { usePrintService } from 'composables/usePrintService';
-import travelService from 'src/services/travel.service';
+import axios from 'axios';
const router = useRouter();
const stateStore = useStateStore();
@@ -222,9 +222,13 @@ const openReportPdf = () => {
};
const saveFieldValue = async (val, field, index) => {
- const id = rows.value[index].id;
- const params = { [field]: val };
- await travelService.updateTravel(id, params);
+ try {
+ const id = rows.value[index].id;
+ const params = { [field]: val };
+ await axios.patch(`Travels/${id}`, params);
+ } catch (err) {
+ console.error('Error updating travel');
+ }
};
const navigateToTravelId = (id) => {
diff --git a/src/services/travel.service.js b/src/services/travel.service.js
deleted file mode 100644
index 469b8b237..000000000
--- a/src/services/travel.service.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import axios from 'axios';
-
-const travelService = {
- getTravelEntries: async (param) => {
- try {
- return await axios.get(`Travels/${param}/getEntries`);
- } catch (err) {
- console.error(`Error fetching travel entries`, err);
- return err.response;
- }
- },
-
- updateTravel: async (id, params) => {
- try {
- return await axios.patch(`Travels/${id}`, params);
- } catch (err) {
- console.error(`Error updating travel`, err);
- return err.response;
- }
- },
-};
-
-export default travelService;