%for partner_name, p_id, p_ref, p_name in acc.partners_order:
%if acc.aged_lines.get(p_id):
<%line = acc.aged_lines[p_id]%>
<%percents = acc.aged_percents%>
<%totals = acc.aged_totals%>
${partner_name}
TOSEPC
${formatLang(line.get('balance') or 0.0) | amount}
%for classif in ranges:
${formatLang(line['aged_lines'][classif] or 0.0) | amount}
%endfor
%endif
%endfor
${_('Total')}
${formatLang(totals['balance']) | amount}
%for classif in ranges:
${formatLang(totals[classif]) | amount}
%endfor
${_('Percents')}
%for classif in ranges:
${formatLang(percents[classif]) | amount}%
%endfor