VARIAVEL Z_NUMCXA = RECC()
T10,10,16,60,Parametros
T2,2,Numero de Controle do Caixa:,4,Z_NUMCXA,999999
COMANDO DEPOIS DBGOTO(Z_NUMCXA)
COMANDO DEPOIS ZD_DINH = -(FDINH+VDINH+VPMDINH-VIDINH - vpag_caixa + VCRDINH)
COMANDO DEPOIS ZD_CHEQ = -(FCHEQ+VCHEQ+VPMCHEQ-VICHEQ + VCRCHEQ)
COMANDO DEPOIS ZD_CART = -(FCART+VCART+VPMCART-VICART + VCRCART)
COMANDO DEPOIS ZD_CONV = -(FCONV+VCONV+VPMCONV-VICONV + VCRCONV)

C[EMPRESA]
C[SISTEMA]
ULTPAG Posicao do Caixa Numero:[z_numcxa 9999] emitida em [s_datual] as [time()]
ULTPAG [repl("-",80)]
ULTPAG
ULTPAG Abertura: [USU_OPEN]    Fechamento: [USU_FECH]    Situacao: [SITUACAO]
ULTPAG Data....: [DATAOPEN]    Data......: [DATAFECH]
ULTPAG Hora....: [HORAOPEN]    Hora......: [HORAFECH]
ULTPAG
ULTPAG  Vda.Dinheiro.: [VDINH 9999999.99]   ([NVEN1 9999] Cupons)     Vda.PzMisto.Dinh:[VPMDINH 9999999.99]
ULTPAG  Vda.Cheques..: [VCHEQ 9999999.99]   ([NVEN2 9999] Cupons)     Vda.PzMisto.Cheq:[VPMCHEQ 9999999.99]
ULTPAG  Vda.Cartoes..: [VCART 9999999.99]   ([NVEN3 9999] Cupons)     Vda.PzMisto.Cart:[VPMCART 9999999.99]
ULTPAG  Vda.Convenios: [VCONV 9999999.99]   ([NVEN4 9999] Cupons)     Vda.PzMisto.Conv:[VPMCONV 9999999.99]
ULTPAG  Vda.Pz.Misto.: [vmist 9999999.99]   ([NVEN5 9999] Cupons)     -------------------------------------
ULTPAG  ---------------------------------             *Total PrazMisto:[Vmist 9999999.99]
ULTPAG  *** Vda Total: [VDINH+VCHEQ+VCART+VCONV+vmist 9999999.99]
ULTPAG
ULTPAG  Valor das Transferencias..:[VTRANSF 9999999.99]  ([nven6 9999] Cupons)    (V.Medio Dinh:[if(nven1>0,VDINH/NVEN1,0) 99999.99])
ULTPAG  Valor dos Cancelamentos...:[VCANC 9999999.99]  ([ncanc 9999] Cupons)    (V.Medio Cheq:[if(nven2>0,VCHEQ/NVEN2,0) 99999.99])
ULTPAG  Valor Recebido nas Trocas.:[VDEV 9999999.99]  ([ndev 9999] Cupons)    (V.Medio Cart:[if(nven3>0,VCART/NVEN3,0) 99999.99])
ULTPAG  Valor dos Cupons Alterados:[VALT 9999999.99]  ([nalt 9999] Cupons)
ULTPAG
ULTPAG  Pagamentos Avulsos..:[vpag_caixa 9999999.99]  ([npag_caixa 9999] lancamentos)  (V.Medio Conven:[if(nven4>0,VCONV/NVEN4,0) 99999.99])
ULTPAG  Recebimentos Avulsos:[vrec_caixa 9999999.99]  ([nrec_caixa 9999] lancamentos)  (V.Medio PzMist:[if(nven5>0,vmist/NVEN5,0) 99999.99])
ULTPAG      Quitacoes em Dinheiro........: [VCRDINH 9999999.99]
ULTPAG      Quitacoes em Cheques.........: [VCRCHEQ 9999999.99]
ULTPAG      Quitacoes em Cartoes.........: [VCRCART 9999999.99]
ULTPAG      Quitacoes gerando Novo Debito: [VCRCONV 9999999.99]
ULTPAG 
ULTPAG  Fdo.Cxa.Dinh:[FDINH 9999999.99]   Val.Inf.Dinh:[VIDINH 9999999.99]   Dif.Dinh:[ZD_DINH 9999999.99]
ULTPAG  Fdo.Cxa.Cheq:[FCHEQ 9999999.99]   Val.Inf.Cheq:[VICHEQ 9999999.99]   Dif.Cheq:[ZD_CHEQ 9999999.99]
ULTPAG  Fdo.Cxa.Cart:[FCART 9999999.99]   Val.Inf.Cart:[VICART 9999999.99]   Dif.Cart:[ZD_CART 9999999.99]
ULTPAG  Fdo.Cxa.Conv:[FCONV 9999999.99]   Val.Inf.Conv:[VICONV 9999999.99]   Dif.Conv:[ZD_CONV 9999999.99]
ULTPAG

* ARQUIVO SCCPPED
