Currencies are not correctly handled in Licenses
Please confirm you have done the following before posting your bug report:
- [ ] I have enabled debug mode
- [X] I have read checked the Common Issues page
Describe the bug We have multiple companies all over the world using the same tool on one server, all with different currencies. The main issue is that, when EUR is set as Default Currency in the Localization Settings, you are forced to use EUR when you create a new license.
In addition, the Currency of ALL Licenses is being changed to the new currency set under Localization Settings. Therefore, if a license has been created with 500 USD and I change the Default Currency (https://demo.snipeitapp.com/admin/localization) to EUR, the license will show with 500 EUR.
To Reproduce Steps to reproduce the behavior:
- Create a License under https://demo.snipeitapp.com/licenses/create with some value in Purchase Cost (note down the current currency)
- Click on Admin > Localization Settings
- Change the Default Currency to other currency (EUR)
- Open the previously created license https://demo.snipeitapp.com/licenses
- See that it's Purchase Cost is now the same value, but in other currency - which is not true if you do the change
Expected behavior Each license has its own currency, since sometimes companies buy licenses in a different currency Or, split the Licenses section to meet the Locations settings, means that every Location has its own Licenses area under Licenses.
+1
+1
We, begrudgingly, think that we probably have to de-norm currency. But - if you think about it - when you buy something in Spain, it's bought in Euros. No matter where it lives now. So let's just accept that fact.
This is definitely true of Licenses, but it's also true of assets.
I think we have to default any kind of currency, we have to default to NULL . Which sucks. But we can definitely make the UI allow people to pick the logical default currency, but allow for picking different.