Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New endpoint for vendor fund mapping (910$d to 980$h) #15

Open
cappadona opened this issue Jul 29, 2021 · 0 comments
Open

New endpoint for vendor fund mapping (910$d to 980$h) #15

cappadona opened this issue Jul 29, 2021 · 0 comments
Assignees

Comments

@cappadona
Copy link
Contributor

Need

When processing submitted MARC order files, the Lehigh App will lookup and replace vendor fund codes in the 910$d of incoming records with the corresponding local fund code, adding it to the 980$h of the processed record. This service will be needed outside and beyond the limited life of the Lehigh App, so the decision was made to add it as an external dependency instead of embedding it within.

Draft Proposal

Endpoint

/vendor-funds

Query params

Both optional but if neither are included in request, return HTTP 400: Bad Request

  • code: Vendor fund code to lookup
  • local-code: Local fund code to lookup

Returns

corresponding local or vendor fund code

Fund mapping will be managed via flat CSV in the repo.

Background

Vendor print loads in LSTools (aka VPRs) have an initial processing step where the vendor fund in the 910$d is mapped to a local fund (via DB lookup) and then the resulting local fund is added to the 980$h. This new endpoint would facilitate the vendor to local fund lookup. The current VENDOR_FUND table of the lstools DB has 60 rows and 3 applicable columns:

  • vendor_fund
  • local_fund
  • location
@cappadona cappadona self-assigned this Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant