Fix: Edit is Payment/Receipt was not working as mathSolver was not injected

This commit is contained in:
tanshu 2016-12-21 12:30:54 +05:30
parent e56b35dd53
commit 65d95308ae
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ PaymentController.resolve = {
}] }]
}; };
var PaymentModalController = ['$scope', '$modalInstance', 'edit', 'Account', function ($scope, $modalInstance, edit, Account) { var PaymentModalController = ['$scope', '$modalInstance', 'mathSolver', 'edit', 'Account', function ($scope, $modalInstance, mathSolver, edit, Account) {
$scope.edit = edit; $scope.edit = edit;
$scope.ok = function () { $scope.ok = function () {
$scope.edit.Amount = mathSolver($scope.edit.Amount); $scope.edit.Amount = mathSolver($scope.edit.Amount);

View File

@ -205,7 +205,7 @@ ReceiptController.resolve = {
}] }]
}; };
var ReceiptModalController = ['$scope', '$modalInstance', 'edit', 'Account', function ($scope, $modalInstance, edit, Account) { var ReceiptModalController = ['$scope', '$modalInstance', 'mathSolver', 'edit', 'Account', function ($scope, $modalInstance, mathSolver, edit, Account) {
$scope.edit = edit; $scope.edit = edit;
$scope.ok = function () { $scope.ok = function () {
$scope.edit.Amount = mathSolver($scope.edit.Amount); $scope.edit.Amount = mathSolver($scope.edit.Amount);