def getReportTable (self):
        '''Get report table'''

        pid = self.connector.getProjectID()
        householdIDs = connector.getReportHouseholdIDs()
        reporttype = self.setReportType()
        reportconnector = LivingThreshhold()
        reportTable = reportconnector.determineLThresholdPosition(reporttype,pid,householdIDs)
        return reportTable
    def getReportTable (self):
        '''Get report table'''

        pid = self.getProjectID()
        householdIDs = self.getReportHouseholdIDs()
        reporttype = self.setReportType()
        if reporttype=='Standard of Living':
            connector = LivingThreshhold()
            reportTable = connector.determineLThresholdPosition(reporttype,pid,householdIDs)
        else:
            connector = DisposableHouseholdIncome()
            reportTable = connector.householdDisposableIncome(reporttype,pid,householdIDs)
        return reportTable
Esempio n. 3
0
 def getnonFoodExepenses(self, projectid, hid):
     """Get household non-food expenses"""
     expenses = 0
     connector = LivingThreshhold()
     expenses = connector.getHouseholdExpenditure(projectid, hid)
     return expenses