diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp index f193450e7..f55146fb7 100755 --- a/cg/cg2100.cpp +++ b/cg/cg2100.cpp @@ -1618,7 +1618,7 @@ HIDDEN void ini2bill(TConfig& ini, TBill& bil, bool contro) { const char tipo = ini.get_char(contro ? RMV_TIPOCC : RMV_TIPOC); const int gruppo = ini.get_int(contro ? RMV_GRUPPOC : RMV_GRUPPO); - const int conto = ini.get_int(contro ? RMV_CONTOC : RMV_CONTO); + const int conto = ini.get_int(contro ? RMV_CONTOC : RMV_CONTO); const long sottoconto = ini.get_long(contro ? RMV_SOTTOCONTOC : RMV_SOTTOCONTO); bil.set(gruppo, conto, sottoconto, tipo); } @@ -1739,6 +1739,17 @@ void TPrimanota_application::ini2mask(TConfig& ini, TMask& msk, bool query) if (is_fattura()) { + if (msk.insert_mode()) + { + // Propone condizioni di pagamento e banche + TEdit_field& clifo = msk.efield(iva() == iva_vendite ? F_CLIENTE : F_FORNITORE); + if (!clifo.empty() && clifo.active()) + { + clifo.set_focusdirty(); + clifo_handler(clifo, K_TAB); + } + } + TSheet_field& pag = pags(); const int start_items = pag.items();