diff --git a/ha/hacnv200.cpp b/ha/hacnv200.cpp index 58b6dda11..a97a78a7c 100755 --- a/ha/hacnv200.cpp +++ b/ha/hacnv200.cpp @@ -374,7 +374,7 @@ bool THardy_movimenti::scrivi_righe() TConfig& ini = config(); TString8 iva_esente = ini.get("IVA_ESENTE", "Parametri"); TToken_string sconto_omaggi = ini.get("CONTO_OMAGGI", "Parametri"); - const TString conti_mov = ini.get("CONTI_MOV", "Parametri"); + TToken_string conti_mov = ini.get("CONTI_MOV", "Parametri"); const int gruppo_omaggi = sconto_omaggi.get_int(0); const int conto_omaggi = sconto_omaggi.get_int(1); const long sottoconto_omaggi = sconto_omaggi.get_long(2); @@ -426,7 +426,7 @@ bool THardy_movimenti::scrivi_righe() // Provo il sottoconto ma se non riesco provo con conto e poi anche gruppo (formato -> 3,1,2 o 3,1,0 o 3,0,0) for (int c = 2; !found && c >= 0; c--) { - found = (conti_mov.find(cod)) >= 0; + found = conti_mov.get_pos(cod) >= 0; cod.add(0, c); } if (!found)