diff --git a/lv/lv2500.cpp b/lv/lv2500.cpp index 2aa0dbd47..1ad1662c4 100755 --- a/lv/lv2500.cpp +++ b/lv/lv2500.cpp @@ -1287,9 +1287,12 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do doc.put(DOC_CODCF, new_cli); key = tipocf; key.add(new_cli); + const TRectype & new_reccli = cache().get(LF_CLIFO, key); const TRectype & new_reccliven = cache().get(LF_CFVEN, key); TLaundry_contract contr(new_cli, doc.get_long(DOC_CODINDSP), _data_elab); + if (new_reccli.get_int(CLI_ALLEG) == 7 && new_reccliven.get_bool(CFV_FATTSOSP)) + doc.put(DOC_LIQDIFF, "X"); doc.put(DOC_CODINDSP, new_reccliven.get(CFV_CODINDDOC)); TString descr;