Commit 4d21d4af authored by Vincent Pelletier's avatar Vincent Pelletier

Internal referene is now used, which is ok for internal bank accounts (their...

Internal referene is now used, which is ok for internal bank accounts (their reference property contains  the internal reference) but not ok for other bank accounts. String index contains the internal reference in all cases.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14427 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d6b0ea3d
...@@ -132,9 +132,10 @@ else:\n ...@@ -132,9 +132,10 @@ else:\n
check_amount = line.get(\'check_amount\',None)\n check_amount = line.get(\'check_amount\',None)\n
quantity = int(line.get(\'quantity\',0))\n quantity = int(line.get(\'quantity\',0))\n
if destination_payment_reference not in (None,\'\'):\n if destination_payment_reference not in (None,\'\'):\n
# String index contains the internal bank account reference\n
account_list = [x.getObject() for x in\n account_list = [x.getObject() for x in\n
context.portal_catalog(portal_type=\'Bank Account\',\n context.portal_catalog(portal_type=\'Bank Account\',\n
reference=destination_payment_reference)]\n string_index=destination_payment_reference)]\n
if len(account_list)==0:\n if len(account_list)==0:\n
message = \'This account number does not exist\'\n message = \'This account number does not exist\'\n
generate_error(line,\'destination_payment_reference\',message)\n generate_error(line,\'destination_payment_reference\',message)\n
......
184 186
\ 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