2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +00:00

Include currency code in display text (#9717)

* Include currency code in display text

- Closes https://github.com/inventree/InvenTree/issues/9710

* Bump API version
This commit is contained in:
Oliver
2025-06-02 19:37:11 +10:00
committed by GitHub
parent 7a984f831f
commit e5e6c1b51e
2 changed files with 5 additions and 2 deletions

View File

@ -1,12 +1,15 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 342
INVENTREE_API_VERSION = 343
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v343 -> 2025-06-02 : https://github.com/inventree/InvenTree/pull/9717
- Add ISO currency codes to the description text for currency options
v342 -> 2025-05-09 : https://github.com/inventree/InvenTree/pull/9651
- Fix serializer to match Generate API for serial numbers

View File

@ -75,7 +75,7 @@ def currency_codes() -> list:
def currency_code_mappings() -> list:
"""Returns the current currency choices."""
return [(a, CURRENCIES[a].name) for a in currency_codes()]
return [(a, f'{a} - {CURRENCIES[a].name}') for a in currency_codes()]
def after_change_currency(setting) -> None: