From a105e76eec253b85473d86ffa4d5b978b9ecf325 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 21 Jun 2010 14:23:50 +0000 Subject: [PATCH] Patch level : 10.0 patch 767 Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : Utilizzate le lettere d'intento solo se il codice IVA ha la gestione plafond Dalla versione 3.2 git-svn-id: svn://10.65.10.50/trunk@20599 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/velib03.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ve/velib03.cpp b/ve/velib03.cpp index 0c2004a0d..6a468e7e4 100755 --- a/ve/velib03.cpp +++ b/ve/velib03.cpp @@ -318,6 +318,7 @@ void TDocumento::check_modules() void TDocumento::set_variables(TExpression * e) const { + CHECK(e, "Null expression"); const int items = e->numvar(); for (int i = 0; i < items; i++) { @@ -3019,6 +3020,10 @@ int TDocumento::tipo_riclassificato() const const TString& TDocumento::codesiva() const { TCli_for& c = clifor(); + const TString4 codiva(c.vendite().get(CFV_ASSFIS)); + TCodiceIVA i(codiva); + const bool plafond = i.get_int("S3") > 0; + if (!c.use_lettere() || c.read_lettera(get_date(DOC_DATADOC))) return c.vendite().get(CFV_ASSFIS); return EMPTY_STRING;