Commit 3e99eb64 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* do not build Payment Transaction for simulation movements whose grand parent...

* do not build Payment Transaction for simulation movements whose grand parent simulation are not yet started.
* accept related_simulation_movement_path_list parameter in Payment Transaction Builder's after generation script.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32083 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5f2cd62
......@@ -73,7 +73,7 @@ if payment_transaction.getSimulationState() == "draft":\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>related_simulation_movement_path_list=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -93,12 +93,14 @@ if payment_transaction.getSimulationState() == "draft":\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>related_simulation_movement_path_list</string>
<string>kw</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>context</string>
......@@ -115,7 +117,9 @@ if payment_transaction.getSimulationState() == "draft":\n
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
......
......@@ -55,6 +55,7 @@
<key> <string>_body</string> </key>
<value> <string>kw[\'parent_specialise_portal_type\'] = \'Payment Rule\'\n
kw[\'portal_type\'] = \'Simulation Movement\'\n
kw[\'grand_parent_simulation_state\'] = [\'started\']\n
kw.update(context.portal_catalog.buildSQLQuery(**kw))\n
kw[\'max_movement_date\'] = DateTime() + 30 # XXX this is an arbitrary value for experimentation\n
# this could be an alarm configuration.\n
......
1091
\ No newline at end of file
1092
\ 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