Skip to content

Commit 120fe77

Browse files
committed
wip
1 parent 313b1fa commit 120fe77

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/routes/admin/accounting/+page.svelte

+1-12
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,7 @@
6161
if (arr.length === 0) {
6262
return;
6363
}
64-
const accumulated = arr.reduce(
65-
(acc, current) => {
66-
acc.capped += current.capped;
67-
acc.uncapped += current.uncapped;
68-
acc.taxameter += current.taxameter;
69-
acc.availabilityDuration += current.availabilityDuration;
70-
acc.customerCount += current.customerCount;
71-
acc.verifiedCustomerCount += current.verifiedCustomerCount;
72-
return acc;
73-
},
74-
{ capped: 0, uncapped: 0, taxameter: 0, availabilityDuration: 0, customerCount: 0, verifiedCustomerCount: 0 }
75-
);
64+
const accumulated = accumulatedCompanyRowEntries(arr);
7665
newCompanyRows.push({ ...accumulated, companyName: arr[0].companyName, companyId });
7766
});
7867
if (newCompanyRows.length === 0) {

0 commit comments

Comments
 (0)