Commit 093c7ae4 authored by Jérome Perrin's avatar Jérome Perrin

uncondionnaly initialise mirror accounting on internal invoices

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38537 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 628872c8
......@@ -66,8 +66,9 @@ for movement in context.contentValues(portal_type=portal.getPortalAccountingMove
if (source_account is not None) ^ (destination_account is not None):\n
movement_data_list.append((movement, source_account, destination_account))\n
\n
# If both are true, mirror accounting is used.\n
if has_source and has_destination:\n
# If both are true or we have an internal invoice, mirror accounting is used\n
if (has_source and has_destination) or\\\n
context.getPortalType() == \'Internal Invoice Transaction\':\n
for movement, source_account, destination_account in movement_data_list:\n
if source_account is None:\n
account = destination_account\n
......
1351
\ No newline at end of file
1352
\ 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