lundi 22 novembre 2010

How to convert numeric amount into words from X++

Here's the code :)

display TempStr total_txt()
{
    PayrollPayTypeAmount           NetAmount; 
    Str                            TextValue;  
    ;
    NetAmount  =  PayrollPaySlipJour.DispNet ;
    TextValue  =  global::numeralsToTxt(NetAmount);
    return substr(TextValue, 5, strlen(TextValue)-4);
}

Happy daxing!

Aucun commentaire:

Enregistrer un commentaire