diff --git a/cg/cg4301.cpp b/cg/cg4301.cpp index ba9caedee..485f4a800 100755 --- a/cg/cg4301.cpp +++ b/cg/cg4301.cpp @@ -399,7 +399,7 @@ bool TLiquidazione_app::update_att(int month, const char* codatt, // Ricalcolo ventilazione: // - tutti i mesi se e' mensile // - nei mesi 3,6,9,12 se trimestrale - if (_freqviva == "M" || (_freqviva == "T" && is_trim(month))) + if (_freqviva == "M" || (_freqviva == "T" && (is_trim(month) || month == 13))) recalc_ventilation(month, codatt); recalc_corrispettivi(month, codatt); } @@ -705,12 +705,14 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt) vssp_imp += vsimp_imp; vssp_iva += vsimp_iva; } - else if (fattrit) + else if (fattrit) // Possono essere solo acquisti { rit_imp = imponibile; rit_iva = imposta; } - else if (!fattrit || (fattrit && _isagricolo && _month == 13)) // normale + + // Le fatture in ritardo non vanno considerate nel periodo ma solo nell'annuale + if (!fattrit || (fattrit /*&& _isagricolo*/ && _month == 13)) // normale { // *****************************************