Patch level : 4.00

Files correlati     : crpa0.exe
Ricompilazione Demo : [ ]
Commento            : sistemato piantamento a causa di una delete doc appena deletato


git-svn-id: svn://10.65.10.50/trunk@14098 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2006-06-16 13:09:05 +00:00
parent 56cfaad1b5
commit 06f39f5ae2

View File

@ -119,8 +119,8 @@ bool TIni2Sql::test_swap_conto(const int gr, const int co, const char sezione) c
bool TIni2Sql::test_swap() const
{
bool s = FALSE;
if (*_caus->codice() > ' ') // esiste la causale
bool s = false;
if (_caus != NULL && *_caus->codice() > ' ') // esiste la causale
{
const char sez = _caus->sezione_clifo();
const TipoIVA iva = _caus->iva();
@ -553,7 +553,7 @@ void TIni2Sql::validate(const TString& elabfield, TString& str)
TToken_string key;
if (code == "_ELSPESAMOV") // per righe movimenti
{
key = _inputfile->get("CODCOSTO", "108");
key = _inputfile->get("CODCCOSTO", "108");
//key = _inputfile->get("GRUPPO");
//key.add(_inputfile->get("CONTO"));
//key.add(_inputfile->get("SOTTOCONTO"));
@ -580,7 +580,7 @@ void TIni2Sql::validate(const TString& elabfield, TString& str)
str.format("%s (%s)", (const char*) tmpstr, (const char*) _inputfile->get("PROTIVA"));
}
else if (code == "_CODART") // campo CODART per movimenti
str = _inputfile->get("CODCOSTO", "108");
str = _inputfile->get("CODCCOSTO", "108");
//str.format("%s-%s-%s", (const char*) _inputfile->get("GRUPPO"), (const char*) _inputfile->get("CONTO"), (const char*) _inputfile->get("SOTTOCONTO"));
else if (code == "_IMPORTORMOV") // campo importo per righe movimenti
{
@ -588,7 +588,7 @@ void TIni2Sql::validate(const TString& elabfield, TString& str)
//const int gruppo = atoi(_inputfile->get("GRUPPO"));
//const int conto = atoi(_inputfile->get("CONTO"));
TString80 codcosto;
codcosto = _inputfile->get("CODCOSTO");
codcosto = _inputfile->get("CODCCOSTO");
const int gruppo = atoi(codcosto.sub(0,3));
const int conto = atoi(codcosto.sub(3,3));
str = _inputfile->get("SEZIONE");
@ -602,7 +602,7 @@ void TIni2Sql::validate(const TString& elabfield, TString& str)
//const int gruppo = atoi(_inputfile->get("GRUPPO"));
//const int conto = atoi(_inputfile->get("CONTO"));
TString80 codcosto;
codcosto = _inputfile->get("CODCOSTO");
codcosto = _inputfile->get("CODCCOSTO");
const int gruppo = atoi(codcosto.sub(0,3));
const int conto = atoi(codcosto.sub(3,3));
str = _inputfile->get("SEZIONE");
@ -793,7 +793,7 @@ bool TIni2Sql::destroy()
if (_dadoc != NULL)
delete _doc;
if (_rigadoc != NULL)
delete _doc;
delete _rigadoc;
return TSkeleton_application::destroy();
}