[Erp5-report] r16466 - /erp5/trunk/products/ERP5/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 19 09:23:19 CEST 2007
Author: jerome
Date: Wed Sep 19 09:23:19 2007
New Revision: 16466
URL: http://svn.erp5.org?rev=16466&view=rev
Log:
We are destination section on Balance Transaction, not source section. Update tests.
Modified:
erp5/trunk/products/ERP5/tests/testAccounting.py
erp5/trunk/products/ERP5/tests/testAccountingReports.py
Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=16466&r1=16465&r2=16466&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Wed Sep 19 09:23:19 2007
@@ -120,7 +120,8 @@
created_by_builder = kw.pop('created_by_builder', lines is not None)
kw.setdefault('start_date', DateTime())
kw.setdefault('resource', 'currency_module/euro')
- if portal_type in ('Purchase Invoice Transaction', ):
+ if portal_type in ('Purchase Invoice Transaction',
+ 'Balance Transaction'):
if 'destination_section' not in kw:
kw.setdefault('destination_section_value', self.section)
else:
Modified: erp5/trunk/products/ERP5/tests/testAccountingReports.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccountingReports.py?rev=16466&r1=16465&r2=16466&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccountingReports.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccountingReports.py Wed Sep 19 09:23:19 2007
@@ -1215,19 +1215,19 @@
self._makeOne(
portal_type='Balance Transaction',
title='Transaction 0',
- source_reference='0',
+ destination_reference='0',
simulation_state='delivered',
start_date=DateTime(2006, 1, 1),
- lines=(dict(source_value=account_module.payable,
- source_credit=600.0,
- destination_section_value=
+ lines=(dict(destination_value=account_module.payable,
+ destination_credit=600.0,
+ source_section_value=
self.organisation_module.client_1,),
- dict(source_value=account_module.receivable,
- source_debit=400.0,
- destination_section_value=
+ dict(destination_value=account_module.receivable,
+ destination_debit=400.0,
+ source_section_value=
self.organisation_module.client_2,),
- dict(source_value=account_module.equity,
- source_debit=200)))
+ dict(destination_value=account_module.equity,
+ destination_debit=200)))
# one more transaction in the period, because our testing data does not
# include the sales
@@ -1257,7 +1257,7 @@
self.assertEquals(1, len(report_section_list))
line_list = self.getListBoxLineList(report_section_list[0])
data_line_list = [l for l in line_list if l.isDataLine()]
-
+
self.assertEquals(5, len(data_line_list))
# account are sorted by GAP Id
More information about the Erp5-report
mailing list