Commit 6e3183a0 authored by Kevin Deldycke's avatar Kevin Deldycke

Don't create empty lines when the closing balance is generated.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7646 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b084862
...@@ -154,11 +154,12 @@ for account in account_list:\n ...@@ -154,11 +154,12 @@ for account in account_list:\n
) or 0.0\n ) or 0.0\n
\n \n
# Create the transaction line for this third party\n # Create the transaction line for this third party\n
closing_transaction.newContent( portal_type = \'Accounting Transaction Line\'\n if tp_balance != 0.0:\n
, source_value = account\n closing_transaction.newContent( portal_type = \'Accounting Transaction Line\'\n
, quantity = tp_balance\n , source_value = account\n
, destination_section_value = tp\n , quantity = tp_balance\n
)\n , destination_section_value = tp\n
)\n
\n \n
# Add third party balance to check consistency\n # Add third party balance to check consistency\n
third_parties_balance = r_(third_parties_balance + tp_balance)\n third_parties_balance = r_(third_parties_balance + tp_balance)\n
......
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