Commit 24a8c164 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

currency check for bank account only (patch by Jérome).

parent d0455ce8
...@@ -103,7 +103,7 @@ for line in transaction_lines:\n ...@@ -103,7 +103,7 @@ for line in transaction_lines:\n
mapping=dict(bank_account_reference=unicode(\n mapping=dict(bank_account_reference=unicode(\n
bank_account.getReference(), \'utf8\')))\n bank_account.getReference(), \'utf8\')))\n
\n \n
if account is not None:\n if account is not None and account.isMemberOf(\'account_type/asset/cash/bank\'):\n
# also check that currencies are consistent if we use this quantity for\n # also check that currencies are consistent if we use this quantity for\n
# accounting.\n # accounting.\n
bank_account_currency = bank_account.getProperty(\'price_currency\')\n bank_account_currency = bank_account.getProperty(\'price_currency\')\n
......
1470 1471
\ 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