diff --git a/tp/tp0900.cpp b/tp/tp0900.cpp index de312aa4d..f3e4cd104 100755 --- a/tp/tp0900.cpp +++ b/tp/tp0900.cpp @@ -533,19 +533,11 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const const int tipostampa = mask.get_int(F_TIPOSTAMPA); switch (tipostampa) { - case 1: - break; //se modello 6.1 va bene quello che ha stabilito nel precedente switch - case 2: - nome_report = "tp0900sc.rep"; //scheda elenco fatture allegata al 6.1 - break; - case 3: - nome_report = "tp0900es.rep"; //modello 6.3 quantita' in esenzione - break; - case 4: - nome_report = "tp0900li.rep"; //lista clienti in esenzione - break; - default: - break; + case 1: break; //se modello 6.1 va bene quello che ha stabilito nel precedente switch + case 2: nome_report = "tp0900sc.rep"; break; //scheda elenco fatture allegata al 6.1 + case 3: nome_report = "tp0900es.rep"; break; //modello 6.3 quantita' in esenzione + case 4: nome_report = "tp0900li.rep"; break; //lista clienti in esenzione + default: break; } @@ -638,9 +630,6 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const break; } -#ifdef DBG - csv->save_as_text("c:/temp/admin/cazzone.txt"); -#endif //se richiesto il file in formato excel... if (mask.get_bool(F_EXCEL)) { @@ -650,15 +639,9 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const csv->save_as(path, fmt_html); else csv->save_as(path); - - //accoppa la riga con le intestazioni dei campi - csv->destroy(0); - -#ifdef DBG - xvt_sys_goto_url(path, "open"); -#endif + xvt_sys_goto_url(path, "open"); } - + //creazione del report di stampa TDichiarazione_CONAI_report rep; bool ok = rep.load(nome_report); @@ -673,6 +656,7 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const rep.mask2report(mask); rep.print_or_preview(); } + } void TDichiarazione_CONAI::main_loop()