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)