Add currencies in total to words feature

If you are using total to words in your transactions, you need to add the currency words manually into the translation.

Estate Mailer Pro comes with 2 predefined currency names which are already added into the converter. If you added your own currency you need to add this also to total to words converter.

You need to add your currency database name and the currency string which will be the output on the invoice/estimate.

 

In this example, we will add British Pound to the converter.

Create a file with name my_functions_helper.php in application/helpers/ and add the following code:

function add_total_to_words_currency($currencies){
    $currencies['GBP'] = 'British Pounds';

    return $currencies;
}

hooks()->add_filter('before_number_format_render_languge_currencies','add_total_to_words_currency');

Note that the GBP is the same as the name we have set up inside the CRM (showed in the image).

Did you find this article useful?

  • Tracking Sent Emails

    A new unique feature added in Estate Mailer Pro for tracking sent emails if they are opened for the ...
  • Subscriptions

    Estate Mailer Pro, there is a new major feature added that will help you to bill your customers in a...
  • Add Items/Products

    Items is Estate Mailer Pro feature that will allow you to create predefined items which will speed u...
  • Currencies

    Create new currency To add new currency, go to Setup -> Finance -> Currencies&#...
  • Tax Rates

    Create new tax Estate Mailer Pro gives you the ability to add unlimited tax rates on your invoices/e...