1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <style type="text/css">
7 text-overflow: ellipsis;
17 return text.replace('-', '‑') # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers)
20 <%setLang(user.lang)%>
22 <div class="act_as_table data_table">
23 <div class="act_as_row labels">
24 <div class="act_as_cell">${_('Chart of Account')}</div>
25 <div class="act_as_cell">${_('Fiscal Year')}</div>
26 <div class="act_as_cell">
27 %if filter_form(data) == 'filter_date':
30 ${_('Periods Filter')}
33 <div class="act_as_cell">${_('Journal Filter')}</div>
34 <div class="act_as_cell">${_('Target Moves')}</div>
36 <div class="act_as_row">
37 <div class="act_as_cell">${ chart_account.name }</div>
38 <div class="act_as_cell">${ fiscalyear.name if fiscalyear else '-' }</div>
39 <div class="act_as_cell">
41 %if filter_form(data) == 'filter_date':
42 ${formatLang(start_date, date=True) if start_date else u'' }
44 ${start_period.name if start_period else u''}
47 %if filter_form(data) == 'filter_date':
48 ${ formatLang(stop_date, date=True) if stop_date else u'' }
50 ${stop_period.name if stop_period else u'' }
53 <div class="act_as_cell">
55 ${', '.join([journal.name for journal in journals(data)])}
61 <div class="act_as_cell">${ display_target_move(data) }</div>
65 %for journal_period in objects:
67 account_total_debit = 0.0
68 account_total_credit = 0.0
69 account_total_currency = 0.0
72 <div class="account_title bg" style="width: 1080px; margin-top: 20px; font-size: 12px;">${journal_period.journal_id.name} - ${journal_period.period_id.name}</div>
74 <!-- we use div with css instead of table for tabular data because div do not cut rows at half at page breaks -->
75 <div class="act_as_table list_table" style="margin-top: 5px;">
76 <div class="act_as_thead">
77 <div class="act_as_row labels">
79 <div class="act_as_cell first_column">${_('Date')}</div>
81 <div class="act_as_cell">${_('Entry')}</div>
83 <div class="act_as_cell">${_('Account')}</div>
85 <div class="act_as_cell">${_('Due Date')}</div>
87 <div class="act_as_cell" style="width: 280px;">${_('Partner')}</div>
89 <div class="act_as_cell" style="width: 310px;">${_('Label')}</div>
91 <div class="act_as_cell amount">${_('Debit')}</div>
93 <div class="act_as_cell amount">${_('Credit')}</div>
94 %if amount_currency(data):
96 <div class="act_as_cell amount sep_left">${_('Curr. Balance')}</div>
98 <div class="act_as_cell amount" style="text-align: right;">${_('Curr.')}</div>
102 %for move in journal_period.moves:
107 %for line in move.line_id:
108 <div class="act_as_tbody">
110 account_total_debit += line.debit or 0.0
111 account_total_credit += line.credit or 0.0
113 <div class="act_as_row lines">
115 <div class="act_as_cell first_column">${formatLang(move.date, date=True) if new_move else ''}</div>
117 <div class="act_as_cell">${move.name if new_move else ''}</div>
119 <div class="act_as_cell">${line.account_id.code}</div>
121 <div class="act_as_cell">${formatLang(line.date_maturity or '', date=True)}</div>
123 <div class="act_as_cell overflow_ellipsis" style="width: 280px;">${line.partner_id.name if new_move else ''}</div>
125 <div class="act_as_cell overflow_ellipsis" style="width: 310px;">${line.name}</div>
127 <div class="act_as_cell amount">${formatLang(line.debit) if line.debit else ''}</div>
129 <div class="act_as_cell amount">${formatLang(line.credit) if line.credit else ''}</div>
130 %if amount_currency(data):
132 <div class="act_as_cell amount sep_left">${formatLang(line.amount_currency) if line.amount_currency else ''}</div>
134 <div class="act_as_cell amount" style="text-align: right;">${line.currency_id.symbol or ''}</div>
143 <div class="act_as_row lines labels">
145 <div class="act_as_cell first_column"></div>
147 <div class="act_as_cell"></div>
149 <div class="act_as_cell"></div>
151 <div class="act_as_cell"></div>
153 <div class="act_as_cell" style="width: 280px;"></div>
155 <div class="act_as_cell" style="width: 310px;"></div>
157 <div class="act_as_cell amount">${formatLang(account_total_debit) | amount }</div>
159 <div class="act_as_cell amount">${formatLang(account_total_credit) | amount }</div>
160 %if amount_currency(data):
162 <div class="act_as_cell amount sep_left"></div>
164 <div class="act_as_cell" style="text-align: right; right;"></div>