Setting A2Billing base currency

One of the first things to do when configuring A2Billing is set the base currency. This will be the currency that your rate cards are in. If you create call rates and then change the base currency afterwards, the rates will get messed up.

The first step is to edit the base currency setting. This can be found under SYSTEM SETTINGS / global / base_currency –

a2billing base currency

It is very important that you change the 3 letter value to a valid currency code. If you are not sure what these are then check in step 2 first.

Step 2 is to run a currency update. This gets all of the current currency exchange rates from Yahoo and updates all of the currencies in A2Billing. This can be found in BILLING / Currency List –

update currency list

The last thing to do is to check that you have the automated job set up that automatically updates the currency exchange rates every day. This should have been done as part of the a2billing install, and is done on all SysAdminMan VPS servers that have a2billing installed.

Running from cron there will be something like this –

0 1 * * * php /var/www/a2billing/Cronjobs/currencies_update_yahoo.php

5 thoughts on “Setting A2Billing base currency

  1. Oracle

    Hi Matt,

    I am running a calling card business. What if I was using USD currency and all the rates, rate cards, call plans are added. The system was operating in USD and had customers using it just fine. If I want to change the currency to EUR, which you mention above that it will get messed up. I made the change and indeed, it messed it up.

    I went ahead and made the change for the currency from USD to EUR anyways. Now this is what I get:

    For example, I created a new customer, added 5 EUR. I call the DID number and now the IRV response back to me said that I have 6.76 dollars.

    My question to you is… is there a way to fix this problem? Or just reinstall whole Linux server, asterisk, and a2billing ?

    I am trying hard not to reinstall everything. I had removed all the Rates, Rate cards, call plans, customers, and agents already. This doesn’t help.

    Thanks so much!

  2. matt Post author

    Hi there. Did you run the Yahoo currency update thing after changing the currency? It’s under BILLING/Currency list. If you do that and deleted the rates you should be good.

  3. Vincent

    Hi Matt

    I’m running a calling card business in South Africa. I’ve followed many of your tutorials and they have saved me a lot of headache. Many thanks for that.

    My question is this:

    I have my base currency set to ZAR (South African Rand), but many of the voip providers release their rate cards in USD. If I import the rates into a ratecard while the system is set to ZAR, then the rates appear as ZAR and not USD.

    An example of this is the following:

    VOIP.MS have a rate for the UK 441 at 0.05 USD per min. My system is set to ZAR and I import the rate into the system. When I look at the rate after the import it is set to 0.05 and A2billing will see this as a cheaper rate for termination. So ill be selling calls to clients at 0.05 ZAR when in reality it is costing me 0.53 ZAR.

    How would you overcome this?

    Any assistance would be greatly appreciated.

    Thanks

    I’m a bit confused about this.

  4. Matt Newcombe Post author

    Hi Vincent

    Unfortunately, as far as I’m aware, you can have mixed currencies for rates like that. You would either need to convert your rates to ZAR before importing them, or switch your base rate to USD. You could then import your rates normally.

    Cheers, Matt

  5. Milton

    HI Matt. do you happen to know how to resolved issue “At least one of the entries in the CSV file isn’t a number. Currency update ABORTED” in A2V 1.9, that happens when try to update the currencies.

    thanks.

Comments are closed.