             ]
       ]
 
+    total = 0
     angular.forEach logs, (log) ->
+      total += log.points
       distance = if log.type == 'sea' then log.distance_nm else log.distance_km
       distance = $filter('float2')(distance)
 

        String(log.points),
        String(log.comment)
      ])

    definition


      pageOrientation: 'landscape'
      content: [
          text: "Logbuch von #{StorageService.get('settings.name', 'No Name')}"
          fontSize: 16
          bold: true
        ,
          text: "Erstellt am #{$filter('datetime')(moment().toISOString())}"
