Beispiel #1
0
    def turnover_projections(self):
        """
            Return a query for turnover projections
        """
        query = TurnoverProjection.query()
        query = query.filter(
            TurnoverProjection.company_id == self.request.context.id)
        result = query.filter(TurnoverProjection.year == self.year)

        return result
Beispiel #2
0
    def turnover_projections(self):
        """
            Return a query for turnover projections
        """
        query = TurnoverProjection.query()
        query = query.filter(
            TurnoverProjection.company_id == self.request.context.id
            )
        result = query.filter(TurnoverProjection.year == self.year)

        return result
def getOne():
    return TurnoverProjection.query().first()
def getOne():
    return TurnoverProjection.query().first()