Add Currencies in Total to Words Feature

Category: General/Setup BuildX


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.

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?

  • Merging Invoices

    Category: Invoices BuildX Merging invoices is feature in Perfex CRM that allows you to me...
  • Invoice Overdue Notices

    Category: Invoices BuildX You can send invoice overdue notice manually or automatically with c...
  • Record Invoice Payment

    Category: Invoices BuildX While viewing the invoice from the admin area click on the + Pa...
  • Create Invoice

    Category: Invoices BuildX To create new invoice go to Sales -> Invoices and ...
  • Link Estimate To Project

    Category: Estimates BuildX Go to Menu -> Sales -> Estimates and click Cr...