Commit 27a9cf72 authored by Jérome Perrin's avatar Jérome Perrin

do not try to deliver already delivered transaction.

pass an unicode string to Localizer


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5632 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1be0e377
...@@ -74,7 +74,7 @@ closing_period = state_change.object\n ...@@ -74,7 +74,7 @@ closing_period = state_change.object\n
portal = closing_period.getPortalObject()\n portal = closing_period.getPortalObject()\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
accounting_module = portal.accounting_module\n accounting_module = portal.accounting_module\n
valid_states = [\'cancelled\', \'stopped\', \'delivered\']\n valid_states = [\'cancelled\', \'stopped\']\n
\n \n
start_date = closing_period.getStartDate()\n start_date = closing_period.getStartDate()\n
stop_date = closing_period.getStopDate()\n stop_date = closing_period.getStopDate()\n
...@@ -85,7 +85,7 @@ search_params = { \'delivery.start_date\' : \'>= %s\' % start_date,\n ...@@ -85,7 +85,7 @@ search_params = { \'delivery.start_date\' : \'>= %s\' % start_date,\n
transaction_list = accounting_module.searchFolder( **search_params )\n transaction_list = accounting_module.searchFolder( **search_params )\n
\n \n
comment=N_("Closing period ${period_title}",\n comment=N_("Closing period ${period_title}",\n
mapping={\'period_title\': closing_period.getTitle()})\n mapping={\'period_title\': unicode(closing_period.getTitle(), \'utf8\')})\n
\n \n
section_uid = closing_period.getParentValue().getUid()\n section_uid = closing_period.getParentValue().getUid()\n
for transaction in transaction_list :\n for transaction in transaction_list :\n
...@@ -162,6 +162,7 @@ closing_period.activate( \n ...@@ -162,6 +162,7 @@ closing_period.activate( \n
<string>search_params</string> <string>search_params</string>
<string>_apply_</string> <string>_apply_</string>
<string>transaction_list</string> <string>transaction_list</string>
<string>unicode</string>
<string>comment</string> <string>comment</string>
<string>section_uid</string> <string>section_uid</string>
<string>_getiter_</string> <string>_getiter_</string>
......
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