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

use editable fields to format values in Account_viewAccountingTransactionList,...

use editable fields to format values in Account_viewAccountingTransactionList, and update GL to use them.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11864 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a07ba2d
...@@ -112,8 +112,8 @@ account_columns = (\n ...@@ -112,8 +112,8 @@ account_columns = (\n
(\'Movement_getExplanationReference\', \'Invoice Number\'),\n (\'Movement_getExplanationReference\', \'Invoice Number\'),\n
(\'Movement_getMirrorSectionTitle\', \'Third Party\'),\n (\'Movement_getMirrorSectionTitle\', \'Third Party\'),\n
(\'getTranslatedSimulationStateTitle\', \'State\'),\n (\'getTranslatedSimulationStateTitle\', \'State\'),\n
(\'Movement_getDebitPrice\', \'Debit\'),\n (\'debit\', \'Debit\'),\n
(\'Movement_getCreditPrice\', \'Credit\'),\n (\'credit\', \'Credit\'),\n
(\'total_price\', \'Balance\'),\n (\'total_price\', \'Balance\'),\n
(\'running_total_price\', \'Net\'), )\n (\'running_total_price\', \'Net\'), )\n
\n \n
...@@ -127,9 +127,9 @@ else:\n ...@@ -127,9 +127,9 @@ else:\n
\n \n
gap_value_list = cat_tool.resolveCategory(cat).getCategoryChildValueList()\n gap_value_list = cat_tool.resolveCategory(cat).getCategoryChildValueList()\n
\n \n
# we don\'t want to display accounts that don\'t have any transactions associated,\n # we don\'t want to display accounts that don\'t have any transactions\n
# so we use a cache to see if the account contains transaction or not ( regardless\n # associated, so we use a cache to see if the account contains transaction or\n
# of from_date )\n # not ( regardless of from_date )\n
account_inventory_list_cache = {}\n account_inventory_list_cache = {}\n
account_inventory_list_cache_params = params.copy()\n account_inventory_list_cache_params = params.copy()\n
if account_inventory_list_cache_params.has_key(\'from_date\'):\n if account_inventory_list_cache_params.has_key(\'from_date\'):\n
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<string>right</string> <string>right</string>
<string>center</string> <string>center</string>
<string>bottom</string> <string>bottom</string>
<string>hidden</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -94,6 +95,17 @@ ...@@ -94,6 +95,17 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>hidden</string> </key>
<value>
<list>
<string>listbox_debit</string>
<string>listbox_credit</string>
<string>listbox_total_price</string>
<string>listbox_running_total_price</string>
</list>
</value>
</item>
<item> <item>
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
......
...@@ -374,11 +374,11 @@ ...@@ -374,11 +374,11 @@
<string>State</string> <string>State</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Movement_getDebitPrice</string> <string>debit</string>
<string>Debit</string> <string>Debit</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Movement_getCreditPrice</string> <string>credit</string>
<string>Credit</string> <string>Credit</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -440,7 +440,24 @@ ...@@ -440,7 +440,24 @@
<item> <item>
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>debit</string>
<string>debit</string>
</tuple>
<tuple>
<string>credit</string>
<string>credit</string>
</tuple>
<tuple>
<string>total_price</string>
<string>total_price</string>
</tuple>
<tuple>
<string>running_total_price</string>
<string>running_total_price</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -590,11 +607,11 @@ ...@@ -590,11 +607,11 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>Movement_getDebitPrice</string> <string>debit</string>
<string>Account_statDebit</string> <string>Account_statDebit</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Movement_getCreditPrice</string> <string>credit</string>
<string>Account_statCredit</string> <string>Account_statCredit</string>
</tuple> </tuple>
<tuple> <tuple>
......
153 154
\ 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