Agradezco de antemanos a quien me pueda dar una luz.
Code: Select all
Function ImprimeIngresos( aVars )
*-------------------------------
(cPAGMOV)->(DbSeek("IN" + DTOS(dFecIni) + "000000", .T. ))
REPORT oInforme CAPTION "Ingresos en Caja" ;
TITLE " ", " ", "Ingresos desde "+DTOC(dFecIni)+" al "+DTOC(dFecFin);
HEADER "COMERCIAL NITOBEL LTDA." + SPACE(100) + "Fecha : "+DTOC(DATE());
FOOTER "Pagina : "+STR(oInforme:nPage,3) CENTER ;
PREVIEW
COLUMN TITLE "Tipo" ;
DATA (cPAGMOV)->Tipo
COLUMN TITLE "Numero" ;
DATA (cPAGMOV)->Numero
COLUMN TITLE "Fecha" ;
DATA (cPAGMOV)->Fecha
COLUMN TITLE "Monto" ;
DATA (cPAGMOV)->Pagado ;
PICTURE "@E 9,999,999" ;
TOTAL ;
GRID
END REPORT
ACTIVATE REPORT oInforme ;
WHILE .NOT.(cPAGMOV)->(EOF()) .AND. (cPAGMOV)->Tipo = "IN" ;
FOR (cPAGMOV)->Fecha >= dFecIni .AND. (cPAGMOV)->Fecha <= dFecFin