${partner_name or _('No Partner')}
%for line in aged_open_inv[account.id][p_id].get('lines', []):
## date
${formatLang(line.get('ldate') or '', date=True)}
## move
${line.get('move_name') or ''}
## journal
${line.get('jcode') or ''}
## label
${line.get('lname')}
## reconcile
${line.get('rec_name') or ''}
## maturity date
${formatLang(line.get('date_maturity') or '', date=True)}
## balance
${formatLang(line.get('balance') or 0.0) | amount }
## classifications
%for classif in ranges:
${formatLang(line.get(classif) or 0.0) | amount }
%endfor
%endfor # end of the loop on lines
${_('Total Partner')}
${formatLang(aged_open_inv[account.id][p_id]['balance']) | amount}
%for classif in ranges:
${formatLang(aged_open_inv[account.id][p_id][classif]) | amount }
%endfor
${_('Total')}
${formatLang(aged_open_inv[account.id]['balance']) | amount}
<%
balance_list.append(aged_open_inv[account.id]['balance'])
%>
%for classif in ranges:
${formatLang(aged_open_inv[account.id][classif]) | amount }
<%
classif_list.append(aged_open_inv[account.id][classif])
%>
%endfor
<%
classif_list = [classif_list[i:i+6] for i in range(0, len(classif_list), 6)]
for i in range(6):
classif_list_2.append([line[i] for line in classif_list])
%>
${_('Overall Total')}
${formatLang(sum(balance_list)) | amount}
%for cf in classif_list_2:
${formatLang(sum(cf)) | amount}
%endfor