diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp index 668f8dd84..9c905c890 100755 --- a/cg/cg2100.cpp +++ b/cg/cg2100.cpp @@ -719,6 +719,26 @@ void TPrimanota_application::init_modify_mode(TMask& m) } } } + + if (navigating()) + { + const TRectype& mov = get_relation()->curr(); + if (!mov.empty()) + { + TString msg; + if (mov.get_bool(MOV_STAMPATO)) + msg << '\n' << TR("Il movimento e' gia' stato stampato sul libro giornale."); + if (mov.get_bool(MOV_REGST)) + msg << '\n' << TR("Il movimento e' gia' stato stampato sul bollato."); + if (mov.get_bool(MOV_INVIATO)) + msg << '\n' << TR("Il movimento e' stato inviato ad un'altra contabilita'."); + if (msg.not_empty()) + { + msg.insert(TR("ATTENZIONE!")); + warning_box(msg); + } + } + } } // Controlla sulla causale se il segno del totale documento (ritsoc=FALSE) diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index 8d96d09fe..dd9d400c1 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -701,12 +701,12 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k) if (!importo.is_zero()) { - const TBill c(r, 2, 0x1); + TBill c(r, 2, 0x1); if (!c.ok()) return f.error_box(FR("Il conto della riga %d non e' completo"), i+1); if (m.insert_mode() && c.sospeso()) return f.error_box(FR("Il conto della riga %d e' sospeso"), i+1); - const TBill co(r, 10, 0x0); + TBill co(r, 10, 0x0); if (!co.empty() && !co.ok()) { const bool ok = f.yesno_box(FR("La contropartita della riga %d non e' completa:\n" @@ -716,7 +716,7 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k) if (app().is_transaction()) { - // Controlla esistenza conti nelle transazioni + // Controlla esistenza conti nelle transazioni (visto che non c'e' controllo in inserimento) if (!c.find()) return f.error_box("Il conto della riga %d non esiste", i+1); if (!co.empty() && !co.find())