For each line I need to summate the lineWeeklyRate of the line and any accessories that belong to that line.
I have tried the following and I know I need to use some sort of for-each or position, because at present the template is called for each line and summates ALL lines and accessories, hence giving the same total on all lines.