From a64665c21516e1be9392d59b0039fee80afc15fa Mon Sep 17 00:00:00 2001 From: luca Date: Thu, 15 Jun 2006 12:48:18 +0000 Subject: [PATCH] Patch level :4.0 428 Files correlati :cg7.exe Ricompilazione Demo : [ ] Commento :corretto problema dell'iva indetraibile parzialmente git-svn-id: svn://10.65.10.50/trunk@14092 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg7200.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cg/cg7200.cpp b/cg/cg7200.cpp index 44f790a52..86e778bb0 100755 --- a/cg/cg7200.cpp +++ b/cg/cg7200.cpp @@ -939,9 +939,13 @@ real TInvioP::calcola_pagamento(TRectype& curpag_rec) { const real importo = rmoviva.get_real(RMI_IMPONIBILE); real iva = rmoviva.get_real(RMI_IMPOSTA); + const TString& tipodet = rmoviva.get(RMI_TIPODET); imponibile += importo; - imposta += iva; + if (tipodet.full()) + imponibile += iva; + else + imposta += iva; } } totdoc = totale_documento(pn.curr()); //tot doc con ritenute fiscali + ritenute sociali (da stampare)