diff --git a/src/cg/cg1313.cpp b/src/cg/cg1313.cpp index 91a5674a1..890615d3b 100644 --- a/src/cg/cg1313.cpp +++ b/src/cg/cg1313.cpp @@ -33,7 +33,7 @@ void TAgg_tipodoc::aggiorna_tipodoc() p.addstatus(1); tipodoc = mov.get(MOV_TIPODOC); codcaus = mov.get(MOV_CODCAUS); - year = mov.get_int(MOV_ANNOES); + year = mov.get_int(MOV_ANNOIVA); const TCausale & caus = cached_causale(codcaus, year); const TString & caustipodoc = caus.tipodoc(); if (tipodoc != caustipodoc)