forked from verdnatura/salix-front
Fix total difference
This commit is contained in:
parent
3d0cbcfd12
commit
266657fab5
|
@ -106,10 +106,7 @@ const totalNewPrice = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const totalDifference = computed(() => {
|
const totalDifference = computed(() => {
|
||||||
return rows.value.reduce(
|
return rows.value.reduce((acc, item) => acc + item.component?.difference || 0, 0);
|
||||||
(acc, item) => acc + item.component.difference * item.quantity,
|
|
||||||
0
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const ticketHaveNegatives = () => {
|
const ticketHaveNegatives = () => {
|
||||||
|
|
Loading…
Reference in New Issue