diff --git a/src/ve/velib04b.cpp b/src/ve/velib04b.cpp index 0523b2470..ed970faef 100755 --- a/src/ve/velib04b.cpp +++ b/src/ve/velib04b.cpp @@ -3009,10 +3009,10 @@ error_type TContabilizzazione::write_scadenze(TDocumento& doc, bool recontabiliz } else { - TCurrency_documento totdoc(abs(totdoc), doc); + TCurrency_documento totdoclit(abs(totdoc), doc); TCurrency_documento totspese(abs(doc.spese()), doc); TCurrency_documento totimposte(abs(doc.imposta(true)), doc); - TCurrency_documento totimponibili = totdoc - totspese - totimposte; + TCurrency_documento totimponibili = totdoclit - totspese - totimposte; if (!cached_causale(head.get(MOV_CODCAUS), head.get_int(MOV_ANNOES)).reverse_charge_pubb()) totimponibili -= totimposte;