Commit cb3fbbb6 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

thibaut

rename the script and fix typo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22953 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e81ef20
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
This script collects properties in the M4\n This script collects properties in the M4\n
request_eform and use them to either stop activities for the organisation or liquidate it.\n request_eform and use them to either stop activities for the organisation\n
or liquidate it.\n
"""\n """\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
organisation_module = portal.organisation_module\n organisation_module = portal.organisation_module\n
...@@ -75,7 +76,8 @@ request_eform = state_change[\'object\']\n ...@@ -75,7 +76,8 @@ request_eform = state_change[\'object\']\n
rccm = request_eform.getCorporateRegistrationCode()\n rccm = request_eform.getCorporateRegistrationCode()\n
application_date = request_eform.getDate()\n application_date = request_eform.getDate()\n
organisation_list = [org.getObject() for org in organisation_module.searchFolder(corporate_registration_code=rccm)]\n organisation_list = [org.getObject() for org in organisation_module.searchFolder(corporate_registration_code=rccm)]\n
# Look for organisation and then decide it to stop its activities or to liquidate it\n # Look for organisation and then decide it to stop its activities \n
# or to liquidate it\n
for organisation in organisation_list:\n for organisation in organisation_list:\n
if request_eform.getLiquidationCheck():\n if request_eform.getLiquidationCheck():\n
organisation.mettreEntrepriseEnCessation()\n organisation.mettreEntrepriseEnCessation()\n
...@@ -111,8 +113,8 @@ def attachLocationYearInfo(last_id):\n ...@@ -111,8 +113,8 @@ def attachLocationYearInfo(last_id):\n
new_registry_number = request_eform.portal_ids.generateNewId(\n new_registry_number = request_eform.portal_ids.generateNewId(\n
id_group=\'sn-%s\' % request_eform.getGroup(), method=attachLocationYearInfo)\n id_group=\'sn-%s\' % request_eform.getGroup(), method=attachLocationYearInfo)\n
\n \n
# Update the registration date of the request_eform with the time when the registry officer\n # Update the registration date of the request_eform with the time \n
# validates the transition\n # when the registry officer validates the transition\n
request_eform.edit(registration_number=new_registry_number)\n request_eform.edit(registration_number=new_registry_number)\n
history_list = context.portal_workflow.getInfoFor(request_eform, \'history\', wf_id=\'egov_form_validation_workflow\')\n history_list = context.portal_workflow.getInfoFor(request_eform, \'history\', wf_id=\'egov_form_validation_workflow\')\n
for history in history_list:\n for history in history_list:\n
...@@ -203,7 +205,7 @@ for history in history_list:\n ...@@ -203,7 +205,7 @@ for history in history_list:\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>liquiderOrganisationFromM4</string> </value> <value> <string>liquidateOrganisationFromM4</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
862 864
\ 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