Browse Source

[BCK] improve done in v5 for 'commissaire aux comptes'

(lp:c2c-addons/6.1  rev 24.1.12)
unknown 13 years ago
parent
commit
66fdd87dda
  1. 2
      account_financial_report_webkit/report/common_partner_reports.py
  2. 8
      account_financial_report_webkit/report/templates/account_report_general_ledger.mako
  3. 8
      account_financial_report_webkit/report/templates/account_report_partner_balance.mako

2
account_financial_report_webkit/report/common_partner_reports.py

@ -238,7 +238,7 @@ class CommonPartnersReportHeaderWebkit(CommonReportHeaderWebkit):
if existing_partner_ids: if existing_partner_ids:
# We may use orm here as the performance optimization is not that big # We may use orm here as the performance optimization is not that big
sql = ("SELECT name|| ' ' ||CASE WHEN ref IS NOT NULL THEN '('||ref||')' ELSE '' END, id, ref, name" sql = ("SELECT name|| ' ' ||CASE WHEN ref IS NOT NULL THEN '('||ref||')' ELSE '' END, id, ref, name"
" FROM res_partner WHERE id IN %s ORDER BY name, ref")
" FROM res_partner WHERE id IN %s ORDER BY LOWER(name), ref")
self.cursor.execute(sql, (tuple(set(existing_partner_ids)),)) self.cursor.execute(sql, (tuple(set(existing_partner_ids)),))
res = self.cursor.fetchall() res = self.cursor.fetchall()

8
account_financial_report_webkit/report/templates/account_report_general_ledger.mako

@ -95,10 +95,12 @@
<div class="act_as_cell" style="width: 60px;">${_('Entry')}</div> <div class="act_as_cell" style="width: 60px;">${_('Entry')}</div>
## journal ## journal
<div class="act_as_cell" style="width: 70px;">${_('Journal')}</div> <div class="act_as_cell" style="width: 70px;">${_('Journal')}</div>
## account code
<div class="act_as_cell" style="width: 65px;">${_('Account')}</div>
## partner ## partner
<div class="act_as_cell" style="width: 120px;">${_('Partner')}</div> <div class="act_as_cell" style="width: 120px;">${_('Partner')}</div>
## label ## label
<div class="act_as_cell" style="width: 265px;">${_('Label')}</div>
<div class="act_as_cell" style="width: 200px;">${_('Label')}</div>
## counterpart ## counterpart
<div class="act_as_cell" style="width: 100px;">${_('Counter part')}</div> <div class="act_as_cell" style="width: 100px;">${_('Counter part')}</div>
## debit ## debit
@ -133,6 +135,8 @@
<div class="act_as_cell"></div> <div class="act_as_cell"></div>
## journal ## journal
<div class="act_as_cell"></div> <div class="act_as_cell"></div>
## account code
<div class="act_as_cell"></div>
## partner ## partner
<div class="act_as_cell"></div> <div class="act_as_cell"></div>
## label ## label
@ -175,6 +179,8 @@
<div class="act_as_cell">${line.get('move_name') or ''}</div> <div class="act_as_cell">${line.get('move_name') or ''}</div>
## journal ## journal
<div class="act_as_cell">${line.get('jcode') or ''}</div> <div class="act_as_cell">${line.get('jcode') or ''}</div>
## journal
<div class="act_as_cell">${account.code}</div>
## partner ## partner
<div class="act_as_cell overflow_ellipsis">${line.get('partner_name') or ''}</div> <div class="act_as_cell overflow_ellipsis">${line.get('partner_name') or ''}</div>
## label ## label

8
account_financial_report_webkit/report/templates/account_report_partner_balance.mako

@ -132,10 +132,10 @@
<div class="act_as_thead"> <div class="act_as_thead">
<div class="act_as_row labels"> <div class="act_as_row labels">
## code
<div class="act_as_cell first_column" style="width: 20px;">${_('Code / Ref')}</div>
## account name ## account name
<div class="act_as_cell" style="width: 80px;">${_('Account / Partner Name')}</div> <div class="act_as_cell" style="width: 80px;">${_('Account / Partner Name')}</div>
## code
<div class="act_as_cell first_column" style="width: 20px;">${_('Code / Ref')}</div>
%if comparison_mode == 'no_comparison': %if comparison_mode == 'no_comparison':
%if initial_balance_mode: %if initial_balance_mode:
## initial balance ## initial balance
@ -229,10 +229,10 @@
</div> </div>
<div class="act_as_tfoot" style="margin-top:5px;"> <div class="act_as_tfoot" style="margin-top:5px;">
<div class="act_as_row labels" style="font-weight: bold; font-size: 11x;"> <div class="act_as_row labels" style="font-weight: bold; font-size: 11x;">
## code
<div class="act_as_cell first_column">${current_account.code}</div>
## account name ## account name
<div class="act_as_cell">${current_account.name}</div> <div class="act_as_cell">${current_account.name}</div>
## code
<div class="act_as_cell first_column">${current_account.code}</div>
%if comparison_mode == 'no_comparison': %if comparison_mode == 'no_comparison':
%if initial_balance_mode: %if initial_balance_mode:
## opening balance ## opening balance

Loading…
Cancel
Save