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

Acquisition: Currency exchange rates #3039

Closed
ManaDeweerdt opened this issue Aug 9, 2022 · 2 comments
Closed

Acquisition: Currency exchange rates #3039

ManaDeweerdt opened this issue Aug 9, 2022 · 2 comments
Labels
f: acquisitions Related to the acquisition module new feature Suggestion of an entirely new feature stale Stale or no longer relevant wontfix This issue will not be addressed

Comments

@ManaDeweerdt
Copy link
Contributor

ManaDeweerdt commented Aug 9, 2022

User story

[TO COMPLETE]
For now,

  • orderline: the 'amount' field doesn't display the currency of the vendor but the currency of the organisation.
  • orderline: field 'exchange rate' not usable? --> what about the exchange rate encoded in the vendor resource?
  • order: the vendor currency is displayed.
  • Accounts: engagement not correct because it doesn't taken into account the currency. Ex: 12$ ordered >> 12€ engaged.

As a librarian, I want to know the currency exchange rates used in the acquisition, for orders/invoices, to get correct encumbrance in my accounts.

Acceptance criteria

RERO-ILS must know currency exchange rates, updated every day, in order to calculate encumbrance correctly.

Free External service can be use to collect "official" exchange rates like

European Central Bank : https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html
National Bank of Switzerland : https://www.snb.ch/fr/iabout/stat/statpub/zidea/id/current_interest_exchange_rates
The system can contact the external service, to get the new rates and store them into the database (+ index the rates)

Create a new table exchange_rates with the following columns:

date_currency rate : date
currency code (EUR, USD, CHF,…) : string
currency rate : float
The currencies rates are stored

In the acquisition, they are used by the system according to the default currency of the organisation.

Create a task in the scheduler to update the rates every morning (before 7am).

Screenshots/files

Tasks

@ManaDeweerdt ManaDeweerdt added f: acquisitions Related to the acquisition module new feature Suggestion of an entirely new feature user story A complex feature or enhancement that needs to be functionnally described as a user story labels Aug 9, 2022
@github-actions
Copy link

This issue is stale because it has been open 6 months with no activity.

@github-actions github-actions bot added the stale Stale or no longer relevant label Mar 14, 2023
@ManaDeweerdt ManaDeweerdt removed the stale Stale or no longer relevant label Mar 14, 2023
@PascalRepond PascalRepond removed the user story A complex feature or enhancement that needs to be functionnally described as a user story label Mar 30, 2023
@github-actions
Copy link

This issue is stale because it has been open 6 months with no activity.

@github-actions github-actions bot added the stale Stale or no longer relevant label Sep 27, 2023
@PascalRepond PascalRepond added the wontfix This issue will not be addressed label Feb 20, 2024
@PascalRepond PascalRepond closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: acquisitions Related to the acquisition module new feature Suggestion of an entirely new feature stale Stale or no longer relevant wontfix This issue will not be addressed
Projects
Archived in project
Development

No branches or pull requests

2 participants