refs #5835 migrateInvoiceIn #110

Merged
jorgep merged 29 commits from 5835-migrateInvoiceIn into dev 2023-12-13 10:25:07 +00:00
1 changed files with 5 additions and 4 deletions
Showing only changes of commit b00cff8b0b - Show all commits

View File

@ -164,10 +164,11 @@ function getAmountNotMatch(totals) {
}
function getIntrastatTotals(intrastat) {
const totals = {};
totals.amount = intrastat.reduce((acc, cur) => acc + cur.amount, 0);
totals.net = intrastat.reduce((acc, cur) => acc + cur.net, 0);
totals.stems = intrastat.reduce((acc, cur) => acc + cur.stems, 0);
const totals = {
amount: intrastat.reduce((acc, cur) => acc + cur.amount, 0),
net: intrastat.reduce((acc, cur) => acc + cur.net, 0),
stems: intrastat.reduce((acc, cur) => acc + cur.stems, 0),
};
return totals;
}