## -*- coding: utf-8 -*- <%! def amount(text): return text.replace('-', '‑') # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers) %> <%setLang(user.lang)%>
${_('Chart of Account')}
${_('Fiscal Year')}
%if filter_form(data) == 'filter_date': ${_('Dates Filter')} %else: ${_('Periods Filter')} %endif
${_('Journal 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
%if journals(data): ${', '.join([journal.name for journal in journals(data)])} %else: ${_('All')} %endif
${ display_target_move(data) }
%for journal_period in objects: <% account_total_debit = 0.0 account_total_credit = 0.0 account_total_currency = 0.0 %>
${journal_period.journal_id.name} - ${journal_period.period_id.name}
## date
${_('Date')}
## move
${_('Entry')}
## account code
${_('Account')}
## date
${_('Due Date')}
## partner
${_('Partner')}
## label
${_('Label')}
## debit
${_('Debit')}
## credit
${_('Credit')}
%if amount_currency(data): ## currency balance
${_('Curr. Balance')}
## curency code
${_('Curr.')}
%endif
%for move in journal_period.moves: <% new_move = True %> %for line in move.line_id:
<% account_total_debit += line.debit or 0.0 account_total_credit += line.credit or 0.0 %>
## date
${formatLang(move.date, date=True) if new_move else ''}
## move
${move.name if new_move else ''}
## account code
${line.account_id.code}
## date
${formatLang(line.date_maturity or '', date=True)}
## partner
${line.partner_id.name if new_move else ''}
## label
${line.name}
## debit
${formatLang(line.debit) if line.debit else ''}
## credit
${formatLang(line.credit) if line.credit else ''}
%if amount_currency(data): ## currency balance
${formatLang(line.amount_currency) if line.amount_currency else ''}
## curency code
${line.currency_id.symbol or ''}
%endif
<% new_move = False %>
%endfor %endfor
## date
## move
## account code
## date
## partner
## label
## debit
${formatLang(account_total_debit) | amount }
## credit
${formatLang(account_total_credit) | amount }
%if amount_currency(data): ## currency balance
## currency code
%endif
%endfor