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.

Perfex comes with 2 predefined currency names who 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 who will be output inside the invoice/estimate.

total-to-word-invoice-currency.png

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

In application/helpers create file (if it doesn’t exist) my_functions_helper.php 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 (shown in the image).

Did you find this article useful?

  • Estimate Request

    The estimate request feature is added in Perfex CRM version 2.8.0 and it’s used to create...
  • Subscriptions

    From version 2.0.0 in Perfex CRM, there is a new major feature added that will help you to...
  • Add Items/Products

    Items is Perfex CRM feature that will allow you to create predefined items which will speed up the p...
  • Send Estimate to Email

    Perfex have option to send this estimate to customer which is related. Also the PDF estimate will be...
  • Converting Estimate To Invoice

    You can easely convert the estimate to invoice from the admin area. Open the estimate you want to co...