From: Cesar Velez Date: Mon, 5 Jun 2017 21:50:18 +0000 (-0400) Subject: LP#1665465 - Fix Print receipt on payment cbox not bound to model X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=297960840ce0cc4ad292b213840f02495a0e9222;p=evergreen%2Fpines.git LP#1665465 - Fix Print receipt on payment cbox not bound to model Seems that Angular for some reason has issues binding to literals... According to the interwebs it's likely due to scope nesting via ng-include Signed-off by: Cesar Velez Signed-off-by: Jason Etheridge Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 index fcf8012c99..bbf65956a0 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 @@ -108,7 +108,7 @@ not sure what's up, there. -->
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js index ea7127987b..27eeda3f41 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js @@ -147,7 +147,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, $scope.focus_payment = true; $scope.annotate_payment = false; $scope.receipt_count = 1; - $scope.receipt_on_pay = false; + $scope.receipt_on_pay = { isChecked: false }; $scope.warn_amount = 1000; $scope.max_amount = 100000; $scope.amount_verified = false; @@ -304,7 +304,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, $scope.payment_type, make_payments, note, $scope.check_number) .then(function(payment_ids) { - if (!$scope.disable_auto_print && $scope.receipt_on_pay) { + if (!$scope.disable_auto_print && $scope.receipt_on_pay.isChecked) { printReceipt( $scope.payment_type, payment_ids, make_payments, note); }