## -*- coding: utf-8 -*- <%! def amount(text): # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers) return text.replace('-', '‑') %> <%setLang(user.lang)%>
${_('Chart of Account')}
${_('Fiscal Year')}
%if filter_form(data) == 'filter_date': ${_('Dates Filter')} %else: ${_('Periods Filter')} %endif
${_('Clearance Date')}
${_('Accounts Filter')}
${_('Target Moves')}
${ chart_account.name }
${ fiscalyear.name if fiscalyear else '-' }
${_('From:')} %if filter_form(data) == 'filter_date': ${formatLang(start_date, date=True) if start_date else u'' } %else: ${start_period.name if start_period else u''} %endif ${_('To:')} %if filter_form(data) == 'filter_date': ${ formatLang(stop_date, date=True) if stop_date else u'' } %else: ${stop_period.name if stop_period else u'' } %endif
${ formatLang(date_until, date=True) }
%if partner_ids: ${_('Custom Filter')} %else: ${ display_partner_account(data) } %endif
${ display_target_move(data) }
<% balance_list = [] classif_list = [] classif_list_2 = [] %> %for account in objects: %if aged_open_inv[account.id] and partners_order[account.id]:
${account.code} - ${account.name}
%for partner_name, p_id, p_ref, p_name in partners_order[account.id]:
${partner_name or _('No Partner')}
## date
${_('Date')}
## move
${_('Entry')}
## journal
${_('Journal')}
## label
${_('Label')}
## reconcile
${_('Rec.')}
## maturity
${_('Due Date')}
## balance
${_('Amount')}
## Classifications %for title in ranges_titles:
${title}
%endfor
%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
%endfor # end of the loop on partners
<% balance_list.append(aged_open_inv[account.id]['balance']) %> %for classif in ranges: <% classif_list.append(aged_open_inv[account.id][classif]) %> %endfor
%endif %endfor # end of the loop on accounts
<% 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]) %>
%for cf in classif_list_2: %endfor