</div>
</div>
<div class="form-group">
+ <label for="check-input" class="col-md-6 control-label">
+ [% l('Check Number') %]
+ </label>
+ <div class="col-md-6">
+ <input type="number" min="1" step="any" id="check-input"
+ ng-model="check_number" focus-me="focus_check"
+ value="" class="form-control col-md-6 "/>
+ </div>
+ <div class="form-group">
<label for="amount-input" class="col-md-6 control-label">
[% l('Payment Received') %]
</label>
.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',
userid : service.userId,
note : note || '',
payment_type : type,
+ check_number : check,
payments : payments,
patron_credit : 0
},
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';
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) {