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
(\'Movement_getExplanationReference\', \'Invoice Number\'),\n
(\'Movement_getMirrorSectionTitle\', \'Third Party\'),\n
(\'getTranslatedSimulationStateTitle\', \'State\'),\n
(\'Movement_getDebitPrice\', \'Debit\'),\n
(\'Movement_getCreditPrice\', \'Credit\'),\n
(\'debit\', \'Debit\'),\n
(\'credit\', \'Credit\'),\n
(\'total_price\', \'Balance\'),\n
(\'running_total_price\', \'Net\'), )\n
\n
......@@ -127,9 +127,9 @@ else:\n
\n
gap_value_list = cat_tool.resolveCategory(cat).getCategoryChildValueList()\n
\n
# we don\'t want to display accounts that don\'t have any transactions associated,\n
# so we use a cache to see if the account contains transaction or not ( regardless\n
# of from_date )\n
# we don\'t want to display accounts that don\'t have any transactions\n
# associated, so we use a cache to see if the account contains transaction or\n
# not ( regardless of from_date )\n
account_inventory_list_cache = {}\n
account_inventory_list_cache_params = params.copy()\n
if account_inventory_list_cache_params.has_key(\'from_date\'):\n
......
......@@ -71,6 +71,7 @@
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
......@@ -94,6 +95,17 @@
</list>
</value>
</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>
<key> <string>left</string> </key>
<value>
......
......@@ -374,11 +374,11 @@
<string>State</string>
</tuple>
<tuple>
<string>Movement_getDebitPrice</string>
<string>debit</string>
<string>Debit</string>
</tuple>
<tuple>
<string>Movement_getCreditPrice</string>
<string>credit</string>
<string>Credit</string>
</tuple>
<tuple>
......@@ -440,7 +440,24 @@
<item>
<key> <string>editable_columns</string> </key>
<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>
</item>
<item>
......@@ -590,11 +607,11 @@
<value>
<list>
<tuple>
<string>Movement_getDebitPrice</string>
<string>debit</string>
<string>Account_statDebit</string>
</tuple>
<tuple>
<string>Movement_getCreditPrice</string>
<string>credit</string>
<string>Account_statCredit</string>
</tuple>
<tuple>
......
153
\ No newline at end of file
154
\ 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