diff --git a/src/li/lilib01.cpp b/src/li/lilib01.cpp index 6a4b0881a..0437033b3 100644 --- a/src/li/lilib01.cpp +++ b/src/li/lilib01.cpp @@ -990,8 +990,8 @@ void scrivi_plafond(TLista_documenti & din, const TDate& data_elab) if (valore.not_zero()) { // Guardo se ci sta tutto nella prima lettera o devo usare anche la successiva - single_used.add(TString(lint.get(LETINT_PROTINTF)) << " " << lint.get(LETINT_PROTINTS)); single_used.add(lint.get(LETINT_ANNO)); + single_used.add(TString(lint.get(LETINT_NUMPROT))); real this_letint_importo = lint.get_real(LETINT_IMPORTO); real resto = valore - esenz_this_doc; single_used.add(resto >= ZERO ? esenz_this_doc : valore); @@ -1007,8 +1007,8 @@ void scrivi_plafond(TLista_documenti & din, const TDate& data_elab) lint.put(LETINT_ANNO, din[i].anno()); lint.put(LETINT_NUMPROT, rec_lint.get(rec_lint.find_column(LETINT_NUMPROT)).as_string()); lint.read(); - single_used.add(TString(lint.get(LETINT_PROTINTF)) << " " << lint.get(LETINT_PROTINTS)); single_used.add(lint.get(LETINT_ANNO)); + single_used.add(TString(lint.get(LETINT_NUMPROT))); if (lint.get_real(LETINT_IMPORTO) < -resto) message_box("Errore... impossibile inserire ulteriori lettere di intento per questo documento."); if (lint.get_real(LETINT_IMPORTO) == -resto)