From 87552939bb9c5e539b664ccc6a86e4e253315e2c Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 25 Nov 2011 17:10:30 +0000 Subject: [PATCH] Patch level : 10.0 Files correlati : fe0.exe Ricompilazione Demo : [ ] Commento : Corretta gestione clienti Esteri Cee (Codice allegato 5) git-svn-id: svn://10.65.10.50/branches/R_10_00@22506 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- fe/fe0100.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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();