diff --git a/cg/cg2104.cpp b/cg/cg2104.cpp index 8afe43a5c..772b1b581 100755 --- a/cg/cg2104.cpp +++ b/cg/cg2104.cpp @@ -895,10 +895,13 @@ void TPrimanota_application::write_scadenze(const TMask& m) const TImporto totdoc = get_cgs_imp(riga_clifo); partita.put(PART_IMPTOTDOC, totdoc.valore()); - + cambio.put(partita); const bool in_valuta = cambio.in_valuta(); - + + if (in_valuta) + partita.put(PART_IMPTOTVAL, m.get(SK_TOTDOCVAL)); + real imponibile, imponibile_val; for (int i = pag.n_rate()-1; i >= 0; i--) {