From 2ac10f16c3accf285b8814877208ab9e0d01bb3e Mon Sep 17 00:00:00 2001 From: tanshu Date: Thu, 9 Feb 2017 19:22:19 +0530 Subject: [PATCH] Fix: Employee Functions --- brewman/static/app/overlord.app.js | 2 +- brewman/static/app/reconcile/reconcile.controller.js | 2 +- brewman/static/app/service-charge/service-charge.controller.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/brewman/static/app/overlord.app.js b/brewman/static/app/overlord.app.js index efd99df5..53f0f102 100644 --- a/brewman/static/app/overlord.app.js +++ b/brewman/static/app/overlord.app.js @@ -212,7 +212,7 @@ var overlord = angular.module('overlord', ['overlord.directive', 'overlord.filte resolve: PurchasesController.resolve }). when('/EmployeeFunctions', { - templateUrl: '/app/employee-functions/employee-functions.html', + templateUrl: '/app/employee/employee-functions.html', controller: EmployeeFunctionsController }). diff --git a/brewman/static/app/reconcile/reconcile.controller.js b/brewman/static/app/reconcile/reconcile.controller.js index 4260f7cc..a3f25fd0 100644 --- a/brewman/static/app/reconcile/reconcile.controller.js +++ b/brewman/static/app/reconcile/reconcile.controller.js @@ -19,7 +19,7 @@ var ReconcileController = ['$scope', '$routeParams', '$location', 'asDateFilter' }; $scope.info = reconcile; $scope.show = function () { - var id = $scope.info.Account.LedgerID + var id = $scope.info.Account.LedgerID; if (id === $routeParams.id && $scope.info.StartDate === $routeParams.StartDate && $scope.info.FinishDate === $routeParams.FinishDate) { Reconcile.get({id: id, StartDate: $scope.info.StartDate, FinishDate: $scope.info.FinishDate}, function (data) { $scope.info = data; diff --git a/brewman/static/app/service-charge/service-charge.controller.js b/brewman/static/app/service-charge/service-charge.controller.js index d4e1bae6..cbb45ffc 100644 --- a/brewman/static/app/service-charge/service-charge.controller.js +++ b/brewman/static/app/service-charge/service-charge.controller.js @@ -44,7 +44,7 @@ var ServiceChargeController = ['$scope', '$location', '$routeParams', 'numberFil $scope.employeeAmount = function (employee) { return Number(employee.Points) * employee.DaysWorked * $scope.PointValue(); - } + }; $scope.preventAlteration = function (voucher) { if (angular.isUndefined($scope.perms)) { return false;