LP1929741 Fund limit/sort on new charges
authorBill Erickson <berickxx@gmail.com>
Tue, 22 Jun 2021 19:44:08 +0000 (15:44 -0400)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:49 +0000 (08:02 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/staff/acq/po/charges.component.html

index 7ee0484..4ea1891 100644 (file)
       <eg-combobox idlClass="acqf" [selectedId]="charge.fund()"
         (onChange)="charge.fund($event ? $event.id : null)"
         i18n-placeholder placeholder="Fund..."
-        [required]="true" [readOnly]="!charge.isnew()"></eg-combobox>
+        [required]="true" [readOnly]="!charge.isnew()"
+        [idlQuerySort]="{acqf: 'year DESC, code'}"
+        [idlQueryAnd]="{active: 't'}">
+      </eg-combobox>
     </div>
     <div class="flex-2 p-2">
       <span *ngIf="!charge.isnew()">{{charge.title()}}</span>