invoke email receipt sending correctly
authorGalen Charlton <gmc@esilibrary.com>
Thu, 4 Aug 2016 14:15:12 +0000 (10:15 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 4 Aug 2016 14:15:12 +0000 (10:15 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js

index 04110aa..d2fddcc 100644 (file)
@@ -222,7 +222,7 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
     }
 
     $scope.print_or_email_receipt = function () {
-        if ($scope.email_receipt()) return $scope.send_email_receipt;
+        if ($scope.email_receipt()) return $scope.send_email_receipt();
         $scope.print_receipt();
     }