From 9ab58ecc077297eb496579f624c04dd44f8010b0 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 22 Nov 2010 00:51:46 +0000 Subject: [PATCH] Patch level : 10.0 836 Files correlati : lv2.exe Ricompilazione Demo : [ ] Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 0001739: 002959 - Diana 2000 per i clienti che gestiscono l'iva ad esigibilità differita ed il fatturare a viene richiesto che se il cliente fatturare a è un ente ed il cliente originale ha il flag di esigibilità differita la fattura venga creata ad esigibilità differita. git-svn-id: svn://10.65.10.50/branches/R_10_00@21156 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2500.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;