From 4da9e0003683c59c27a0c3c215c7ca113634c34d Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 30 Oct 2014 10:50:03 -0400 Subject: [PATCH] Add Check Number input Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 | 9 +++++++++ Open-ILS/web/js/ui/default/staff/circ/patron/bills.js | 6 ++++-- 2 files changed, 13 insertions(+), 2 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 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) { -- 2.11.0