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 ...@@ -122,15 +122,15 @@ if request.get(\'tree_mode\', False): # TODO\n
\n \n
return [ ReportSection(\n return [ ReportSection(\n
path=portal.account_module.getPhysicalPath(),\n path=portal.account_module.getPhysicalPath(),\n
title=N_(\'Trial Balance\'),\n
level=1,\n level=1,\n
form_id=\'AccountModule_viewAccountListForTrialBalance\',\n form_id=\'AccountModule_viewAccountListForTrialBalance\',\n
selection_name=\'trial_balance_selection\',\n selection_name=\'trial_balance_selection\',\n
selection_params=dict(show_empty_accounts=show_empty_accounts,\n selection_params=dict(show_empty_accounts=show_empty_accounts,\n
expand_accounts=expand_accounts,\n expand_accounts=expand_accounts,\n
at_date=at_date,\n at_date=at_date.latestTime(),\n
from_date=from_date,\n from_date=from_date.earliestTime(),\n
period_start_date=period_start_date,\n period_start_date=\n
period_start_date.earliestTime(),\n
section_uid=section_uid,\n section_uid=section_uid,\n
simulation_state=simulation_state,\n simulation_state=simulation_state,\n
precision=precision ),) ]\n precision=precision ),) ]\n
......
...@@ -61,10 +61,8 @@ ...@@ -61,10 +61,8 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<list> <list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string> <string>bottom</string>
<string>hidden</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -74,18 +72,6 @@ ...@@ -74,18 +72,6 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>bottom</string> </key> <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> <value>
<list> <list>
<string>listbox</string> <string>listbox</string>
...@@ -93,9 +79,18 @@ ...@@ -93,9 +79,18 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>right</string> </key> <key> <string>hidden</string> </key>
<value> <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> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -334,36 +334,44 @@ ...@@ -334,36 +334,44 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>id</string> <string>node_id</string>
<string>ID</string> <string>GAP Account ID</string>
</tuple> </tuple>
<tuple> <tuple>
<string>id</string> <string>node_title</string>
<string>GAP No</string> <string>Account Name</string>
</tuple> </tuple>
<tuple> <tuple>
<string>title</string> <string>initial_debit_balance</string>
<string>Title</string> <string>Initial Debit Balance</string>
</tuple> </tuple>
<tuple> <tuple>
<string>AccountModule_getAccountingTransactionCount</string> <string>debit</string>
<string>Count</string> <string>Debit Transactions</string>
</tuple> </tuple>
<tuple> <tuple>
<string>opening_balance</string> <string>final_debit_balance</string>
<string>Openning Balance</string> <string>Final Debit Balance</string>
</tuple> </tuple>
<tuple> <tuple>
<string>debit_movement</string> <string>initial_credit_balance</string>
<string>Debit Movements</string> <string>Initial Credit Balance</string>
</tuple> </tuple>
<tuple> <tuple>
<string>credit_movement</string> <string>credit</string>
<string>Credit Movements</string> <string>Credit Transactions</string>
</tuple> </tuple>
<tuple> <tuple>
<string>closing_balance</string> <string>final_credit_balance</string>
<string>Closing 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> </tuple>
</list> </list>
</value> </value>
...@@ -407,7 +415,40 @@ ...@@ -407,7 +415,40 @@
<item> <item>
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <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> </value>
</item> </item>
<item> <item>
...@@ -448,15 +489,14 @@ ...@@ -448,15 +489,14 @@
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>Account</string>
<string>Account</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -490,12 +530,7 @@ ...@@ -490,12 +530,7 @@
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>id</string>
<string>id</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -507,16 +542,7 @@ ...@@ -507,16 +542,7 @@
<item> <item>
<key> <string>stat_columns</string> </key> <key> <string>stat_columns</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>debit_movement</string>
<string>AccountModule_statTotalSourceDebit</string>
</tuple>
<tuple>
<string>credit_movement</string>
<string>AccountModule_statTotalSourceCredit</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -574,7 +600,7 @@ ...@@ -574,7 +600,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>method_name</string> </key> <key> <string>method_name</string> </key>
<value> <string>portal_catalog</string> </value> <value> <string>AccountModule_statAccountListForTrialBalance</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
<value> <value>
<list> <list>
<string>your_simulation_state</string> <string>your_simulation_state</string>
<string>your_landscape</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
219 220
\ No newline at end of file \ 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