diff --git a/lv/lv2500.cpp b/lv/lv2500.cpp index cf0a561bb..2f98bf220 100755 --- a/lv/lv2500.cpp +++ b/lv/lv2500.cpp @@ -153,8 +153,17 @@ void TFatturazione_lavanderie::post_process_output(TLista_documenti& doc_out) { TRiga_documento& rout = doc[1]; TString descr = rout.get(RDOC_DESCR); - descr << rout.get(RDOC_DESCEST); - doc.put(DOC_NOTE,descr); + descr << ' ' << rout.get(RDOC_DESCEST); + descr.ltrim(21); + //sostituisco la stringa " - n. " e la sostituisco con la stringa " - " su tutta la stringa descrizione + int pos = descr.find(" - n. "); + while (pos > 0) + { + descr.overwrite(" - ", pos, 7); + pos = descr.find(" - n. ", pos + 1); + } + descr.strip_double_spaces(); + doc.put(DOC_NOTE, descr); doc.destroy_row(1, true); } @@ -806,9 +815,6 @@ void TFatturazione_lav_app::main_loop() //leggo il codcf const long clifo = recset.get(DOC_CODCF).as_int(); - if (clifo == 101008) - int cazzone = 1; - //se non è l'ultimo cliente, allora: if (clifo != lastcli) {