Browse Source

[IMP] correct/add reference field in financial reports

pull/7/merge
Matthieu Dietrich 11 years ago
committed by Guewen Baconnier
parent
commit
749f3627ad
  1. 24
      account_financial_report_webkit/report/templates/account_report_general_ledger.mako
  2. 20
      account_financial_report_webkit/report/templates/account_report_partners_ledger.mako
  3. 20
      account_financial_report_webkit/report/templates/grouped_by_curr_open_invoices_inclusion.mako.html
  4. 16
      account_financial_report_webkit/report/templates/open_invoices_inclusion.mako.html

24
account_financial_report_webkit/report/templates/account_report_general_ledger.mako

@ -23,7 +23,11 @@
initial_balance_text = {'initial_balance': _('Computed'), 'opening_balance': _('Opening Entries'), False: _('No')}
%>
<div class="act_as_table data_table">
%if amount_currency(data):
<div class="act_as_table data_table" style="width: 1205px;">
%else:
<div class="act_as_table data_table" style="width: 1100px;">
%endif
<div class="act_as_row labels">
<div class="act_as_cell">${_('Chart of Account')}</div>
<div class="act_as_cell">${_('Fiscal Year')}</div>
@ -82,7 +86,7 @@
cumul_balance_curr = 0.0
%>
<div class="act_as_table list_table" style="margin-top: 10px;">
<div class="act_as_caption account_title">
${account.code} - ${account.name}
</div>
@ -93,15 +97,17 @@
## period
<div class="act_as_cell" style="width: 50px;">${_('Period')}</div>
## move
<div class="act_as_cell" style="width: 60px;">${_('Entry')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Entry')}</div>
## journal
<div class="act_as_cell" style="width: 70px;">${_('Journal')}</div>
## account code
<div class="act_as_cell" style="width: 65px;">${_('Account')}</div>
## partner
<div class="act_as_cell" style="width: 120px;">${_('Partner')}</div>
<div class="act_as_cell" style="width: 140px;">${_('Partner')}</div>
## move reference
<div class="act_as_cell" style="width: 140px;">${_('Reference')}</div>
## label
<div class="act_as_cell" style="width: 200px;">${_('Label')}</div>
<div class="act_as_cell" style="width: 160px;">${_('Label')}</div>
## counterpart
<div class="act_as_cell" style="width: 100px;">${_('Counter part')}</div>
## debit
@ -140,6 +146,8 @@
<div class="act_as_cell"></div>
## partner
<div class="act_as_cell"></div>
## move reference
<div class="act_as_cell"></div>
## label
<div class="act_as_cell">${_('Initial Balance')}</div>
## counterpart
@ -184,6 +192,8 @@
<div class="act_as_cell">${account.code}</div>
## partner
<div class="act_as_cell overflow_ellipsis">${line.get('partner_name') or ''}</div>
## move reference
<div class="act_as_cell">${line.get('lref') or ''}</div>
## label
<div class="act_as_cell">${label}</div>
## counterpart
@ -206,8 +216,8 @@
<div class="act_as_table list_table">
<div class="act_as_row labels" style="font-weight: bold;">
## date
<div class="act_as_cell first_column" style="width: 350px;">${account.code} - ${account.name}</div>
<div class="act_as_cell" style="width: 365px;">${_("Cumulated Balance on Account")}</div>
<div class="act_as_cell first_column" style="width: 615px;">${account.code} - ${account.name}</div>
<div class="act_as_cell" style="width: 260px;">${_("Cumulated Balance on Account")}</div>
## debit
<div class="act_as_cell amount" style="width: 75px;">${ formatLang(cumul_debit) | amount }</div>
## credit

20
account_financial_report_webkit/report/templates/account_report_partners_ledger.mako

@ -67,7 +67,7 @@
<div class="act_as_cell">${ initial_balance_text[initial_balance_mode] }</div>
</div>
</div>
%for account in objects:
%if account.ledger_lines or account.init_balance:
<%
@ -102,13 +102,15 @@
## period
<div class="act_as_cell" style="width: 70px;">${_('Period')}</div>
## move
<div class="act_as_cell" style="width: 70px;">${_('Entry')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Entry')}</div>
## journal
<div class="act_as_cell" style="width: 70px;">${_('Journal')}</div>
## partner
<div class="act_as_cell" style="width: 60px;">${_('Partner')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Partner')}</div>
## move reference
<div class="act_as_cell" style="width: 60px;">${_('Reference')}</div>
## label
<div class="act_as_cell" style="width: 310px;">${_('Label')}</div>
<div class="act_as_cell" style="width: 280px;">${_('Label')}</div>
## reconcile
<div class="act_as_cell" style="width: 80px;">${_('Rec.')}</div>
## debit
@ -150,6 +152,8 @@
<div class="act_as_cell"></div>
## partner
<div class="act_as_cell"></div>
## move reference
<div class="act_as_cell"></div>
## label
<div class="act_as_cell" >${_('Initial Balance')}</div>
## reconcile
@ -191,6 +195,8 @@
<div class="act_as_cell">${line.get('jcode') or ''}</div>
## partner
<div class="act_as_cell overflow_ellipsis">${line.get('partner_name') or ''}</div>
## move reference
<div class="act_as_cell">${line.get('lref') or ''}</div>
## label
<div class="act_as_cell">${label}</div>
## reconcile
@ -221,6 +227,8 @@
<div class="act_as_cell"></div>
## partner
<div class="act_as_cell"></div>
## move reference
<div class="act_as_cell"></div>
## label
<div class="act_as_cell">${_('Cumulated Balance on Partner')}</div>
## reconcile
@ -254,9 +262,9 @@
<div class="act_as_table list_table" style="margin-top:5px;">
<div class="act_as_row labels" style="font-weight: bold; font-size: 12px;">
<div class="act_as_cell first_column" style="width: 320px;">${account.code} - ${account.name}</div>
<div class="act_as_cell first_column" style="width: 450px;">${account.code} - ${account.name}</div>
## label
<div class="act_as_cell" style="width: 390px;">${_("Cumulated Balance on Account")}</div>
<div class="act_as_cell" style="width: 360px;">${_("Cumulated Balance on Account")}</div>
## debit
<div class="act_as_cell amount" style="width: 80px;">${ formatLang(account_total_debit) | amount }</div>
## credit

20
account_financial_report_webkit/report/templates/grouped_by_curr_open_invoices_inclusion.mako.html

@ -10,8 +10,8 @@
%for partner_name, p_id, p_ref, p_name in account.partners_order:
<div class="account_title bg" style="width: 1080px; margin-top:
20px; font-size: 12px;">${account.code} - ${account.name} -- ${partner_name or _('No Partner')} </div>
%for curr, grouped_lines in account.grouped_ledger_lines.get(p_id, []):
<%
@ -21,7 +21,7 @@
cumul_balance_curr = 0.0
part_cumul_balance = 0.0
part_cumul_balance_curr = 0.0
part_cumul_balance_curr = 0.0
%>
<div class="act_as_table list_table" style="margin-top: 5px;">
<div class="act_as_caption account_title">
@ -34,13 +34,13 @@
## period
<div class="act_as_cell" style="width: 70px;">${_('Period')}</div>
## move
<div class="act_as_cell" style="width: 70px;">${_('Entry')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Entry')}</div>
## journal
<div class="act_as_cell" style="width: 50px;">${_('Journal')}</div>
<div class="act_as_cell" style="width: 70px;">${_('Journal')}</div>
## move reference
<div class="act_as_cell" style="width: 75px;">${_('Ref.')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Reference')}</div>
## label
<div class="act_as_cell" style="width: 200px;">${_('Label')}</div>
<div class="act_as_cell" style="width: 180px;">${_('Label')}</div>
## reconcile
<div class="act_as_cell" style="width: 80px;">${_('Rec.')}</div>
## maturity
@ -115,6 +115,8 @@
<div class="act_as_cell"></div>
## journal
<div class="act_as_cell"></div>
## move reference
<div class="act_as_cell"></div>
## label
<div class="act_as_cell">${_('Cumulated Balance on Partner')}</div>
## reconcile
@ -148,9 +150,9 @@
%endfor
<div class="act_as_table list_table" style="margin-top:5px;">
<div class="act_as_row labels" style="font-weight: bold; font-size: 12px;">
<div class="act_as_cell first_column" style="width: 330px;">${account.code} - ${account.name}</div>
<div class="act_as_cell first_column" style="width: 450px;">${account.code} - ${account.name}</div>
## label
<div class="act_as_cell" style="width: 395px;">${_("Cumulated Balance on Account")}</div>
<div class="act_as_cell" style="width: 320px;">${_("Cumulated Balance on Account")}</div>
## debit
<div class="act_as_cell amount" style="width: 80px;">${ formatLang(account_total_debit) | amount }</div>
## credit

16
account_financial_report_webkit/report/templates/open_invoices_inclusion.mako.html

@ -31,15 +31,15 @@
## period
<div class="act_as_cell" style="width: 70px;">${_('Period')}</div>
## move
<div class="act_as_cell" style="width: 70px;">${_('Entry')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Entry')}</div>
## journal
<div class="act_as_cell" style="width: 50px;">${_('Journal')}</div>
<div class="act_as_cell" style="width: 70px;">${_('Journal')}</div>
## partner
<div class="act_as_cell" style="width: 60px;">${_('Partner')}</div>
<div class="act_as_cell" style="width: 120px;">${_('Partner')}</div>
## move reference
<div class="act_as_cell" style="width: 75px;">${_('Ref.')}</div>
<div class="act_as_cell" style="width: 100px;">${_('Reference')}</div>
## label
<div class="act_as_cell" style="width: 255px;">${_('Label')}</div>
<div class="act_as_cell" style="width: 180px;">${_('Label')}</div>
## reconcile
<div class="act_as_cell" style="width: 80px;">${_('Rec.')}</div>
## maturity
@ -122,6 +122,8 @@
<div class="act_as_cell"></div>
## partner
<div class="act_as_cell"></div>
## move reference
<div class="act_as_cell"></div>
## label
<div class="act_as_cell">${_('Cumulated Balance on Partner')}</div>
## reconcile
@ -156,9 +158,9 @@
%endfor
<div class="act_as_table list_table" style="margin-top:5px;">
<div class="act_as_row labels" style="font-weight: bold; font-size: 12px;">
<div class="act_as_cell first_column" style="width: 330px;">${account.code} - ${account.name}</div>
<div class="act_as_cell first_column" style="width: 520px;">${account.code} - ${account.name}</div>
## label
<div class="act_as_cell" style="width: 395px;">${_("Cumulated Balance on Account")}</div>
<div class="act_as_cell" style="width: 320px;">${_("Cumulated Balance on Account")}</div>
## debit
<div class="act_as_cell amount" style="width: 80px;">${ formatLang(account_total_debit) | amount }</div>
## credit

Loading…
Cancel
Save