From 2b5fc07b79da80c5aaf25103db3df84d543b0a02 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 13 Feb 2013 15:20:37 -0500 Subject: [PATCH] ACQ upload persists fiscal year Persist the last used value for the fiscal year selector. As noted in the code, this is a stop-gap for using the current org unit fiscal year as a default, which requires additional UI components. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/web/js/ui/default/acq/picklist/upload.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/web/js/ui/default/acq/picklist/upload.js b/Open-ILS/web/js/ui/default/acq/picklist/upload.js index 621e1e5db9..6b85dbce5f 100644 --- a/Open-ILS/web/js/ui/default/acq/picklist/upload.js +++ b/Open-ILS/web/js/ui/default/acq/picklist/upload.js @@ -73,6 +73,11 @@ function init2() { function setDefaultFiscalYear(org) { org = org || orderAgencyWidget.attr('value'); + // NOTE: Evergreen does not yet offer an interface for managing + // fiscal years. For now, make the fiscal year selector persistant + vlAgent.readCachedValue(acqUploadYearSelector, 'fiscal_year'); + return; + if (org) { fieldmapper.standardRequest( @@ -95,6 +100,7 @@ function acqUploadRecords() { vlAgent.writeCachedValue(acqPlUploadActivatePo, 'activate_po'); vlAgent.writeCachedValue(providerWidget, 'provider'); vlAgent.writeCachedValue(orderAgencyWidget, 'ordering_agency'); + vlAgent.writeCachedValue(acqUploadYearSelector, 'fiscal_year'); openils.Util.show('acq-pl-upload-progress'); var picklist = acqPlUploadPlSelector.attr('value'); -- 2.43.2