);
}
+ // helper method to return the year string rather than the FY ID
+ // TODO: can remove this once fiscal years are better managed
+ _getFiscalYearLabel(): string {
+ if (this.selectedFiscalYear) {
+ const found = (this.vlagent.fiscalYears || []).find(x => x.id() === this.selectedFiscalYear);
+ return found ? found.year() : '';
+ } else {
+ return '';
+ }
+ }
+
performCustomAction() {
const vandelayOptions = {
+ match_set: this.selectedMatchSet,
import_no_match: this.importNonMatching,
auto_overlay_exact: this.mergeOnExact,
auto_overlay_best_match: this.mergeOnBestMatch,
ordering_agency: this.orderingAgency,
create_po: this.createPurchaseOrder,
activate_po: this.activatePurchaseOrder,
- fiscal_year: this.selectedFiscalYear,
+ fiscal_year: this._getFiscalYearLabel(),
picklist: this.activeSelectionListId,
vandelay: vandelayOptions
};
const spoolType = this.recordType;
const vandelayOptions = {
+ match_set: this.selectedMatchSet,
import_no_match: this.importNonMatching,
auto_overlay_exact: this.mergeOnExact,
auto_overlay_best_match: this.mergeOnBestMatch,
ordering_agency: this.orderingAgency,
create_po: this.createPurchaseOrder,
activate_po: this.activatePurchaseOrder,
- fiscal_year: this.selectedFiscalYear,
+ fiscal_year: this._getFiscalYearLabel(),
picklist: this.activeSelectionListId,
vandelay: vandelayOptions
};