1 ## -*- coding: utf-8 -*-
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
6 <style type="text/css">
8 text-overflow: ellipsis;
13 .open_invoice_previous_line {
30 width: ${700/len(ranges)}px;
41 # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers)
42 return text.replace('-', '‑')
45 <%setLang(user.lang)%>
47 <div class="act_as_table data_table">
48 <div class="act_as_row labels">
49 <div class="act_as_cell">${_('Chart of Account')}</div>
50 <div class="act_as_cell">${_('Fiscal Year')}</div>
51 <div class="act_as_cell">
52 %if filter_form(data) == 'filter_date':
55 ${_('Periods Filter')}
58 <div class="act_as_cell">${_('Clearance Date')}</div>
59 <div class="act_as_cell">${_('Accounts Filter')}</div>
60 <div class="act_as_cell">${_('Target Moves')}</div>
63 <div class="act_as_row">
64 <div class="act_as_cell">${ chart_account.name }</div>
65 <div class="act_as_cell">${ fiscalyear.name if fiscalyear else '-' }</div>
66 <div class="act_as_cell">
68 %if filter_form(data) == 'filter_date':
69 ${formatLang(start_date, date=True) if start_date else u'' }
71 ${start_period.name if start_period else u''}
74 %if filter_form(data) == 'filter_date':
75 ${ formatLang(stop_date, date=True) if stop_date else u'' }
77 ${stop_period.name if stop_period else u'' }
80 <div class="act_as_cell">${ formatLang(date_until, date=True) }</div>
81 <div class="act_as_cell">
85 ${ display_partner_account(data) }
88 <div class="act_as_cell">${ display_target_move(data) }</div>
93 <div class="account_title bg" style="width: 1080px; margin-top: 20px; font-size: 12px;">${acc.code} - ${acc.name}</div>
97 <div class="act_as_table list_table" style="margin-top: 5px;">
98 <div class="act_as_thead">
99 <div class="act_as_row labels">
101 <div class="act_as_cell first_column" style="width: 60px;">${_('Partner')}</div>
103 <div class="act_as_cell" style="width: 70px;">${_('code')}</div>
105 <div class="act_as_cell classif_title" style="width: 70px;">${_('balance')}</div>
107 %for title in ranges_titles:
108 <div class="act_as_cell classif classif_title">${title}</div>
112 <div class="act_as_tbody">
113 %for partner_name, p_id, p_ref, p_name in acc.partners_order:
114 %if acc.aged_lines.get(p_id):
115 <div class="act_as_row lines">
116 <%line = acc.aged_lines[p_id]%>
117 <%percents = acc.aged_percents%>
118 <%totals = acc.aged_totals%>
119 <div class="act_as_cell first_column">${partner_name}</div>
120 <div class="act_as_cell">${p_ref or ''}</div>
122 <div class="act_as_cell amount">${formatLang(line.get('balance') or 0.0) | amount}</div>
123 %for classif in ranges:
124 <div class="act_as_cell classif amount">
125 ${formatLang(line['aged_lines'][classif] or 0.0) | amount}
131 <div class="act_as_row labels">
132 <div class="act_as_cell total">${_('Total')}</div>
133 <div class="act_as_cell"></div>
134 <div class="act_as_cell amount classif total">${formatLang(totals['balance']) | amount}</div>
135 %for classif in ranges:
136 <div class="act_as_cell amount classif total">${formatLang(totals[classif]) | amount}</div>
140 <div class="act_as_row">
141 <div class="act_as_cell"><b>${_('Percents')}</b></div>
142 <div class="act_as_cell"></div>
143 <div class="act_as_cell"></div>
144 %for classif in ranges:
145 <div class="act_as_cell amount percent_line classif">${formatLang(percents[classif]) | amount}%</div>