diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue
index b6a60122c..3bf6bfa2e 100644
--- a/src/pages/Ticket/Card/TicketSummary.vue
+++ b/src/pages/Ticket/Card/TicketSummary.vue
@@ -38,9 +38,11 @@ const ticket = computed(() => summaryRef.value?.entity);
const editableStates = ref([]);
const ticketUrl = ref();
const grafanaUrl = 'https://grafana.verdnatura.es';
+const roundingName = ref();
onMounted(async () => {
ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/';
+ getTicketData();
});
function formattedAddress() {
@@ -101,6 +103,27 @@ function getNoteValue(description) {
function toTicketUrl(section) {
return '#/ticket/' + entityId.value + '/' + section;
}
+
+const getTicketData = async () => {
+ const { data } = await axios.get(`tickets/filter`, {
+ params: { id: entityId.value },
+ });
+
+ if (data) {
+ roundingName.value = data[0]?.hasRounding;
+ ticket.value.sales.map((sale) => {
+ return {
+ ...sale,
+ hasRounding: false,
+ };
+ });
+ ticket.value.sales.forEach((sale) => {
+ if (roundingName?.value?.includes(sale.concept)) {
+ sale.hasRounding = true;
+ }
+ });
+ }
+};
@@ -407,6 +430,16 @@ function toTicketUrl(section) {
{{ t('ticket.summary.hasComponentLack') }}
+
+
+ {{ t('ticketList.rounding') }}
+
+
diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue
index ad97e75c1..a375312c4 100644
--- a/src/pages/Ticket/TicketList.vue
+++ b/src/pages/Ticket/TicketList.vue
@@ -541,14 +541,14 @@ function setReference(data) {
size="xs"
>
- {{ t('Rounding') }}
+ {{ t('ticketList.rounding') }}