Commit e6460948 authored by Sebastien Robin's avatar Sebastien Robin

some content types were missing for traveler check purchase

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13596 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe0aada9
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
<item>Stop Payment</item> <item>Stop Payment</item>
</portal_type> </portal_type>
<portal_type id="Traveler Check Purchase"> <portal_type id="Traveler Check Purchase">
<item>Banking Operation Line</item>
<item>Checkbook Delivery Line</item> <item>Checkbook Delivery Line</item>
</portal_type> </portal_type>
<portal_type id="Traveler Check Purchase Module"> <portal_type id="Traveler Check Purchase Module">
......
...@@ -201,9 +201,10 @@ for line in line_list:\n ...@@ -201,9 +201,10 @@ for line in line_list:\n
start_date = transaction.getStartDate()\n start_date = transaction.getStartDate()\n
destination_section = item.getDestinationSection()\n destination_section = item.getDestinationSection()\n
item.setStartDate(start_date)\n item.setStartDate(start_date)\n
for j in xrange(reference_to_int(reference_range_min), last_reference_value + 1):\n reference_list = xrange(reference_to_int(reference_range_min), last_reference_value + 1)\n
checkReferenceUniqueness(reference_list, model)\n
for j in reference_list:\n
reference = int_to_reference(j, reference_range_min)\n reference = int_to_reference(j, reference_range_min)\n
checkReferenceUniqueness(reference, model)\n
check = item.newContent(portal_type=\'Check\', title=str(reference), activate_kw={\'tag\': \'check_%s_%s\' % (model, reference)})\n check = item.newContent(portal_type=\'Check\', title=str(reference), activate_kw={\'tag\': \'check_%s_%s\' % (model, reference)})\n
check.setDestination(destination_section)\n check.setDestination(destination_section)\n
check.setStartDate(start_date)\n check.setStartDate(start_date)\n
...@@ -321,6 +322,7 @@ for line in line_list:\n ...@@ -321,6 +322,7 @@ for line in line_list:\n
<string>reference_range_max</string> <string>reference_range_max</string>
<string>start_date</string> <string>start_date</string>
<string>destination_section</string> <string>destination_section</string>
<string>reference_list</string>
<string>j</string> <string>j</string>
<string>reference</string> <string>reference</string>
<string>str</string> <string>str</string>
......
122 124
\ No newline at end of file \ No newline at end of file
...@@ -14,6 +14,7 @@ Checkbook Vault Transfer | Checkbook Delivery Line ...@@ -14,6 +14,7 @@ Checkbook Vault Transfer | Checkbook Delivery Line
Stop Payment Module | Stop Payment Stop Payment Module | Stop Payment
Stop Payment | Checkbook Delivery Line Stop Payment | Checkbook Delivery Line
Traveler Check Purchase Module | Traveler Check Purchase Traveler Check Purchase Module | Traveler Check Purchase
Traveler Check Purchase | Banking Operation Line
Traveler Check Purchase | Checkbook Delivery Line Traveler Check Purchase | Checkbook Delivery Line
Traveler Check Sale Module | Traveler Check Sale Traveler Check Sale Module | Traveler Check Sale
Traveler Check Sale | Banking Operation Line Traveler Check Sale | Banking Operation Line
......
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