From 2a3520ba4790828cb4016dfd44084ac513954e7d Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 26 Feb 2009 23:36:37 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 0001176 Il codice IVA, sullÂ’anagrafica articoli, deve essere attivo se installato almeno il modulo delle vendite. git-svn-id: svn://10.65.10.50/trunk@18367 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve2400.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ve/ve2400.cpp b/ve/ve2400.cpp index 9bc757913..275bdf7f9 100755 --- a/ve/ve2400.cpp +++ b/ve/ve2400.cpp @@ -507,6 +507,10 @@ TMask_anamag::TMask_anamag(TRelation * rel) : TMask("ve2400") TButton_field& bu = add_button(F_ADVANCED, 0, PR("Codice guidato"), 1, 1, 20); bu.set_handler(advanced_codart_handler); } + if (!app().has_module(LVAUT, CHK_DONGLE)) + hide(-G_LV); + field(F_CODIVA).check_type(app().has_module(VEAUT, CHK_DONGLE) ? CHECK_REQUIRED : CHECK_NORMAL); + first_focus(F_CODART); } } @@ -1825,8 +1829,6 @@ bool TAnagrafica_magazzino::user_create() _rel= new TRelation(LF_ANAMAG); _msk= new TMask_anamag(_rel); - if (!app().has_module(LVAUT,CHK_DONGLE)) - _msk->hide(-G_LV); set_search_field(F_CODART); //serve per avere come campo di ricerca il codice articolo intero //invece che l'ultimo campo del codice multilivello (se c'e')