Commit 37584032 authored by Yusei Tahara's avatar Yusei Tahara

2010-09-02 yusei

* Display account title to journal report. Displaying gap id only is not useful at least in Japan.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38115 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f5741809
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -75,9 +72,10 @@ if project_uid:\n ...@@ -75,9 +72,10 @@ if project_uid:\n
extra_kw[\'project_uid\'] = project_uid\n extra_kw[\'project_uid\'] = project_uid\n
\n \n
account_title_cache = dict()\n account_title_cache = dict()\n
def getAccountId(node_relative_url):\n def getAccountGapIdAndTitle(node_relative_url):\n
if node_relative_url not in account_title_cache:\n if node_relative_url not in account_title_cache:\n
title = portal.restrictedTraverse(node_relative_url).Account_getGapId(gap_root=gap_root)\n account = portal.restrictedTraverse(node_relative_url)\n
title = \'%s %s\' % (account.Account_getGapId(gap_root=gap_root), account.getTitle())\n
account_title_cache[node_relative_url] = title\n account_title_cache[node_relative_url] = title\n
return account_title_cache[node_relative_url]\n return account_title_cache[node_relative_url]\n
\n \n
...@@ -158,7 +156,7 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n ...@@ -158,7 +156,7 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n
specific_reference=specific_reference,\n specific_reference=specific_reference,\n
parent_reference=transaction_reference,\n parent_reference=transaction_reference,\n
mirror_section_title=mirror_section_title,\n mirror_section_title=mirror_section_title,\n
node_title=getAccountId(brain.node_relative_url),\n node_title=getAccountGapIdAndTitle(brain.node_relative_url),\n
date=date,\n date=date,\n
debit=debit,\n debit=debit,\n
credit=credit,)\n credit=credit,)\n
...@@ -247,7 +245,7 @@ return line_list\n ...@@ -247,7 +245,7 @@ return line_list\n
<string>True</string> <string>True</string>
<string>None</string> <string>None</string>
<string>account_title_cache</string> <string>account_title_cache</string>
<string>getAccountId</string> <string>getAccountGapIdAndTitle</string>
<string>account_in_gap_root_cache</string> <string>account_in_gap_root_cache</string>
<string>isAccountInGapRoot</string> <string>isAccountInGapRoot</string>
<string>displayed_transaction</string> <string>displayed_transaction</string>
......
2010-09-02 yusei
* Display account title to journal report. Displaying gap id only is not useful at least in Japan.
2010-08-23 yusei 2010-08-23 yusei
* Allow users to change section on line level. This is sometimes needed. Use case: expense happens at section A, corresponding payment is done at section B. This is journalized in single transaction document. * Allow users to change section on line level. This is sometimes needed. Use case: expense happens at section A, corresponding payment is done at section B. This is journalized in single transaction document.
......
1343 1344
\ 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