diff --git a/mg/mglib02.cpp b/mg/mglib02.cpp index 7146691c1..d80ca4808 100755 --- a/mg/mglib02.cpp +++ b/mg/mglib02.cpp @@ -228,12 +228,6 @@ bool TArticolo::unlock() bool rv = false; if (codice().not_empty()) { - /* - static TLocalisamfile *anag=NULL; - if (anag==NULL) - anag= new TLocalisamfile(LF_ANAMAG); - rv=(anag->read(*this, _isequal,_unlock)==NOERR); - */ TLocalisamfile anag(LF_ANAMAG); rv = anag.read(*this, _isequal,_unlock) == NOERR; } @@ -265,7 +259,7 @@ bool TArticolo::lock_and_prompt(const char * cod) mess << "Il codice articolo '" << cod << "' non e' valido"; else if (err == _iskeynotfound) - mess << "Il record di anagrafica\ndell'articolo ''"<< cod << "'' non esiste."; + mess << "Il record di anagrafica\ndell'articolo '"<< cod << "' non esiste."; else mess << "Non riesco ad accedere al\nrecord di anagrafica dell'articolo '"<< cod << "' - errore " << err << "."; TTimed_skipbox bbox((const char *)mess,10); @@ -342,7 +336,7 @@ real TArticolo::convert_to_um(const real& v, const char* to_um, const char* from // Se l'unita' di destinazione NON e' quella base converti if (i1 > 1) { - const fraction fc1 = (um()[i1]).get(UMART_FC); + const fraction fc1( (um()[i1]).get_real(UMART_FC), UNO ); f /= fc1; }