Topic: Total value in words not showing on invoice

Total value in words not showing on invoice. please help

below are the code

$words = price_in_words($rep->formData['prepaid'] ? $myrow['prep_amount'] : $myrow['Total'], array( 'type' => ST_SALESINVOICE, 'currency' => $myrow['curr_code']));
            if ($words != "")
            {
                $rep->NewLine(1);
                $rep->TextCol(0, 7, $myrow['curr_code'] . ": " . $words, - 2);
            }

(rep107.php)

Re: Total value in words not showing on invoice

The function price_in_words() prototype is defined in includes/hooks.inc and the fallback wrapper uses it in lang/new_language_template/locale.inc which needs to be put into the appropriate lang subfolder if you wish to customise it. The default function price_in_words() is defined in includes/ui/ui_view.inc and is available for Supplier Payments, Customer Payments and Cheques. By default line 865 in the said file does not provide the price in words for the Sales / Purchase Invoice. By commenting out line 866, all reports that use it will have the price in words enabled.

Refer this post.