Commit 64c672b4 authored by Sebastien Robin's avatar Sebastien Robin

fixed : local variable 'last_reference_value' referenced before assignment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15356 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 803d34f6
......@@ -242,6 +242,7 @@ for i in xrange(quantity):\n
check.setReference(j)\n
check.setResource(model)\n
else:\n
last_reference_value = reference_to_int(reference_range_min)\n
if check == 1:\n
checkReferenceUniqueness(reference_range_min, model, destination_payment_uid)\n
if create == 1:\n
......@@ -252,7 +253,6 @@ for i in xrange(quantity):\n
item_type = line.getCheckTypeValue()\n
item.setPrice(item_type.getPrice())\n
item.setPriceCurrency(line.getPriceCurrency())\n
last_reference_value = reference_to_int(reference_range_min)\n
#tag = \'check_%s_%s_%s\' % (model, destination_payment_uid, reference_range_min)\n
#encountered_check_identifiers_dict[tag] = None\n
# update reference_range_min for the next pass\n
......
305
\ No newline at end of file
307
\ 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