Hola compañeros, solicitando de su conocimiento, les platico mi problema.
se realizo actualización de parche de SAP 9.2 del PL8 al PL11 (no se si tenga que ver con mi problema), el detalle es al generar el PDF de la factura la cantidad en letra siempre sale en ingles sean pesos sean dolares.
Antes diferenciaba si eran pesos en español y dolares en ingles. Ahorita ya realice la prueba con 2 formulas diferentes is sigue en ingles.
Formula 1 (la primera en la imagen la que siempre use)
Local CurrencyVar RoundCents := round(remainder({@TotalInvoiceAmount},1)*100);
Local CurrencyVar RoundCents := round(remainder({@TotalInvoiceAmount},1)*100);
Local Stringvar Pesospart := towords(int({@TotalInvoiceAmount}),0);
Local Stringvar Centspart := towords(int(RoundCents),0);
Local Stringvar monLetra := "prueba";
Local Stringvar ban := "prueba";
if instr(Pesospart, "hundred") > 0
then Pesospart := Replace (Pesospart,"cien" ,"cien y" );
//else monLetra := 'prueba2';
//PESOS
if instr(totext({OINV.DocCur}), "MXP") > 0
then
monLetra := "MN";
if instr(totext({OINV.DocCur}), "MXP") > 0
then
ban := "Pesos";
//$
if instr(totext({OINV.DocCur}), "$") > 0
then
monLetra := "MN";
if instr(totext({OINV.DocCur}), "$") > 0
then
ban := "Pesos";
//DOLARES
if instr(totext({OINV.DocCur}), "USD") > 0
then
monLetra := "USD";
if instr(totext({OINV.DocCur}), "USD") > 0
then(
if instr(Pesospart, "un") > 0 and len (Pesospart)=2
then
ban := "dolar"
else
ban := "dolares"
);
Formula 2:
IF {OINV.DocCur} = 'MXP' THEN
UpperCase ( ToWords ({OINV.DocTotal}))+ ' PESOS MEXICANOS'
ELSE IF {OINV.DocCur} = 'USD' THEN
UpperCase ( ToWords ({OINV.DocTotalSy})) + ' DÓLARES AMERICANOS'
Espero me aya explicado y alguien tenga una idea de que esta pasando…
Muchas gracias,
Saludos!!!