Commit 1b13a509 authored by Sebastien Robin's avatar Sebastien Robin

- CheckbookReception_generateIemList reviewed by Vincent

- We now generate checks when we receive checkbooks
- some allowed content types where missing for traveler check sale

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13587 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f9cfdf3
......@@ -49,6 +49,7 @@
<item>Traveler Check Purchase</item>
</portal_type>
<portal_type id="Traveler Check Sale">
<item>Banking Operation Line</item>
<item>Checkbook Delivery Line</item>
</portal_type>
<portal_type id="Traveler Check Sale Module">
......
......@@ -68,7 +68,12 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># We will need to create all checks for all checkbooks\n
<value> <string encoding="cdata"><![CDATA[
# XXX: this script is not used any more, since checks are already\n
# generated when checks & checkbooks are received.\n
\n
# We will need to create all checks for all checkbooks\n
# Then all of them should be set as confirmed\n
transaction = state_change[\'object\']\n
\n
......@@ -88,7 +93,9 @@ for line in line_list:\n
elif aggregate.getPortalType()==\'Check\':\n
aggregate.setStartDate(transaction.getStartDate())\n
aggregate.confirm()\n
</string> </value>
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......
......@@ -38,7 +38,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>updateCheckAndCheckbook</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -30,6 +30,16 @@
<none/>
</value>
</item>
<item>
<key> <string>creation_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
......@@ -44,6 +54,10 @@
<key> <string>initial_state</string> </key>
<value> <string>draft</string> </value>
</item>
<item>
<key> <string>manager_bypass</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
......@@ -60,7 +74,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Checkbook Delivery Workflow</string> </value>
<value> <string>Traveler Check Purchase Workflow</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -30,6 +30,16 @@
<none/>
</value>
</item>
<item>
<key> <string>creation_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
......@@ -44,6 +54,10 @@
<key> <string>initial_state</string> </key>
<value> <string>draft</string> </value>
</item>
<item>
<key> <string>manager_bypass</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
......@@ -60,7 +74,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Checkbook Delivery Workflow</string> </value>
<value> <string>Traveler Check Sale Workflow</string> </value>
</item>
</dictionary>
</pickle>
......
118
\ No newline at end of file
120
\ No newline at end of file
......@@ -16,4 +16,5 @@ Stop Payment | Checkbook Delivery Line
Traveler Check Purchase Module | Traveler Check Purchase
Traveler Check Purchase | Checkbook Delivery Line
Traveler Check Sale Module | Traveler Check Sale
Traveler Check Sale | Banking Operation Line
Traveler Check Sale | Checkbook Delivery Line
\ 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