def get_all(tallySheetId): tallySheet = TallySheet.get_by_id(tallySheetId=tallySheetId) if tallySheet is None: raise NotFoundException("Tally sheet not found. (tallySheetId=%d)" % tallySheetId) result = TallySheetVersion.get_all(tallySheetId=tallySheetId) result = get_paginated_query(result).all() return TallySheetVersion_CE_201_PV_Schema(many=True).dump(result).data
def get_all(tallySheetId): tallySheet = TallySheet.get_by_id(tallySheetId=tallySheetId) if tallySheet is None: raise NotFoundException( message="Tally sheet not found (tallySheetId=%d)" % tallySheetId, code=MESSAGE_CODE_TALLY_SHEET_NOT_FOUND) result = TallySheetVersion.get_all(tallySheetId=tallySheetId) result = get_paginated_query(result).all() return TallySheetVersion_CE_201_PV_Schema(many=True).dump(result).data
def get_all(tallySheetId): result = TallySheetVersion.get_all(tallySheetId=tallySheetId) result = get_paginated_query(result).all() return TallySheetVersionSchema(many=True).dump(result).data
def get_all(tallySheetId): result = TallySheetVersion.get_all(tallySheetId=tallySheetId) return Schema(many=True).dump(result).data