Commit 5a270d56 authored by Fabien Morin's avatar Fabien Morin

report_section refactoring to be more generic and easier to customize with more pdf

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5821e190
......@@ -74,19 +74,8 @@ N_ = portal.Base_translateString\n
portal_type = document.getPortalType()\n
\n
# dict of required documents\n
attachement_type_dict = { \'Declaration TVA\':\n
{\n
\'ID Card\':\'Required\',\n
\'Expenditure Table\':\'Optional\',\n
\'Exemptions Details\':\'Required\',\n
\'Application Certificate\':\'Optional\',\n
},\n
\'Subscription Form\':\n
{\n
\'ID Card\':\'Required\',\n
\'M0 Form\':\'Required\',\n
}\n
}\n
attachement_method = getattr(context, \'%s_getApplicationIncomeDict\' % context.getPortalType().replace(\' \', \'\'))\n
attachement_type_dict = attachement_method()\n
\n
# if the portal type is not mapped, no attached files are required\n
if not attachement_type_dict.has_key(portal_type):\n
......@@ -157,6 +146,9 @@ if len(missing_document_list):\n
<string>portal</string>
<string>N_</string>
<string>portal_type</string>
<string>getattr</string>
<string>context</string>
<string>attachement_method</string>
<string>attachement_type_dict</string>
<string>append</string>
<string>$append0</string>
......
276
\ No newline at end of file
278
\ 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