From 561184b43b855b1e719c3cc216107356ce889200 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 9 Dec 2010 11:28:55 +0000 Subject: [PATCH] Patch level : 10.0 856 Files correlati : lv2.exe Ricompilazione Demo : [ ] Commento : Aggiiunta la descrizione aggiuntiva negli articoli a canone fisso git-svn-id: svn://10.65.10.50/branches/R_10_00@21269 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2500.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lv/lv2500.cpp b/lv/lv2500.cpp index 1ad1662c4..d0b3f1cb3 100755 --- a/lv/lv2500.cpp +++ b/lv/lv2500.cpp @@ -572,6 +572,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do const TString80 codartcfg = ini_get_string(CONFIG_DITTA, "lv", "Codartcafix"); const TString80 descart = cache().get(LF_ANAMAG, codartcfg, ANAMAG_DESCR); + const TString descragg = cache().get(LF_ANAMAG, codartcfg, ANAMAG_DESCRAGG); // istanzio una token string e poi una cache per estrarre l'unità di misura dell articolo in configurazione da UMART TToken_string key; @@ -599,6 +600,11 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do riga.put(RDOC_PREZZO,totmerc); riga.put(RDOC_CODART,codartcfg); riga.put(RDOC_DESCR,descart); + if (descragg.full()) + { + riga.put(RDOC_DESCLUNGA, "X"); + riga.put(RDOC_DESCEST, descragg); + } riga.put(RDOC_CODIVA,codiva); set_perc_provv(riga); set_perc_provv(riga, false); @@ -612,6 +618,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do const real canfis=contr.get_real(LVCONDV_IMPFIX); const TString80 codartcfg = ini_get_string(CONFIG_DITTA, "lv", "Codartfix"); const TString80 descart = cache().get(LF_ANAMAG, codartcfg, ANAMAG_DESCR); + const TString descragg = cache().get(LF_ANAMAG, codartcfg, ANAMAG_DESCRAGG); // istanzio una token string e poi una cache per estrarre l'unità di misura dell articolo in configurazione da UMART TToken_string key; @@ -642,6 +649,11 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do fixrow.put(RDOC_PREZZO,canfis); fixrow.put(RDOC_CODART,codartcfg); fixrow.put(RDOC_DESCR,descart); + if (descragg.full()) + { + fixrow.put(RDOC_DESCLUNGA, "X"); + fixrow.put(RDOC_DESCEST, descragg); + } fixrow.put(RDOC_CODIVA,codiva); int tipocanfix = contr.get_int(LVCONDV_CANFIX);