diff --git a/fe/fe0100.cpp b/fe/fe0100.cpp index 5cd6cc40a..87d74d455 100755 --- a/fe/fe0100.cpp +++ b/fe/fe0100.cpp @@ -338,13 +338,18 @@ TExclusion_mode TDati_rilevanti_array::add(const TRectype& alleg, bool send_all, new_mode = (imp < importo_limite(anno)) ? em_importo_limite : em_incluso; } if (ignora != new_mode) - ignora = new_mode; + ((TRectype&)alleg).put(ALL_IGNORA, ignora = new_mode); } } if (!send_all && ignora != em_incluso) return ignora; +#ifdef DBG + if (alleg.get_long(ALL_CODCF) == 36) + int cazzone = 1; +#endif + // Creo un nuovo record _data.add(alleg); return em_incluso; @@ -515,8 +520,8 @@ TExclusion_mode TDati_rilevanti_msk::validate_clifo(const TRectype& mov) if (alleg == 1) return segnala_movimento(mov, em_no_allegato); - if (tipocf == 'F' && alleg == 5) - return segnala_movimento(mov, em_estero); + if (alleg == 5) + return segnala_movimento(mov, em_intra); stato = rec_clifo.get(CLI_STATOCF); } @@ -1208,7 +1213,8 @@ bool TDati_rilevanti_msk::send_alleg() else fatt.add(rec); } - data.add(fatt, note, send_all, *_log); + if (!fatt.empty() || !note.empty()) + data.add(fatt, note, send_all, *_log); if (_log->recordset()->items()) _log->preview();