[Erp5-report] r34489 jerome - /erp5/trunk/products/ERP5/tests/testAccountingReports.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 13 11:30:02 CEST 2010


Author: jerome
Date: Tue Apr 13 11:29:52 2010
New Revision: 34489

URL: http://svn.erp5.org?rev=34489&view=rev
Log:
test that currency is visible on accounting reports

Modified:
    erp5/trunk/products/ERP5/tests/testAccountingReports.py

Modified: erp5/trunk/products/ERP5/tests/testAccountingReports.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccountingReports.py?rev=34489&r1=34488&r2=34489&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccountingReports.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testAccountingReports.py [utf8] Tue Apr 13 11:29:52 2010
@@ -161,6 +161,9 @@
                                self.portal.accounting_module,
                                'AccountingTransactionModule_viewJournalReport')
     self.assertEquals(1, len(report_section_list))
+    # currency is present in the report
+    self.assertEquals('currency_module/euro', self.portal.
+     AccountingTransactionModule_viewJournalReport.your_currency.get_value('default'))
     
     # precision is set in the REQUEST (so that fields know how to format)
     precision = self.portal.REQUEST.get('precision')
@@ -674,6 +677,10 @@
     # precision is set in the REQUEST (so that fields know how to format)
     precision = self.portal.REQUEST.get('precision')
     self.assertEquals(2, precision)
+
+    # currency is present in the report
+    self.assertEquals('currency_module/euro', self.portal.
+        AccountModule_viewAccountStatementReport.your_currency.get_value('default'))
     
     line_list = self.getListBoxLineList(report_section_list[0])
     data_line_list = [l for l in line_list if l.isDataLine()]
@@ -1743,6 +1750,10 @@
     line_list = self.getListBoxLineList(report_section_list[0])
     data_line_list = [l for l in line_list if l.isDataLine()]
     
+    # currency is present in the report
+    self.assertEquals('currency_module/euro', self.portal.
+        AccountModule_viewTrialBalanceReport.your_currency.get_value('default'))
+
     # all accounts are present
     self.assertEquals(
           len(self.portal.account_module.contentValues(portal_type='Account')),
@@ -2700,6 +2711,10 @@
           if field.getId() != 'listbox':
             self.fail('Field %s should not be visible' % field.getId())
     report_section.popReport(self.portal)
+
+    # currency is present in the report
+    self.assertEquals('currency_module/euro', self.portal.
+        AccountModule_viewGeneralLedgerReport.your_currency.get_value('default'))
     
     # report layout
     self.assertEquals(['Movement_getSpecificReference',
@@ -3038,6 +3053,9 @@
     self.assertEquals(1, len(report_section_list))
     self.assertEquals(report_section_list[0].getTitle(),
                       self.organisation_module.client_1.getTitle())
+    # currency is present in the report
+    self.assertEquals('currency_module/euro', self.portal.
+        AccountModule_viewOtherPartiesReport.your_currency.get_value('default'))
 
     line_list = self.getListBoxLineList(report_section_list[0])
     data_line_list = [l for l in line_list if l.isDataLine()]




More information about the Erp5-report mailing list