More Currency Options

Hey,

First post here.

Just wondered if there were any current plans to offer any other Currency options aside from EUR and USD? Happy to create a pull request etc on Github to help out, but I just wanted to check and see if there was a reason this hadn’t been done so far or if it was just that the majority of your users are from those regions (UK here, so looking for GBP).

Edit: I’ve just spotted that GBP does exist in the config file but doesn’t seem to be available to me on the version of the App I’m using ( Build Number: v0.8.14), or I’m missing something!

Thanks!

Hey @pettitto

Yeah it’s just a configuration issue. Let me write up some documentation for this and get back to you.

Justin

In order to set the default currency for the entire system, edit openboxes-config.properties and add the following properties

openboxes.locale.defaultCurrencyCode = GBP
openboxes.locale.defaultCurencySymbol = \£

Then you’ll need to add GBP as a currency under Products > Unit of Measure.

You need to set the GBP’s uom class to Currency. If you don’t have a uom class for Currency you can create one under Product > UoM Class.

If you want to support other currencies (besides GBP, USD, EUR) you can add them using the Product > Unit Of Measure feature.

The system can be configured to poll a public REST API (https://exchangeratesapi.io/) every hour in order to update the Exchange Rates between the different currencies.

openboxes.jobs.updateExchangeRatesJob.enabled = true

If you want to manually edit the exchange rates, disable the exchange rate background job and edit the exchange rates under Products > UoM Conversion.

openboxes.jobs.updateExchangeRatesJob.enabled = false

NOTE: For boolean (true/false) configration properties you’ll need to add a new configuration file (openboxes-config.groovy) in the same directory as openboxes-config.properties.

1 Like

Thanks @jmiranda - that’s absolutely perfect and has done the job!