text: (function() {
    'use strict';
    angular.module('wdApp.pages.controllers', []).controller('InvoiceController', [
      '$scope', '$window', function($scope, $window) {
        return $scope.printInvoice = function() {
          var originalContents, popupWin, printContents;
          printContents = document.getElementById('invoice').innerHTML;
          originalContents = document.body.innerHTML;
          popupWin = window.open();
          popupWin.document.open();
          popupWin.document.write('<html><head><link rel="stylesheet" type="text/css" href="styles/wd_main.css" /></head><body onload="window.print()">' + printContents + '</html>');
          return popupWin.document.close();
        };
      }
    ]);
  
  }).call(this);
  