Commit 31a9debe authored by Aurel's avatar Aurel

remove banking operation line if present

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14648 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad001336
...@@ -67,6 +67,10 @@ ...@@ -67,6 +67,10 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>transaction = state_change[\'object\']\n <value> <string>transaction = state_change[\'object\']\n
\n \n
banking_operation_line_list = transaction.contentValues(filter = {\'portal_type\' : \'Banking Operation Line\'})\n
if len(banking_operation_line_list) != 0:\n
id_list = [x.getId() for x in banking_operation_line_list]\n
transaction.manage_delOb(id_list)\n
for check_operation_line in transaction.contentValues(filter = {\'portal_type\' : \'Check Operation Line\'}):\n for check_operation_line in transaction.contentValues(filter = {\'portal_type\' : \'Check Operation Line\'}):\n
source_bank_account = check_operation_line.getSourcePaymentValue()\n source_bank_account = check_operation_line.getSourcePaymentValue()\n
# immediate reindex is required to make this operation atomic.\n # immediate reindex is required to make this operation atomic.\n
...@@ -132,8 +136,14 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\' ...@@ -132,8 +136,14 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\'
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>transaction</string> <string>transaction</string>
<string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>banking_operation_line_list</string>
<string>len</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>x</string>
<string>id_list</string>
<string>check_operation_line</string> <string>check_operation_line</string>
<string>source_bank_account</string> <string>source_bank_account</string>
</tuple> </tuple>
......
260 262
\ No newline at end of file \ 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