Patch level : 10.0 836

Files correlati     : lv2.exe
Ricompilazione Demo : [ ]
Commento            :

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
This commit is contained in:
alex 2010-11-22 00:51:46 +00:00
parent 5a2a236544
commit 9ab58ecc07

View File

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