Patch level : 2.0 nopatch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Reso piu' accurata la conversione tra unita' di misura


git-svn-id: svn://10.65.10.50/trunk@11055 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-04-23 09:26:17 +00:00
parent b17eae20c0
commit 47ade5a404

View File

@ -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;
}