forked from verdnatura/salix-front
Merge branch 'feature/TicketBasicData' of https://gitea.verdnatura.es/hyervoni/salix-front-mindshore into feature/TicketBasicData
This commit is contained in:
commit
0816105e5f
|
@ -113,7 +113,7 @@ const totalNewPrice = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const totalDifference = computed(() => {
|
const totalDifference = computed(() => {
|
||||||
return rows.value.reduce((acc, item) => acc + item.component.difference, 0);
|
return rows.value.reduce((acc, item) => acc + item.component?.difference || 0, 0);
|
||||||
});
|
});
|
||||||
const showMovablecolumn = computed(() => (haveDifferences.value > 0 ? ['movable'] : []));
|
const showMovablecolumn = computed(() => (haveDifferences.value > 0 ? ['movable'] : []));
|
||||||
const haveDifferences = computed(() => _ticketData.value.sale.haveDifferences);
|
const haveDifferences = computed(() => _ticketData.value.sale.haveDifferences);
|
||||||
|
|
Loading…
Reference in New Issue