numeralsToTxt for Negative Value does not work

Hi can any one help … i want to convert the negative Amount to words in AX 2012 but it does not works it works if the Amount is in Positive value

i have Invoice Amount of -99.04 but numeralsToTxt returns only *** and 04/100 *** can any one help …

thanks in Advance

HI,

Use this code

static void Job19(Args _args)

{

int netAmount;

;

netAmount=-999;

if(netAmount <= 0)

info(strFmt("%1", ‘-’+ ’ ’ + ‘(’+ “currCode” + ‘) ’ + numeralsToTxt(-(netAmount))+’ '+‘Only’));

}

It is just like example write your logic based on this.

Thanks,
Suresh

thanks Suresh … i got the concept …