From cfdf7aa5a1611a90a6c7f2582174f25b3db98128 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Tue, 14 Dec 2021 08:12:34 +0100 Subject: [PATCH] Patch level : 12.0 1100 Files correlati : f151.dir f151.trr ca1.exe ca2.exe ca3.exe ca3100.uml ca3100a.rep ca3100b.rep ca3200.uml ca3200a.rep ca3200b.rep ca3300.uml ca3300a.rep ca3300b.rep ca3300c.rep ca3300d.rep ca3600.uml ca3600a.rep ca3700.uml ca3700a.rep ca3700b.rep ca3800.uml ca3800a.rep ca3800as.rep ca3800b.rep ca3800bs.rep ca3800c.rep ca3800cs.rep ca3883.cpp ca3900.uml ca3900a.rep Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aggiunta contabilità separata alle stampe di analitica. Aggiunto meccanismo per lanciare le stampe in batch. Sintassi: ca3 -7 -b rint|xport|Ecel|PD|esto|Base|isualizza> 0) - { - TEsercizi_contabili esc; - TDate datainiesc, datafinesc; + case F_TIPOSTAMPA: + case F_STAMPA_SINTETICA: + if (e == fe_init || e == fe_modify) + set_report_class(); + break; + case F_ESERCIZIO: + case F_FINE_ES: + if (e == fe_init || e == fe_modify || e == fe_close) + { + const int anno = get_int(F_ESERCIZIO); + if (anno > 0) + { + TEsercizi_contabili esc; + TDate datainiesc, datafinesc; - esc.code2range(anno, datainiesc, datafinesc); - const TDate datafine = get(F_FINE_ES); - if (datafine < datainiesc || datafine > datafinesc) - set(F_FINE_ES, datafinesc); - //deve comunque scrivere l'inizio dell'esercizio che ha scelto (anche se esercizio non esiste!) - set(F_INIZIO_ES, datainiesc); - } - } - break; - default: - break; + esc.code2range(anno, datainiesc, datafinesc); + const TDate datafine = get(F_FINE_ES); + if (datafine < datainiesc || datafine > datafinesc) + set(F_FINE_ES, datafinesc); + //deve comunque scrivere l'inizio dell'esercizio che ha scelto (anche se esercizio non esiste!) + set(F_INIZIO_ES, datainiesc); + } + } + break; + default: + break; } return TAnal_report_mask::on_field_event(o, e, jolly); } @@ -432,8 +437,8 @@ TReport & TPrint_bilancio_cms::get_report(const TAutomask & m) const bool show_cms_descr = m.get_bool(F_SHOW_CMS_DESCR); const bool show_cms_date = m.get_bool(F_SHOW_CMS_DATE); - if (path.empty()) - path = ((TPrint_bilancio_cms_mask &)m).get_report_class(); + //if (path.empty()) + // path = ((TPrint_bilancio_cms_mask &)m).get_report_class(); //crea il report in base ai parametri (tipo report,struttura,profondita' di stampa) safe_delete(_rep); _rep = new TPrint_bilancio_cms_rep(path, prefix, depth, show_fasi, show_cdc, show_cms_descr, show_cms_date, sintetica, intestazione_minima); diff --git a/src/ca/ca3800as.rep b/src/ca/ca3800as.rep index 205f19e78..80e3f68c7 100644 --- a/src/ca/ca3800as.rep +++ b/src/ca/ca3800as.rep @@ -1,5 +1,5 @@ - + Bilancio commessa CA