Commit 6edeb139 authored by Jérome Perrin's avatar Jérome Perrin

Render trial balance in landscape mode (+ fixes).



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 902f7041
......@@ -122,15 +122,15 @@ if request.get(\'tree_mode\', False): # TODO\n
\n
return [ ReportSection(\n
path=portal.account_module.getPhysicalPath(),\n
title=N_(\'Trial Balance\'),\n
level=1,\n
form_id=\'AccountModule_viewAccountListForTrialBalance\',\n
selection_name=\'trial_balance_selection\',\n
selection_params=dict(show_empty_accounts=show_empty_accounts,\n
expand_accounts=expand_accounts,\n
at_date=at_date,\n
from_date=from_date,\n
period_start_date=period_start_date,\n
at_date=at_date.latestTime(),\n
from_date=from_date.earliestTime(),\n
period_start_date=\n
period_start_date.earliestTime(),\n
section_uid=section_uid,\n
simulation_state=simulation_state,\n
precision=precision ),) ]\n
......
......@@ -61,10 +61,8 @@
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
......@@ -74,18 +72,6 @@
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>listbox</string>
......@@ -93,9 +79,18 @@
</value>
</item>
<item>
<key> <string>right</string> </key>
<key> <string>hidden</string> </key>
<value>
<list/>
<list>
<string>listbox_credit</string>
<string>listbox_debit</string>
<string>listbox_initial_credit_balance</string>
<string>listbox_initial_debit_balance</string>
<string>listbox_final_credit_balance</string>
<string>listbox_final_debit_balance</string>
<string>listbox_final_balance_if_credit</string>
<string>listbox_final_balance_if_debit</string>
</list>
</value>
</item>
</dictionary>
......
......@@ -334,36 +334,44 @@
<value>
<list>
<tuple>
<string>id</string>
<string>ID</string>
<string>node_id</string>
<string>GAP Account ID</string>
</tuple>
<tuple>
<string>id</string>
<string>GAP No</string>
<string>node_title</string>
<string>Account Name</string>
</tuple>
<tuple>
<string>title</string>
<string>Title</string>
<string>initial_debit_balance</string>
<string>Initial Debit Balance</string>
</tuple>
<tuple>
<string>AccountModule_getAccountingTransactionCount</string>
<string>Count</string>
<string>debit</string>
<string>Debit Transactions</string>
</tuple>
<tuple>
<string>opening_balance</string>
<string>Openning Balance</string>
<string>final_debit_balance</string>
<string>Final Debit Balance</string>
</tuple>
<tuple>
<string>debit_movement</string>
<string>Debit Movements</string>
<string>initial_credit_balance</string>
<string>Initial Credit Balance</string>
</tuple>
<tuple>
<string>credit_movement</string>
<string>Credit Movements</string>
<string>credit</string>
<string>Credit Transactions</string>
</tuple>
<tuple>
<string>closing_balance</string>
<string>Closing Balance</string>
<string>final_credit_balance</string>
<string>Final Credit Balance</string>
</tuple>
<tuple>
<string>final_balance_if_debit</string>
<string>Final Balance (Debit)</string>
</tuple>
<tuple>
<string>final_balance_if_credit</string>
<string>Final Balance (Credit)</string>
</tuple>
</list>
</value>
......@@ -407,7 +415,40 @@
<item>
<key> <string>editable_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>initial_debit_balance</string>
<string>Initial Debit Balance</string>
</tuple>
<tuple>
<string>initial_credit_balance</string>
<string>Initial Credit Balance</string>
</tuple>
<tuple>
<string>debit</string>
<string>Debit Transactions</string>
</tuple>
<tuple>
<string>credit</string>
<string>Credit Transactions</string>
</tuple>
<tuple>
<string>final_debit_balance</string>
<string>Final Debit Balance</string>
</tuple>
<tuple>
<string>final_credit_balance</string>
<string>Final Credit Balance</string>
</tuple>
<tuple>
<string>final_balance_if_debit</string>
<string>Final Balance (Debit)</string>
</tuple>
<tuple>
<string>final_balance_if_credit</string>
<string>Final Balance (Credit)</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -448,15 +489,14 @@
<list/>
</value>
</item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<list>
<tuple>
<string>Account</string>
<string>Account</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -490,12 +530,7 @@
<item>
<key> <string>sort</string> </key>
<value>
<list>
<tuple>
<string>id</string>
<string>id</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -507,16 +542,7 @@
<item>
<key> <string>stat_columns</string> </key>
<value>
<list>
<tuple>
<string>debit_movement</string>
<string>AccountModule_statTotalSourceDebit</string>
</tuple>
<tuple>
<string>credit_movement</string>
<string>AccountModule_statTotalSourceCredit</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -574,7 +600,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>portal_catalog</string> </value>
<value> <string>AccountModule_statAccountListForTrialBalance</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -101,6 +101,7 @@
<value>
<list>
<string>your_simulation_state</string>
<string>your_landscape</string>
</list>
</value>
</item>
......
......@@ -135,7 +135,7 @@
</item>
<item>
<key> <string>default</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>description</string> </key>
......
219
\ No newline at end of file
220
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment