Commit 16cc71af authored by Jérome Perrin's avatar Jérome Perrin

AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList

doesnt have to take origin into account.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13289 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7794399a
......@@ -134,18 +134,6 @@ def getAccountClass(account_url):\n
account_class_cache[account_url] = classe\n
return classe\n
\n
origin_id_cache = {None:\'\', \'\':\'\'}\n
def getOriginId(origin_url):\n
try:\n
return origin_id_cache[origin_url]\n
except KeyError:\n
origin = portal.portal_categories.origin.restrictedTraverse(origin_url)\n
origin_id = origin.getId()\n
if origin_id in portal.portal_types.objectIds():\n
origin_id = \'\'\n
origin_id_cache[origin_url] = origin_id\n
return origin_id\n
\n
for brain in simtool.getMovementHistoryList(\n
from_date=from_date.earliestTime(),\n
at_date=at_date.latestTime(),\n
......@@ -158,7 +146,7 @@ for brain in simtool.getMovementHistoryList(\n
mvt.getPaymentMode(\'\').startswith(payment_mode_url):\n
continue\n
\n
origin = getOriginId(mvt.getOrigin())\n
origin = \'\' # disabled for this report\n
sheet = mvt.getParentValue().getAggregateTitle(\n
portal_type=\'Invoice Transmission Sheet\')\n
if brain.node_relative_url:\n
......@@ -326,8 +314,6 @@ return report_section_list\n
<string>per_account_cache</string>
<string>account_class_cache</string>
<string>getAccountClass</string>
<string>origin_id_cache</string>
<string>getOriginId</string>
<string>brain</string>
<string>mvt</string>
<string>origin</string>
......
87
\ No newline at end of file
88
\ 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