diff --git a/sv/sv1100.cpp b/sv/sv1100.cpp index 149495803..db9a87c03 100755 --- a/sv/sv1100.cpp +++ b/sv/sv1100.cpp @@ -282,7 +282,9 @@ protected: public: void open_files(int logicnum, ...); + // stampa un documento (stampa sintetica) bool fill_doc(TRectype& tab, const TDocumento& doc); + // stampa una riga documento (stampa dettagliata) bool fill_rdoc(TRectype& tab, const TRiga_documento& rdoc); void update_totriga(const TRectype& tab); void fill_totriga(TRectype& tab); @@ -366,12 +368,14 @@ bool TStampa_schede::fill_doc(TRectype& tab, const TDocumento& doc) { if (stampa_dettagliata()) return FALSE; + const TTipo_documento& tipo = doc.tipo(); + if (!tipo.statistiche()) // documento non abilitato per le statistiche + return FALSE; fill_key(tab, doc); TString descr(80); - const TTipo_documento& tipo = doc.tipo(); const TCodice_numerazione& num = doc.codice_numerazione(); descr << tipo.descrizione() << ' '; @@ -416,6 +420,9 @@ bool TStampa_schede::fill_rdoc(TRectype& tab, const TRiga_documento& rdoc) } const TDocumento& doc = rdoc.doc(); + const TTipo_documento& tipo = doc.tipo(); + if (!tipo.statistiche()) // documento non abilitato per le statistiche + return FALSE; fill_key(tab, rdoc); @@ -550,8 +557,7 @@ bool TStampa_schede::stampa_clifo(TCursor& cur, const TString& ragsoc) cur.file().set_curr(new TDocumento); TDocumento& doc = (TDocumento&)cur.file().curr(); - TIsamtempfile* tab = new TIsamtempfile(LF_TAB, "svschede", TRUE); - tab->set_autodel(TRUE); + TIsamtempfile* tab = new TIsamtempfile(LF_TAB, "svschede", TRUE,TRUE); tab->setkey(2); _form->relation()->replace(tab); TRectype& curtab = tab->curr();