0
0
Fork 0

Fix total difference

This commit is contained in:
William Buezas 2024-06-25 08:35:11 -03:00
parent 3d0cbcfd12
commit 266657fab5
1 changed files with 1 additions and 4 deletions

View File

@ -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, 0);
});
const ticketHaveNegatives = () => {