From f57e79bead9d033c93e469b957bce7c6777bf7ee 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 Signed-off-by: Kathy Lussier --- 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 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); } -- 2.11.0