diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index 585217d81..bc5409eb4 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -1186,7 +1186,7 @@ bool TPrimanota_application::caus_query_handler(TMask_field& f, KEY key) if (i != iva_errata) { const bool ok = suspended_handler(f, key); // Controlla sospensione - if (ok) + if (ok && key == K_TAB) f.mask().stop_run(K_INS); // Entra in modo inserimento } else diff --git a/cg/cg2104.cpp b/cg/cg2104.cpp index 2e2b24ebf..f5380f238 100755 --- a/cg/cg2104.cpp +++ b/cg/cg2104.cpp @@ -259,10 +259,8 @@ bool TPrimanota_application::read_scadenze(const TMask& m) char sezione = _rel->cg(0).get_char("SEZIONE"); // Dare/Avere char tipocf = _rel->cg(0).get_char("TIPOC"); // Cliente || Fornitore || Uncazzo - int gruppo = (tipocf == 'C' || tipocf == 'F') ? 0 : - _rel->cg(0).get_char("GRUPPO"); - int conto = (tipocf == 'C' || tipocf == 'F') ? 0 : - _rel->cg(0).get_char("CONTO"); + int gruppo = (tipocf == 'C' || tipocf == 'F') ? 0 : _rel->cg(0).get_char("GRUPPO"); + int conto = (tipocf == 'C' || tipocf == 'F') ? 0 : _rel->cg(0).get_char("CONTO"); long sottoconto = _rel->cg(0).get_long("SOTTOCONTO"); int nriga = 1; int numrig = 1;