From 13b29d530e004b272b6a3fb4d496b3b94999a38b Mon Sep 17 00:00:00 2001 From: luca83 Date: Thu, 10 Sep 2009 14:24:15 +0000 Subject: [PATCH] Patch level : 10.0 patch 439 Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Corretta la stringa dei riferimenti alle bolle in testata dei documenti quando serve git-svn-id: svn://10.65.10.50/trunk@19272 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2500.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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) {