forked from verdnatura/salix-front
Merge pull request 'Hotfix: reload window when price is recalculated' (!863) from Hotfix-RecalculatePriceReload into master
Reviewed-on: verdnatura/salix-front#863 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
32a9a40392
|
@ -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"
|
||||||
|
@refresh-table="resetChanges"
|
||||||
/>
|
/>
|
||||||
<QBtn
|
<QBtn
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|
|
@ -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', 'refreshTable']);
|
||||||
|
|
||||||
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('refreshTable', props.sales);
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeMultipleDiscount = () => {
|
const changeMultipleDiscount = () => {
|
||||||
|
|
Loading…
Reference in New Issue