LPXXXX Potential fix for funds dropdown upgrade bug
authorTiffany Little <tlittle@georgialibraries.org>
Mon, 12 Dec 2022 21:01:27 +0000 (16:01 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 16 Dec 2022 15:52:21 +0000 (10:52 -0500)
Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copy-attrs.component.html
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copy-attrs.component.ts

index 758c965..294855a 100644 (file)
@@ -42,7 +42,7 @@
       [displayTemplate]="fundTmpl"
       [selectedId]="copy.fund()" (onChange)="valueChange('fund', $event)"
       [idlQuerySort]="{acqf: 'year DESC, code'}"
-      [idlQueryAnd]="{active: 't'}">
+      [idlQueryAnd]="{org: owners, active: 't'}">
     </eg-combobox>
   </div>
   <div class="flex-1 p-1">
index f07bc3a..72c2544 100644 (file)
@@ -29,6 +29,7 @@ export class LineitemCopyAttrsComponent implements OnInit {
     _fundBalanceCache: string[] = [];
     _inflight: Promise<string>[] = [];
     circModEntries: ComboboxEntry[];
+    owners: number[];
 
     private _copy: IdlObject;
     @Input() set copy(c: IdlObject) { // acqlid
@@ -80,6 +81,8 @@ export class LineitemCopyAttrsComponent implements OnInit {
 
     ngOnInit() {
 
+        this.owners = this.org.ancestors(this.auth.user().ws_ou(), true);
+
         if (this.gatherParamsOnly) {
             this.batchMode = false;
             this.batchAdd = false;