diff --git a/src/cg/cg4301.cpp b/src/cg/cg4301.cpp index ab4ec7aff..7fec88614 100755 --- a/src/cg/cg4301.cpp +++ b/src/cg/cg4301.cpp @@ -1890,7 +1890,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array & real imponibile = is_detraibile == 0 ? impon_det : impon_ind; real imposta = is_detraibile == 0? impos_det : impos_ind; const TDate datareg = _mov->get_date(MOV_DATAREG); - const bool ok = is_month_ok(month, datareg.month()) && (atoi(_year) == datareg.year()); + const bool ok = (is_month_ok(month, datareg.month()) || month == 13) && (atoi(_year) == datareg.year()); if (civa.senza_imposta() && !ok) continue; diff --git a/src/cg/cg4400.cpp b/src/cg/cg4400.cpp index 900bc4642..0688d33bc 100755 --- a/src/cg/cg4400.cpp +++ b/src/cg/cg4400.cpp @@ -1265,7 +1265,7 @@ bool TStampa_registri_app::controlla_mov() tiporeg tipo; TRecnotype rec = _tabreg->recno(); - for (mov.first(); !mov.eof(); mov.next()) + for (mov.first(); ok && !mov.eof(); mov.next()) { const TString4 reg = mov.get(MOV_REG); if (reg.empty()) continue; //non e' un movimento iva @@ -1321,8 +1321,7 @@ int TStampa_registri_app::stampa_prospetto_IVA(int rr, int tipo_prosp) set_row(rr++, riga); */ - _stampa = _st_tot_fin; - if (_stampa) + if (_st_tot_fin) { set_row(++rr, FR("Tipo documento@54gTotale documento")); rr+=2; @@ -1337,7 +1336,7 @@ int TStampa_registri_app::stampa_prospetto_IVA(int rr, int tipo_prosp) _doc_array.destroy(); } - if (_stampa && _tipo_reg == acquisto) + if (_st_tot_fin && _tipo_reg == acquisto) { if (_stampa_cred_pre && _datareg.month() == 1 && _credito > ZERO) {