From: Mike Rylander Date: Thu, 30 Oct 2014 14:50:03 +0000 (-0400) Subject: LP#1402797 Add Check Number input X-Git-Tag: sprint4-merge-nov22~1683 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d14fc8865e68d8157956aed023a4cecc68b2dc90;p=working%2FEvergreen.git LP#1402797 Add Check Number input Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- 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 b8ab9177ac..317bd08204 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 @@ -59,6 +59,15 @@
+ +
+ +
+
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 5b83989bfe..cee0f0fedf 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 @@ -24,7 +24,7 @@ function($q , egCore , patronSvc) { .then(function(summary) {return service.summary = summary}) } - service.applyPayment = function(type, payments, note) { + service.applyPayment = function(type, payments, note, check) { return egCore.net.request( 'open-ils.circ', 'open-ils.circ.money.payment', @@ -32,6 +32,7 @@ function($q , egCore , patronSvc) { userid : service.userId, note : note || '', payment_type : type, + check_number : check, payments : payments, patron_credit : 0 }, @@ -121,6 +122,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, billSvc.userId = $routeParams.id; // set up some defaults + $scope.check_number = 0; $scope.payment_amount = 0; $scope.session_voided = 0; $scope.payment_type = 'cash_payment'; @@ -274,7 +276,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, function sendPayment(note) { var make_payments = generatePayments(); billSvc.applyPayment( - $scope.payment_type, make_payments, note) + $scope.payment_type, make_payments, note, $scope.check_number) .then(function(payment_ids) { if ($scope.receipt_on_pay) {