1 (edited by deltawebsolutionskenya 10/30/2023 09:53:30 pm)

Topic: Invoice:Figures to Words , previous code not working in version 2.4.17

Kindly help the previous code give to solve the problem of changing figures to words in invoices is no longer working in version 2.4.17 ,. Please help with new code.
This code works for versions  2.4.16 and below

From
    if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE))

To
if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE || $document == ST_SALESINVOICE))

is not working any more>>
Any new suggestions on the code?

Re: Invoice:Figures to Words , previous code not working in version 2.4.17

ST_CHEQUE is  not a core constant. Looks like it's a customized version.  And you have not mention the file and function to understand it.

Subscription service based on FA
HRM CRM POS batch Themes

Re: Invoice:Figures to Words , previous code not working in version 2.4.17

The various cheque extensions have this constant:
https://github.com/apmuthu/FA24extensions/blob/master/Extensions/rep_batch_check_print/reporting/rep_batch_check_print.php
https://github.com/apmuthu/FA24extensions/blob/master/Extensions/rep_check_print/reporting/rep_check_print.php
https://github.com/apmuthu/FA24extensions/blob/master/Extensions/rep_cheque_print/reporting/rep_cheque_print.php