Patch level : 12.0 no-patch

Files correlati     : velib
Commento            : Correzione
This commit is contained in:
Simone Palacino 2020-09-16 16:16:43 +02:00
parent eea8980d70
commit 8a1da5026b

View File

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