Patch level :

Files correlati     : fe0.exe
Ricompilazione Demo : [ ]
Commento            :
Corretta associazione note di variazione


git-svn-id: svn://10.65.10.50/branches/R_10_00@22485 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-11-11 16:27:06 +00:00
parent cd50f8224a
commit 56f2603f1a

View File

@ -901,9 +901,8 @@ TExclusion_mode TDati_rilevanti_array::add(const TRectype& alleg, bool send_all,
if (idcf.blank()) idcf = rec.get(ALL_CODCF); if (idcf.blank()) idcf = rec.get(ALL_CODCF);
if (idcf == curr_idcf) if (idcf == curr_idcf)
{ {
const TString& k = rec.get(ALL_CONTRATTO); if ((numrett.full() && numrett == rec.get(ALL_NUMDOC)) ||
const TString& n = rec.get(ALL_NUMDOC); (contratto.full() && contratto == rec.get(ALL_CONTRATTO)))
if (k == contratto || n == numrett)
{ {
sum = &rec; sum = &rec;
break; break;
@ -2083,6 +2082,7 @@ bool TDati_rilevanti_msk::send_alleg()
TString16 clifo = rec.get(ALL_OCFPI); TString16 clifo = rec.get(ALL_OCFPI);
if (clifo.blank()) if (clifo.blank())
clifo = rec.get(ALL_CODCF); clifo = rec.get(ALL_CODCF);
if (clifo != last_clifo) if (clifo != last_clifo)
{ {
data.add(note, send_all, *_log); data.add(note, send_all, *_log);