Commit 6016292a authored by Sebastien Robin's avatar Sebastien Robin

fixed variable name

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14569 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e693f63f
......@@ -133,6 +133,7 @@ if check_resource is None:\n
check_model_reference = \'CCOP\'\n
check_resource = transaction.Base_getCheckModelByReference(\n
reference=check_model_reference).getRelativeUrl()\n
transaction.edit(aggregate_resource=check_resource)\n
\n
if not check_number:\n
msg = Message(domain=\'ui\', message="Check not defined.")\n
......
......@@ -141,7 +141,9 @@ def checkReferenceListUniqueness(reference_list, model, destination_payment_uid)
"""\n
Check each given reference not to already exist.\n
"""\n
context.log(\'query\', portal.portal_catalog(portal_type=\'Check\', reference=reference_list, destination_payment_uid=destination_payment_uid, resource_relative_url=model, src__=1))\n
match_list = portal.portal_catalog(portal_type=\'Check\', reference=reference_list, destination_payment_uid=destination_payment_uid, resource_relative_url=model)\n
context.log(\'len\', len(match_list))\n
assertReferenceMatchListEmpty(match_list)\n
for reference in reference_list:\n
tag = \'check_%s_%s_%s\' % (model, destination_payment_uid, reference)\n
......@@ -215,7 +217,7 @@ for line in line_list:\n
item.setTitle(\'%s - %s\' % (reference_range_min, reference_range_max))\n
item.setCheckAmount(check_amount)\n
destination_section = item.getDestinationSection()\n
for j in reference_list:\n
for reference in reference_list:\n
tag = \'check_%s_%s_%s\' % (model, destination_payment_uid, reference)\n
encountered_check_identifiers_dict[tag] = None\n
check = item.newContent(portal_type=\'Check\', title=str(reference), activate_kw={\'tag\': tag})\n
......@@ -348,7 +350,6 @@ for line in line_list:\n
<string>reference_list</string>
<string>reference_range_max</string>
<string>destination_section</string>
<string>j</string>
<string>reference</string>
<string>tag</string>
<string>_write_</string>
......
238
\ No newline at end of file
240
\ 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