diff --git a/ba/ba3100.cpp b/ba/ba3100.cpp index d0e0a9a76..1e1653790 100755 --- a/ba/ba3100.cpp +++ b/ba/ba3100.cpp @@ -28,7 +28,6 @@ #define TAB_REGISTRI "REG" #define TAB_VALUTE "%VAL" #define TAB_VERSAMENTI "%VER" -#define TAB_GRMERC "GMC" #define TAB_NOMENCOMB "%NOC" #define TAB_NOTECLI "%NOT" #define TAB_PREST "PRS" @@ -63,7 +62,6 @@ protected: static bool change_decimals_handler(TMask_field& f, KEY k); static bool codcab_handler(TMask_field& f, KEY k); static bool codmag_handler(TMask_field& f, KEY k); - static bool codgmc_handler(TMask_field& f, KEY k); static bool codnoc_handler(TMask_field& f, KEY k); static bool desnot_handler(TMask_field& f, KEY k); static bool numivd_handler(TMask_field& f, KEY k); @@ -593,23 +591,6 @@ bool TGeneric_table_app::codmag_handler(TMask_field& f, KEY k) return TRUE; } -bool TGeneric_table_app::codgmc_handler(TMask_field& f, KEY k) -{ - TMask& m = f.mask(); - if (m.query_mode() && k == K_ENTER) - { - const TString& codice = m.get(f.dlg()); //stringa immessa nella maschera - const TString& codtab = cache().get("GMC", codice, "CODTAB"); //stringa cercata nella tabella - if (codtab.empty()) //se non trovi la stringa in tabella (in codice magazzino non esiste->se in insert mode) - { - const int lungh = codice.len(); - if (lungh > 0 && lungh < 3) - return f.error_box("Il codice del gruppo merceologico deve avere obbligatoriamente lunghezza 3"); - } - } - return TRUE; -} - bool TGeneric_table_app::codnoc_handler(TMask_field& f, KEY k) { if (f.to_check(k)) @@ -689,9 +670,6 @@ bool TGeneric_table_app::user_create() if (name == TAB_BANCHE) mask.set_handler(102, codcab_handler); - if (name == TAB_GRMERC) - mask.set_handler(101, codgmc_handler); - if (name == TAB_NOMENCOMB) mask.set_handler(NOC_CODICE2, codnoc_handler);