[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. f57e79bead9d033c93e469b957bce7c6777bf7ee

Evergreen Git git at git.evergreen-ils.org
Wed Jun 21 12:28:00 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, rel_2_12 has been updated
       via  f57e79bead9d033c93e469b957bce7c6777bf7ee (commit)
      from  b5f6ac257e04a11d90e65ccb6e9125521d54aad4 (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 f57e79bead9d033c93e469b957bce7c6777bf7ee
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 ea71279..27eeda3 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);
             }

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

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