Fix: Edit is Payment/Receipt was not working as mathSolver was not injected
This commit is contained in:
parent
e56b35dd53
commit
65d95308ae
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user