refactor: changed name of emitted event

This commit is contained in:
Jon Elias 2024-10-25 06:48:09 +02:00
parent c9e82f2caf
commit 994237260e
2 changed files with 3 additions and 3 deletions

View File

@ -476,7 +476,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
:ticket-config="ticketConfig"
@get-mana="getMana()"
@update-discounts="updateDiscount"
@re-calculated-price="resetChanges"
@refresh-table="resetChanges"
/>
<QBtn
color="primary"

View File

@ -14,7 +14,7 @@ import { toDateFormat } from 'src/filters/date';
import { useRole } from 'src/composables/useRole';
import { useVnConfirm } from 'composables/useVnConfirm';
const emit = defineEmits(['updateDiscounts', 'getMana', 'reCalculatedPrice']);
const emit = defineEmits(['updateDiscounts', 'getMana', 'refreshTable']);
const props = defineProps({
disable: {
@ -107,7 +107,7 @@ const calculateSalePrice = async () => {
await axios.post(`Sales/recalculatePrice`, props.sales);
notify(t('globals.dataSaved'), 'positive');
emit('reCalculatedPrice', props.sales);
emit('refreshTable', props.sales);
};
const changeMultipleDiscount = () => {