diff --git a/at/at1200.cpp b/at/at1200.cpp index eefe73225..0b7d00aa9 100755 --- a/at/at1200.cpp +++ b/at/at1200.cpp @@ -183,7 +183,7 @@ bool TAttribuzioneBenemerenze::set_print(int) real* oggetto = new real(numdonben); _tabben.add((const char*)codben, (TObject*) oggetto); } - TString80 filtro = ""; + TString80 filtro; if (_attgruppi) { if (_gruppoazie.not_empty()) @@ -194,6 +194,9 @@ bool TAttribuzioneBenemerenze::set_print(int) else if (!_anchegruppi) filtro.format("(90->GRUPPOAZIE == \"\")"); + if (filtro.not_empty()) + filtro << " && "; + filtro << "(90->BENEM == \"X\")"; // filtro per sezioni const TString16 sezini = _msk->get(F_SEZINI); const TString16 sotini = _msk->get(F_SOTINI); @@ -336,6 +339,10 @@ void TAttribuzioneBenemerenze::crea_intestazione() TString sep(132); sep = "ATTRIBUZIONE BENEMERENZE "; + if (_definitiva) + sep << "DEFINITIVA"; + else + sep << "PROVVISORIA"; sep << " ALLA DATA "; sep << _dataela.string();; sep.center_just();