From e3d3cbabc80b5e668efbf93ff80eb2273ce9dd7c Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Mon, 5 Jun 2017 17:50:18 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/circ/patron/bills.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.11.0