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);