[Erp5-report] r7646 - /erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_ac...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 8 14:34:28 CEST 2006
Author: kevin
Date: Thu Jun 8 14:34:26 2006
New Revision: 7646
URL: http://svn.erp5.org?rev=7646&view=rev
Log:
Don't create empty lines when the closing balance is generated.
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createClosingTransaction.xml
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createClosingTransaction.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createClosingTransaction.xml?rev=7646&r1=7645&r2=7646&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createClosingTransaction.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createClosingTransaction.xml Thu Jun 8 14:34:26 2006
@@ -154,11 +154,12 @@
) or 0.0\n
\n
# Create the transaction line for this third party\n
- closing_transaction.newContent( portal_type = \'Accounting Transaction Line\'\n
- , source_value = account\n
- , quantity = tp_balance\n
- , destination_section_value = tp\n
- )\n
+ if tp_balance != 0.0:\n
+ closing_transaction.newContent( portal_type = \'Accounting Transaction Line\'\n
+ , source_value = account\n
+ , quantity = tp_balance\n
+ , destination_section_value = tp\n
+ )\n
\n
# Add third party balance to check consistency\n
third_parties_balance = r_(third_parties_balance + tp_balance)\n
More information about the Erp5-report
mailing list