Fix: Employee Functions
This commit is contained in:
parent
c09515fbfe
commit
2ac10f16c3
|
@ -212,7 +212,7 @@ var overlord = angular.module('overlord', ['overlord.directive', 'overlord.filte
|
||||||
resolve: PurchasesController.resolve
|
resolve: PurchasesController.resolve
|
||||||
}).
|
}).
|
||||||
when('/EmployeeFunctions', {
|
when('/EmployeeFunctions', {
|
||||||
templateUrl: '/app/employee-functions/employee-functions.html',
|
templateUrl: '/app/employee/employee-functions.html',
|
||||||
controller: EmployeeFunctionsController
|
controller: EmployeeFunctionsController
|
||||||
}).
|
}).
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ var ReconcileController = ['$scope', '$routeParams', '$location', 'asDateFilter'
|
||||||
};
|
};
|
||||||
$scope.info = reconcile;
|
$scope.info = reconcile;
|
||||||
$scope.show = function () {
|
$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) {
|
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) {
|
Reconcile.get({id: id, StartDate: $scope.info.StartDate, FinishDate: $scope.info.FinishDate}, function (data) {
|
||||||
$scope.info = data;
|
$scope.info = data;
|
||||||
|
|
|
@ -44,7 +44,7 @@ var ServiceChargeController = ['$scope', '$location', '$routeParams', 'numberFil
|
||||||
|
|
||||||
$scope.employeeAmount = function (employee) {
|
$scope.employeeAmount = function (employee) {
|
||||||
return Number(employee.Points) * employee.DaysWorked * $scope.PointValue();
|
return Number(employee.Points) * employee.DaysWorked * $scope.PointValue();
|
||||||
}
|
};
|
||||||
$scope.preventAlteration = function (voucher) {
|
$scope.preventAlteration = function (voucher) {
|
||||||
if (angular.isUndefined($scope.perms)) {
|
if (angular.isUndefined($scope.perms)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue