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=0034291b362b32ef211a212370a1066e01f674d7;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 c365c8228c..836100f9be 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 @@ -159,7 +159,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; @@ -316,7 +316,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); }