From 65d95308aec03e69941383a182fd4831d86d3dc0 Mon Sep 17 00:00:00 2001 From: tanshu Date: Wed, 21 Dec 2016 12:30:54 +0530 Subject: [PATCH] Fix: Edit is Payment/Receipt was not working as mathSolver was not injected --- brewman/static/scripts/payment.js | 2 +- brewman/static/scripts/receipt.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/brewman/static/scripts/payment.js b/brewman/static/scripts/payment.js index 887fb642..319108fb 100644 --- a/brewman/static/scripts/payment.js +++ b/brewman/static/scripts/payment.js @@ -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.ok = function () { $scope.edit.Amount = mathSolver($scope.edit.Amount); diff --git a/brewman/static/scripts/receipt.js b/brewman/static/scripts/receipt.js index 566f591a..0006ea04 100644 --- a/brewman/static/scripts/receipt.js +++ b/brewman/static/scripts/receipt.js @@ -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.ok = function () { $scope.edit.Amount = mathSolver($scope.edit.Amount);