Note de calcul gratuite

5 views
Skip to first unread message

Ene Toma - ORCTDB

unread,
Aug 17, 2016, 7:53:25 AM8/17/16
to ONRC IT

 Inregistrarile gratuite, fara informatii si copii certificate

vsqlnrfirme=SQLEXEC(nHandle, "select NR_NOTA_CALCUL crr,DATA_NOTA_CALCUL dcrr, NUME_UTILIZATOR referent, SOLICITANT_NUME soli, TIP_CERERE tipm, " + ;
                                   " FIRMA_NUME firma, FIRMA_TIP_JURIDIC_RC tipju, FIRMA_NUMAR_RC ninm, FIRMA_AN_RC aninm, FIRMA_COD_FISCAL cui, '                 ' as codj " + ;
                                   " from tax.tx_note_calcul " + ;
                                   " where DATA_NOTA_CALCUL >= ?vdatainc and DATA_NOTA_CALCUL < ?vdatasf " + ;
                                         " and scutire='GR' " + ;
                                         " and TIP_CERERE NOT LIKE '%furnizare-info%' and TIP_CERERE NOT LIKE '%comanda-eliberare-acte%' " + ;
                                   " order by DATA_NOTA_CALCUL" )
                                   
                                   

if vsqlnrfirme>0
   copy to H:\RegisN\Gratuite\Raport\Datelib
else
  select 0
  use H:\RegisN\Gratuite\Raport\Datelib excl  
  zap in Datelib
  use in Datelib
  wait 'EROARE IN SELECT nrfirme!' 
  
endif                              


select 0
use H:\RegisN\Gratuite\Raport\Datelib excl
count to vinreg


select Datelib
go top
scan
 
  vcodj=alltrim(tipju)+'/'+alltrim(str(ninm))+'/'+alltrim(str(aninm))
  replace codj with vcodj in Datelib
  

select Datelib
endscan


if vinreg>0
   REPORT FORM H:\RegisN\Gratuite\Raport\listcc.frx PREVIEW
else
   MESSAGEBOX('NU EXISTA INREGISTRARI')
ENDIF



Raport.rar
Reply all
Reply to author
Forward
0 new messages