diff --git a/src/pages/Ticket/Card/BasicData/BasicDataTable.vue b/src/pages/Ticket/Card/BasicData/BasicDataTable.vue index ef7d10a46..c14c95a70 100644 --- a/src/pages/Ticket/Card/BasicData/BasicDataTable.vue +++ b/src/pages/Ticket/Card/BasicData/BasicDataTable.vue @@ -106,10 +106,7 @@ const totalNewPrice = computed(() => { }); const totalDifference = computed(() => { - return rows.value.reduce( - (acc, item) => acc + item.component.difference * item.quantity, - 0 - ); + return rows.value.reduce((acc, item) => acc + item.component.difference, 0); }); const ticketHaveNegatives = () => { @@ -225,6 +222,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); :pagination="{ rowsPerPage: 0 }" class="full-width q-mt-md" :no-data-label="t('globals.noResults')" + flat > - + onFormModelInit()); - +