[open-ils-commits] [GIT] Evergreen ILS branch master updated. 62e4bb2d85d40d410d0a9b34664dcc8723286f2c

Evergreen Git git at git.evergreen-ils.org
Fri Jun 30 16:02:03 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  62e4bb2d85d40d410d0a9b34664dcc8723286f2c (commit)
      from  ed5127eb4c7e5836253c3c81e0223b218d2f3024 (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 62e4bb2d85d40d410d0a9b34664dcc8723286f2c
Author: Cesar Velez <Cesar.Velez at equinoxinitiative.org>
Date:   Fri Jun 23 17:45:15 2017 +0100

    LP#1697754 - WebStaff make receipt on payment sticky
    
        Add circ.bills.receiptonpay local storage setting.
    
    Signed-off by: Cesar Velez <cesar.velez at equinoxinitiative.org>
    
    Signed-off-by: Jason Etheridge <jason at equinoxinitiative.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 bbf6595..c3fda5c 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 id="receipt_on_pay" type="checkbox" ng-model="receipt_on_pay.isChecked"/>
+        <input id="receipt_on_pay" type="checkbox" ng-model="receipt_on_pay.isChecked" ng-change="onReceiptOnPayChanged()"/>
         [% 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 836100f..c648def 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
@@ -165,6 +165,12 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
     $scope.amount_verified = false;
     $scope.disable_auto_print = false;
 
+    // check receipt_on_pay setting default persisted
+    egCore.hatch.getItem('circ.bills.receiptonpay')
+                .then(function(rcptOnPay){
+                    if (rcptOnPay) $scope.receipt_on_pay.isChecked = rcptOnPay;
+                });
+
     // pre-define list-returning funcs in case we access them
     // before the grid instantiates
     $scope.gridControls = {
@@ -325,6 +331,10 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
         })
     }
 
+    $scope.onReceiptOnPayChanged = function(){
+        egCore.hatch.setItem('circ.bills.receiptonpay', $scope.receipt_on_pay.isChecked);
+    }
+
     function printReceipt(type, payment_ids, payments_made, note) {
         var payment_blobs = [];
         angular.forEach(payments_made, function(payment) {

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list