Example #1
0
 def Operation_pdf(self):
     """ """
     index = self.box_account.currentIndex()
     if index > 0:
         account = self.data_account[index - 1]
     else:
         account = None
     period = self.all_active_periods[self.box_period.currentIndex()]
     pdf_report = build_operations_report(account=account, \
                             period=period)
     uopen_file(pdf_report)
Example #2
0
    def operation_pdf(self):
        ''' Call build_operations_report '''

        index = self.box_type.currentIndex()

        if index == 0:
            pdf_report = build_all_report()
        elif index == 1:
            pdf_report = build_balance_report()
        elif index == 2:
            pdf_report = build_consumption_report()

        uopen_file(pdf_report)
Example #3
0
    def operation_pdf(self):
        ''' Call build_operations_report '''

        index = self.box_type.currentIndex()

        if index == 0:
            pdf_report = build_all_report()
        elif index == 1:
            pdf_report = build_balance_report()
        elif index == 2:
            pdf_report = build_consumption_report()

        uopen_file(pdf_report)
Example #4
0
 def balance_pdf(self):
     period = self.all_active_periods[self.box_period.currentIndex()]
     pdf_report = build_accounts_report(period=period)
     uopen_file(pdf_report)