funds: limit range for fund fiscal year to current year +/- 10 years
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 3 Jun 2021 21:09:02 +0000 (17:09 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 3 Jun 2021 21:09:02 +0000 (17:09 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.ts

index e2684dd..44a7468 100644 (file)
@@ -59,6 +59,12 @@ export class FundsManagerComponent extends AdminPageComponent implements OnInit,
         };
         this.checkRolloverPerms();
         this.fieldOrder = 'name,code,year,org,active,currency_type,balance_stop_percentage,balance_warning_percentage,propagate,rollover';
+        this.fieldOptions = {
+            year: {
+                min: new Date().getFullYear() - 10,
+                max: new Date().getFullYear() + 10
+            }
+        };
         this.defaultNewRecord = this.idl.create('acqf');
         this.defaultNewRecord.active(true);
         this.defaultNewRecord.org(this.auth.user().ws_ou());