From: Bill Erickson Date: Wed, 22 Jun 2022 22:24:36 +0000 (-0400) Subject: LP1840773 SCKO Angular X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=488877099c4cc2a1d7d0f485aab957d7454a8218;p=working%2FEvergreen.git LP1840773 SCKO Angular Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/scko/fines.component.html b/Open-ILS/src/eg2/src/app/scko/fines.component.html index 4ff46b06f0..9a4223c5ac 100644 --- a/Open-ILS/src/eg2/src/app/scko/fines.component.html +++ b/Open-ILS/src/eg2/src/app/scko/fines.component.html @@ -21,7 +21,7 @@ - {{displayValue(xact, 'title')}} + {{getTitle(xact)}} {{xact.summary().last_billing_type()}} diff --git a/Open-ILS/src/eg2/src/app/scko/fines.component.ts b/Open-ILS/src/eg2/src/app/scko/fines.component.ts index c69d089e1d..ab79855f06 100644 --- a/Open-ILS/src/eg2/src/app/scko/fines.component.ts +++ b/Open-ILS/src/eg2/src/app/scko/fines.component.ts @@ -63,5 +63,15 @@ export class SckoFinesComponent implements OnInit { return entry ? entry.value() : ''; } + getTitle(xact: IdlObject): string { + const copy = xact.circulation().target_copy(); + + if (Number(copy.call_number().id()) === -1) { + return copy.dummy_title(); + } + + return this.displayValue(xact, 'title'); + } + }