diff --git a/ef/ef0300.cpp b/ef/ef0300.cpp index aa8fc5b77..51dc56575 100755 --- a/ef/ef0300.cpp +++ b/ef/ef0300.cpp @@ -846,20 +846,20 @@ bool TVariazione_distinte::imp_notify(TSheet_field& s, int r, KEY key) // riga allo sheet degli effetti della distinta void TVariazione_distinte::aggiungi() { - TMask* m = app()._msk; - TMask* m2 = app()._m2; - int tipopag = m->get_int(F_TIPOPAG); - if (tipopag != 0) - { - TWait_cursor hourglass; - carica_riba(tipopag); - } - m2->reset(F_TOTIMPDIST); - m2->reset(F_IMPSEL); - const TString16 codval = m->get(F_CODVAL); - m2->set(F_CODVALS, codval); - m2->run(); - calcola_totale(); + TMask* m = app()._msk; + TMask* m2 = app()._m2; + int tipopag = m->get_int(F_TIPOPAG); + if (tipopag != 0) + { + TWait_cursor hourglass; + carica_riba(tipopag); + } + m2->reset(F_TOTIMPDIST); + m2->reset(F_IMPSEL); + const TString16 codval = m->get(F_CODVAL); + m2->set(F_CODVALS, codval); + m2->run(); + calcola_totale(); } // Notify per il calcolo dei totali relativi alla distinta diff --git a/ef/ef0800.cpp b/ef/ef0800.cpp index e81dfd98c..550d590b1 100755 --- a/ef/ef0800.cpp +++ b/ef/ef0800.cpp @@ -240,7 +240,7 @@ void TContabilizzazione_effetti_app::build_dist_sheet() TString16 codabi, codcab, codval; char tipocf; - bool enabled = TRUE; + bool enabled = true; int num_eff = 0; for (long i = 0; i < items; i++) @@ -274,7 +274,8 @@ void TContabilizzazione_effetti_app::build_dist_sheet() tipocf = rec.get_char(EFF_TIPOCF); } num_eff++; // numero di effetti che compongono la distinta - //enabled &= !rec.get_bool(EFF_EFFCONT); + if (rec.get_bool(EFF_EFFCONT)) // Disabilito le distinte contabilizzate + enabled = false; } TToken_string * t = new TToken_string;