-
Body of the issueI am trying to find documentation on how to exactly add other currencies, example MYR, PHP, etc. I am only seeing the several default currencies and could not figure how to add the others. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Not sure how to proceed changing the currency from USD to MYR or PHP. Any clear documentation would be most appreciated |
Beta Was this translation helpful? Give feedback.
-
|
Well it's going to be a bit hard to get help from the main developers enving this project or somethings but if this goes on like this we can go build another inventree with blackjack and hookrs, infact forget the tree. class FixerBackend(BaseBackend):
"""Use fixer.io for currency conversions"""
supported_currencies = [
"AUD",
"BGN",
"BRL",
"CAD",
"CHF",
"CNY",
"CZK",
"DKK",
"GBP",
"HKD",
"HRK",
"HUF",
"IDR",
"ILS",
"INR",
"JPY",
"KRW",
"MXN",
"MYR",
"NOK",
"NZD",
"PHP",
"PLN",
"RON",
"RUB",
"SEK",
"SGD",
"THB",
"TRY",
"ZAR",
"EUR",
"USD",
] |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.



OK,
First:
Configure your currency in the application:
In System Settings / Pricing / Supported Currencies, add your currency code, and delete any codes you don't need.
Then, in "Default Currency" select your currency.
Finally: Fix the code after installation. In my case, I installed it in Docker. Run the command in the terminal:
$ sudo docker exec -it inventree-server bash
Find "def currency_codes_default_list() -> str:"
Modify "return 'AUD,CAD,CNY,EUR,GBP,JPY,NZD,USD,XXX'"
Note: XXX is the code for your currency.
Save with Ctrl+x
Exit bash: