From bd183336328a9e66fdedbb94ba41d99f5172e36e Mon Sep 17 00:00:00 2001 From: angelo Date: Fri, 14 Nov 1997 16:43:06 +0000 Subject: [PATCH] Corretti MI2377, sulla liquidazione annuale per ditta trimestrale. e MI2382 sulla considerazione fatture in ritardo in annuale con tipo costo ricavo = 1. git-svn-id: svn://10.65.10.50/trunk@5623 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg4301.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 { // *****************************************