コード例 #1
0
ファイル: des.py プロジェクト: christoffkok/auxi.0
    def report(self, format=ReportFormat.printout, output_path=None):
        """
        Returns a report of this class.

        :param format: The format of the report.
        :param output_path: The path to the file the report is written to.
          If None, then the report is not written to a file.

        :returns: The decendants of the account.
        """

        rpt = GlsRpt(self, output_path)
        return rpt.render(format)
コード例 #2
0
ファイル: des.py プロジェクト: kthnyt/auxi.0
    def report(self, format=ReportFormat.printout, output_path=None):
        """
        Returns a report of this class.

        :param format: The format of the report.
        :param output_path: The path to the file the report is written to.
          If None, then the report is not written to a file.

        :returns: The descendants of the account.
        """

        rpt = GlsRpt(self, output_path)
        return rpt.render(format)
コード例 #3
0
class GeneralLedgerStructureUnitTester(unittest.TestCase):
    """
    Tester for the auxi.modelling.financial.reporting.GeneralLedgerStructure
    class.
    """

    def setUp(self):
        gls = Gls("NameA")
        self.object = GeneralLedgerStructure(
            data_source=gls, output_path=None)

    def test__generate_table_(self):
        table = self.object._generate_table_()
        self.assertEqual(table[0], ["Type", "Number", "Name", "Description"])
        # The general leger has 27 accounts
        self.assertEqual(len(table), 28)
コード例 #4
0
ファイル: reporting_test.py プロジェクト: SShilo/auxi.0
class GeneralLedgerStructureUnitTester(unittest.TestCase):
    """
    Tester for the auxi.modelling.financial.reporting.GeneralLedgerStructure
    class.
    """

    def setUp(self):
        gls = Gls("NameA")
        self.object = GeneralLedgerStructure(
            data_source=gls, output_path=None)

    def test__generate_table_(self):
        table = self.object._generate_table_()
        self.assertEqual(table[0], ["Type", "Number", "Name", "Description"])
        # The general leger has 27 accounts
        self.assertEqual(len(table), 28)
コード例 #5
0
 def setUp(self):
     gls = Gls("NameA")
     self.object = GeneralLedgerStructure(
         data_source=gls, output_path=None)
コード例 #6
0
ファイル: reporting_test.py プロジェクト: SShilo/auxi.0
 def setUp(self):
     gls = Gls("NameA")
     self.object = GeneralLedgerStructure(
         data_source=gls, output_path=None)