Skip to content
Advertisement

Several group totals of an array

I want to display an array (which is already has been sorted) and want to show all rows of the array including some group totals (in this case the totals of one order and the totals per month. Here is the code which I have so far. When I “strip” the code and only do the totals on either order or month is works like a charm, together I don’t see the solution…

Here’s the code I have so far:

JavaScript

Advertisement

Answer

Try this… it’s not the way I would have done it, but based on your code, at least it should work…

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement