Patch level : 4.0 874
Files correlati : ef0.exe Ricompilazione Demo : [ ] Commento : Corretto salvataggio del campo TIPODETR Sulle righe di descrizionedava un errore manca il campo 154 git-svn-id: svn://10.65.10.50/trunk@16076 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d45d7beb5a
commit
0a72e7fbad
@ -993,11 +993,11 @@ void TRiga_documento::autosave(TSheet_field& f)
|
||||
fldref->write(fld.get(), *this);
|
||||
}
|
||||
|
||||
if (m.field(FR_TIPODET).active()) //solo se attivo il campo di indetraibilita'...
|
||||
if (m.id2pos(FR_TIPODET) >= 0 && m.field(FR_TIPODET).active()) //solo se attivo il campo di indetraibilita'...
|
||||
{
|
||||
const int tipodet = row.get_int( f.cid2index(FR_TIPODET));
|
||||
const TString & tipodet = row.get( f.cid2index(FR_TIPODET));
|
||||
put( RDOC_TIPODET, tipodet );
|
||||
if (tipodet != 9)
|
||||
if (tipodet != "9")
|
||||
{
|
||||
TString codcms = get(RDOC_CODCMS); //dalla rigadoc
|
||||
if (codcms.blank()) //se non la trova cerca nella maschera di testata
|
||||
@ -1024,6 +1024,7 @@ void TRiga_documento::autosave(TSheet_field& f)
|
||||
{
|
||||
put( RDOC_TIPODET, 9 );
|
||||
row.add(9, f.cid2index(FR_TIPODET));
|
||||
m.set(FR_TIPODET, 9);
|
||||
}
|
||||
}
|
||||
} //if(tipodet!=9)
|
||||
|
Loading…
x
Reference in New Issue
Block a user