diff --git a/brewman/brewman/static/scripts/product-ledger.js b/brewman/brewman/static/scripts/product-ledger.js index fd160b2c..ef6e08cc 100644 --- a/brewman/brewman/static/scripts/product-ledger.js +++ b/brewman/brewman/static/scripts/product-ledger.js @@ -12,7 +12,7 @@ var ProductLedgerCtrl = ['$scope', '$routeParams', '$location', '$q', 'dateFilte $scope.info = data; }); } else { - $location.path('/ProductLedger/' + $scope.info.Product.ProductID).search('StartDate', $scope.info.StartDate).search('FinishDate', $scope.info.FinishDate); + $location.path('/ProductLedger/' + $scope.info.Product.ProductID).search('StartDate', start_date).search('FinishDate', finish_date); } }; $scope.downloadTable = function () {