From 0292218325d62b34e70f04d92ba51b06442a2a07 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 19 Apr 2021 15:11:43 -0400 Subject: [PATCH] LP1904036 more billing Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts | 4 +++- Open-ILS/src/eg2/src/app/staff/share/billing/billing.service.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts index 887ae896f3..605606109b 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts @@ -266,7 +266,7 @@ export class BillsComponent implements OnInit, AfterViewInit { this.paymentNote, this.checkNumber, this.ccPaymentParams, - this.convertChangeToCredit + this.convertChangeToCredit ? this.pendingChange() : null ); }) .then(resp => { @@ -274,6 +274,8 @@ export class BillsComponent implements OnInit, AfterViewInit { return this.handlePayReceipt(payments, resp.payments); }) + .then(_ => this.context.refreshPatron()) + // refresh affected xact IDs .then(_ => this.billGrid.reload()) diff --git a/Open-ILS/src/eg2/src/app/staff/share/billing/billing.service.ts b/Open-ILS/src/eg2/src/app/staff/share/billing/billing.service.ts index 89f04bd8c8..884eba2417 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/billing/billing.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/billing/billing.service.ts @@ -78,7 +78,7 @@ export class BillingService { paymentNote?: string, checkNumber?: string, creditCardParams?: CreditCardPaymentParams, - convertChangeToCredit?: boolean): Promise { + addPatronCredit?: number): Promise { return this.net.request( 'open-ils.circ', @@ -89,7 +89,7 @@ export class BillingService { payment_type: paymentType, check_number: checkNumber, payments: payments, - patron_credit: convertChangeToCredit, + patron_credit: addPatronCredit, cc_args: creditCardParams }, patronLastXactId).toPromise() -- 2.11.0