diff --git a/src/m770/771230.cpp b/src/m770/771230.cpp index 942d9067a..37786dd9a 100755 --- a/src/m770/771230.cpp +++ b/src/m770/771230.cpp @@ -91,7 +91,7 @@ void TRighe_riepilogo::genera_aliquota(TRectype& quadro, const char* aliquota, void TRighe_riepilogo::genera_la(TRectype& quadro, const TRectype& riga, const TString& codcaus) const { #ifdef DBG - if (riga.get_long(SPR_CODANAGR) == 3072) + if (riga.get_long(SPR_CODANAGR) == 571) int minimo = 1; #endif @@ -112,7 +112,12 @@ void TRighe_riepilogo::genera_la(TRectype& quadro, const TRectype& riga, const T // 26/01/17: Spostato qua questo blocco per aggiungere somme e tenere un filo logico di tutto insieme real ammlordo = imponibile; - ammlordo += riga.get_real(PAG_SOMNSRIT); + real snsar = riga.get_real(PAG_SOMNSRIT); + if (snsar > -0.02 && snsar < 0.02) + { + snsar = ZERO; + } + ammlordo += snsar; ammlordo += riga.get_real(PAG_CONTROBB); ammlordo += riga.get_real(PAG_SOMREGCONV); //ammlordo += somme; diff --git a/src/m770/777200.cpp b/src/m770/777200.cpp index 30bcf4181..46caba644 100755 --- a/src/m770/777200.cpp +++ b/src/m770/777200.cpp @@ -796,6 +796,10 @@ bool TTrasferimentoCU::append_record_h(const TRectype& qla, int modulo, TLog_rep long codice = atol(cache().get("%CA7", codcaus, "I1")); // 1, 2, 5, 6, 7 real altre_somme = qla.get_real("SOMME"); + if (altre_somme > -0.02 && altre_somme < 0.02) + { + altre_somme = ZERO; + } if (altre_somme.is_zero() && codice == 7) { altre_somme = imponibile;