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 @@
<key> <string>_body</string> </key>
<value> <string>"""\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
portal = context.getPortalObject()\n
organisation_module = portal.organisation_module\n
......@@ -75,7 +76,8 @@ request_eform = state_change[\'object\']\n
rccm = request_eform.getCorporateRegistrationCode()\n
application_date = request_eform.getDate()\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
if request_eform.getLiquidationCheck():\n
organisation.mettreEntrepriseEnCessation()\n
......@@ -111,8 +113,8 @@ def attachLocationYearInfo(last_id):\n
new_registry_number = request_eform.portal_ids.generateNewId(\n
id_group=\'sn-%s\' % request_eform.getGroup(), method=attachLocationYearInfo)\n
\n
# Update the registration date of the request_eform with the time when the registry officer\n
# validates the transition\n
# Update the registration date of the request_eform with the time \n
# when the registry officer validates the transition\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
for history in history_list:\n
......@@ -203,7 +205,7 @@ for history in history_list:\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>liquiderOrganisationFromM4</string> </value>
<value> <string>liquidateOrganisationFromM4</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
862
\ No newline at end of file
864
\ 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