this.paymentNote,
this.checkNumber,
this.ccPaymentParams,
- this.convertChangeToCredit
+ this.convertChangeToCredit ? this.pendingChange() : null
);
})
.then(resp => {
return this.handlePayReceipt(payments, resp.payments);
})
+ .then(_ => this.context.refreshPatron())
+
// refresh affected xact IDs
.then(_ => this.billGrid.reload())
paymentNote?: string,
checkNumber?: string,
creditCardParams?: CreditCardPaymentParams,
- convertChangeToCredit?: boolean): Promise<PaymentResponse> {
+ addPatronCredit?: number): Promise<PaymentResponse> {
return this.net.request(
'open-ils.circ',
payment_type: paymentType,
check_number: checkNumber,
payments: payments,
- patron_credit: convertChangeToCredit,
+ patron_credit: addPatronCredit,
cc_args: creditCardParams
}, patronLastXactId).toPromise()