0
0
Fork 0

Compare commits

...

3 Commits

2 changed files with 3 additions and 1 deletions

View File

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

View File

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