Commit 112b234f authored by Hervé Poulain's avatar Hervé Poulain

Modify the transition to do checking of price currency between bank_account...

Modify the transition to do checking of price currency between bank_account and transaction, it must be the same. (fix bug number: 1242, the corresponding unit test is commited in the revision number 34386)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34387 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abb7d8d8
......@@ -98,13 +98,13 @@ for line in transaction.contentValues(filter=dict(\n
mapping=dict(third_party_name=unicode(\n
third_party.getTitle(), \'utf8\')))\n
\n
if bank_account is not None and\\\n
bank_account.getValidationState() in invalid_state_list:\n
if bank_account is not None:\n
if bank_account.getValidationState() in invalid_state_list:\n
raise ValidationFailed, translateString(\n
"Bank Account ${bank_account_reference} is invalid.",\n
mapping=dict(bank_account_reference=unicode(\n
bank_account.getReference(), \'utf8\')))\n
\n
\n
if account is not None:\n
# also check that currencies are consistent if we use this quantity for\n
# accounting.\n
......
1155
\ No newline at end of file
1156
\ 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