Commit c8e66328 authored by Yusei Tahara's avatar Yusei Tahara

2010-09-08 yusei

Revert my change on AccountingTransactionModule_getJournalSectionLineList at 2010-09-02.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38181 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5890e513
...@@ -72,10 +72,9 @@ if project_uid:\n ...@@ -72,10 +72,9 @@ 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 getAccountGapIdAndTitle(node_relative_url):\n def getAccountId(node_relative_url):\n
if node_relative_url not in account_title_cache:\n if node_relative_url not in account_title_cache:\n
account = portal.restrictedTraverse(node_relative_url)\n title = portal.restrictedTraverse(node_relative_url).Account_getGapId(gap_root=gap_root)\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
...@@ -156,7 +155,7 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n ...@@ -156,7 +155,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=getAccountGapIdAndTitle(brain.node_relative_url),\n node_title=getAccountId(brain.node_relative_url),\n
date=date,\n date=date,\n
debit=debit,\n debit=debit,\n
credit=credit,)\n credit=credit,)\n
...@@ -245,7 +244,7 @@ return line_list\n ...@@ -245,7 +244,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>getAccountGapIdAndTitle</string> <string>getAccountId</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-08 yusei
Revert my change on AccountingTransactionModule_getJournalSectionLineList at 2010-09-02.
2010-09-03 yusei 2010-09-03 yusei
* Add Base_getAccountingWorkflowId and Base_getTranslatedAccountingWorkflowStateItemList to make accounting workflow easier to customise. * Add Base_getAccountingWorkflowId and Base_getTranslatedAccountingWorkflowStateItemList to make accounting workflow easier to customise.
......
1345 1349
\ 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