Commit c0be25c8 authored by Jérome Perrin's avatar Jérome Perrin

update Account Statement Report to reflect new column names in...

update Account Statement Report to reflect new column names in Account_viewAccountingTransactionList



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12540 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89e78f11
...@@ -78,10 +78,16 @@ Account is the combination of :\n ...@@ -78,10 +78,16 @@ Account is the combination of :\n
from Products.ERP5Form.Report import ReportSection\n from Products.ERP5Form.Report import ReportSection\n
request = context.REQUEST\n request = context.REQUEST\n
\n \n
# TODO:\n
# s/transaction_section_category/section_category\n
# s/transaction_simulation_state/simulation_sate\n
# ( also in dialog )\n
\n \n
at_date = request[\'at_date\']\n at_date = request[\'at_date\']\n
transaction_section_category = request[\'transaction_section_category\']\n transaction_section_category = request[\'transaction_section_category\']\n
account = request.get(\'account\', None)\n # XXX for now account is required (ie. we cannot display all transactions with\n
# a third party regardless of the account).\n
account = request[\'account\']\n
destination_section = request.get(\'destination_section\', None)\n destination_section = request.get(\'destination_section\', None)\n
source_payment = request.get(\'source_payment\', None)\n source_payment = request.get(\'source_payment\', None)\n
transaction_simulation_state = request[\'transaction_simulation_state\']\n transaction_simulation_state = request[\'transaction_simulation_state\']\n
...@@ -107,34 +113,34 @@ else :\n ...@@ -107,34 +113,34 @@ else :\n
if source_payment :\n if source_payment :\n
params[\'payment_uid\'] = context.restrictedTraverse(source_payment).getUid()\n params[\'payment_uid\'] = context.restrictedTraverse(source_payment).getUid()\n
if destination_section :\n if destination_section :\n
params[\'mirror_section_uid\'] = context.restrictedTraverse(destination_section).getUid()\n params[\'mirror_section_uid\'] = context.restrictedTraverse(\n
if account:\n destination_section).getUid()\n
params[\'node_uid\'] = context.restrictedTraverse(account).getUid()\n \n
params[\'node_uid\'] = context.restrictedTraverse(account).getUid()\n
\n \n
result = []\n result = []\n
portal = context.portal_url.getPortalObject()\n portal = context.portal_url.getPortalObject()\n
\n \n
account_columns = (\n account_columns = (\n
(\'delivery.start_date\', \'Accounting Operation Date\'),\n (\'date\', \'Accounting Operation Date\'),\n
(\'title\', \'Title\'),\n (\'Movement_getExplanationTitle\', \'Title\'),\n
(\'Movement_getSpecificReference\', \'Accounting Transaction Reference\'),\n
# (\'translated_portal_type\', \'Type\'),\n # (\'translated_portal_type\', \'Type\'),\n
# (\'third_party\', \'Third Party\'),\n # (\'third_party\', \'Third Party\'),\n
# (\'translated_simulation_state_title\', \'State\'),\n # (\'translated_simulation_state_title\', \'State\'),\n
(\'debit\', \'Debit\'),\n (\'debit\', \'Debit\'),\n
(\'credit\', \'Credit\'),\n (\'credit\', \'Credit\'),\n
(\'specific_reference\', \'Accounting Transaction Reference\'),\n (\'running_total_price\', \'Net\'),\n
(\'net_balance\', \'Balance\'),\n
)\n )\n
\n \n
return [ReportSection(\n return [ReportSection(\n
path = context.getPhysicalPath(),\n path = account,\n
#title = \'Account Statement Report\',\n
form_id = \'Account_viewAccountingTransactionList\',\n form_id = \'Account_viewAccountingTransactionList\',\n
selection_name = \'acount_preference_selection\',\n selection_name = \'account_preference_selection\',\n
selection_params = params,\n selection_params = params,\n
selection_columns = account_columns,\n selection_columns = account_columns,\n
listbox_display_mode = \'FlatListMode\',\n listbox_display_mode = \'FlatListMode\',\n
selection_sort_order = [(\'delivery.stop_date\',\n selection_sort_order = [(\'stock.date\',\n
\'ascending\')],)]\n \'ascending\')],)]\n
# vim: syntax=python\n # vim: syntax=python\n
</string> </value> </string> </value>
...@@ -187,8 +193,8 @@ return [ReportSection(\n ...@@ -187,8 +193,8 @@ return [ReportSection(\n
<string>_getitem_</string> <string>_getitem_</string>
<string>at_date</string> <string>at_date</string>
<string>transaction_section_category</string> <string>transaction_section_category</string>
<string>None</string>
<string>account</string> <string>account</string>
<string>None</string>
<string>destination_section</string> <string>destination_section</string>
<string>source_payment</string> <string>source_payment</string>
<string>transaction_simulation_state</string> <string>transaction_simulation_state</string>
......
...@@ -287,6 +287,14 @@ ...@@ -287,6 +287,14 @@
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>hidden_day_is_last_day</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>hide_day</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>input_order</string> </key> <key> <string>input_order</string> </key>
<value> <string>ymd</string> </value> <value> <string>ymd</string> </value>
...@@ -311,7 +319,7 @@ ...@@ -311,7 +319,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Start Date</string> </value> <value> <string>From Date</string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
......
170 172
\ 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