[open-ils-commits] [GIT] Evergreen ILS branch master updated. 0034291b362b32ef211a212370a1066e01f674d7

Evergreen Git git at git.evergreen-ils.org
Wed Jun 21 12:26:46 EDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  0034291b362b32ef211a212370a1066e01f674d7 (commit)
      from  792d27e04503791aa86d1bde34f21c6a61168598 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0034291b362b32ef211a212370a1066e01f674d7
Author: Cesar Velez <cesar.velez at equinoxinitiative.org>
Date:   Mon Jun 5 17:50:18 2017 -0400

    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 <cesar.velez at equinoxinitiative.org>
    
    Signed-off-by: Jason Etheridge <jason at equinoxinitiative.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

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 fcf8012..bbf6595 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. -->
   <form class="form-inline" role="form">
    <div class="checkbox">
       <label>
-        <input type="checkbox" ng-model="receipt_on_pay"/> 
+        <input id="receipt_on_pay" type="checkbox" ng-model="receipt_on_pay.isChecked"/>
         [% l('Receipt On Payment') %]
       </label>
     </div>
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 c365c82..836100f 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);
             }

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/staff/circ/patron/t_bills.tt2    |    2 +-
 .../web/js/ui/default/staff/circ/patron/bills.js   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list