diff --git a/src/pages/Ticket/Card/BasicData/BasicDataTable.vue b/src/pages/Ticket/Card/BasicData/BasicDataTable.vue index 8ba56213b..48b8c882f 100644 --- a/src/pages/Ticket/Card/BasicData/BasicDataTable.vue +++ b/src/pages/Ticket/Card/BasicData/BasicDataTable.vue @@ -116,12 +116,12 @@ const totalDifference = computed(() => { return rows.value.reduce((acc, item) => acc + item.component?.difference || 0, 0); }); const showMovablecolumn = computed(() => (haveDifferences.value > 0 ? ['movable'] : [])); -const haveDifferences = computed(() => _ticketData.value.sale.haveDifferences); +const haveDifferences = computed(() => _ticketData.value.sale?.haveDifferences); const ticketHaveNegatives = () => { let _haveNegatives = false; let haveNotNegatives = false; _ticketData.value.withoutNegatives = false; - _ticketData.value.sale.items.forEach((item) => { + _ticketData.value?.sale?.items.forEach((item) => { if (item.quantity > item.movable) _haveNegatives = true; else haveNotNegatives = true; }); diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue index e8ed8bc0f..af47761a2 100644 --- a/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue @@ -156,7 +156,6 @@ onBeforeMount(async () => await getTicketData()); v-model="step" ref="stepperRef" color="primary" - header-nav animated keep-alive style="max-width: 800px; margin: auto" @@ -176,19 +175,19 @@ onBeforeMount(async () => await getTicketData()); />