Page 1 of 1

ToCurrencyWordsEs does not work

Posted: Tue Feb 16, 2021 4:20 am
by arturo.rodriguez
Hello

I'm using this example code:

Code: Select all

{string.Format("{0} pesos ({1}/100) MN", ToWordsEs((int)3091.50, false), (int)(3091.50 * 100)%100)}
From this post:
viewtopic.php?f=8&t=4105&p=17826&hilit= ... sEs#p17826

But i cant get work with an XML datasource...

I have tried this way:

Code: Select all

{string.Format("{0} pesos ({1}/100) MN", ToWordsEs((int)cfdi_Comprobante._Total, false), (int)(cfdi_Comprobante._Total * 100)%100)}
And this way:

Code: Select all

{string.Format("{0} pesos ({1}/100) MN", ToWordsEs((int){cfdi_Comprobante._Total}, false), (int)({cfdi_Comprobante._Total} * 100)%100)}
How can i get work ToCurrencyWordEs with an XML datasource?

Im attaching a couple of images...

Thank you

Re: ToCurrencyWordsEs does not work

Posted: Tue Feb 16, 2021 5:29 pm
by arturo.rodriguez
I hope this can help
The attachment stim_3.png is no longer available
Thats how i am using Comprobante._Total (those are some tests)
Thats how i am using Comprobante._Total (those are some tests)
stim_3.png (66.51 KiB) Viewed 3713 times

Re: ToCurrencyWordsEs does not work

Posted: Tue Feb 16, 2021 5:44 pm
by arturo.rodriguez
This is the result
This is the result
stim_4.png (23.34 KiB) Viewed 3710 times

Re: ToCurrencyWordsEs does not work

Posted: Fri Feb 19, 2021 7:37 am
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.