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 @@ ...@@ -49,6 +49,7 @@
<item>Traveler Check Purchase</item> <item>Traveler Check Purchase</item>
</portal_type> </portal_type>
<portal_type id="Traveler Check Sale"> <portal_type id="Traveler Check Sale">
<item>Banking Operation Line</item>
<item>Checkbook Delivery Line</item> <item>Checkbook Delivery Line</item>
</portal_type> </portal_type>
<portal_type id="Traveler Check Sale Module"> <portal_type id="Traveler Check Sale Module">
......
...@@ -68,7 +68,12 @@ ...@@ -68,7 +68,12 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 # Then all of them should be set as confirmed\n
transaction = state_change[\'object\']\n transaction = state_change[\'object\']\n
\n \n
...@@ -88,7 +93,9 @@ for line in line_list:\n ...@@ -88,7 +93,9 @@ for line in line_list:\n
elif aggregate.getPortalType()==\'Check\':\n elif aggregate.getPortalType()==\'Check\':\n
aggregate.setStartDate(transaction.getStartDate())\n aggregate.setStartDate(transaction.getStartDate())\n
aggregate.confirm()\n aggregate.confirm()\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <string>updateCheckAndCheckbook</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
...@@ -30,6 +30,16 @@ ...@@ -30,6 +30,16 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>creation_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>groups</string> </key> <key> <string>groups</string> </key>
<value> <value>
...@@ -44,6 +54,10 @@ ...@@ -44,6 +54,10 @@
<key> <string>initial_state</string> </key> <key> <string>initial_state</string> </key>
<value> <string>draft</string> </value> <value> <string>draft</string> </value>
</item> </item>
<item>
<key> <string>manager_bypass</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>permissions</string> </key> <key> <string>permissions</string> </key>
<value> <value>
...@@ -60,7 +74,7 @@ ...@@ -60,7 +74,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Checkbook Delivery Workflow</string> </value> <value> <string>Traveler Check Purchase Workflow</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -30,6 +30,16 @@ ...@@ -30,6 +30,16 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>creation_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>groups</string> </key> <key> <string>groups</string> </key>
<value> <value>
...@@ -44,6 +54,10 @@ ...@@ -44,6 +54,10 @@
<key> <string>initial_state</string> </key> <key> <string>initial_state</string> </key>
<value> <string>draft</string> </value> <value> <string>draft</string> </value>
</item> </item>
<item>
<key> <string>manager_bypass</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>permissions</string> </key> <key> <string>permissions</string> </key>
<value> <value>
...@@ -60,7 +74,7 @@ ...@@ -60,7 +74,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Checkbook Delivery Workflow</string> </value> <value> <string>Traveler Check Sale Workflow</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
118 120
\ No newline at end of file \ No newline at end of file
...@@ -16,4 +16,5 @@ Stop Payment | Checkbook Delivery Line ...@@ -16,4 +16,5 @@ Stop Payment | Checkbook Delivery Line
Traveler Check Purchase Module | Traveler Check Purchase Traveler Check Purchase Module | Traveler Check Purchase
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 | Checkbook Delivery 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