Patch level :10.0 no patch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :eliminate inutili righe di commento


git-svn-id: svn://10.65.10.50/trunk@17810 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-12-04 16:30:41 +00:00
parent c9f8b40261
commit b5f5be5f06

View File

@ -119,7 +119,7 @@ public:
bool esiste_rata();
const char * get_error(int err);
void apri_file_SC();
void apri_file_SC();
void chiudi_file_SC();
TLibro_giornale& giornale() { return *_giornale; }
@ -447,20 +447,7 @@ void TRic_ListaMov::stampa_errori_mov(int riga)
int TRic_ListaMov::cerca_anno_solare_esercizio(int codice)
{
int anno = 0;
/*
TTable ese ("ESC");
TDate datafine;
TString4 dep; dep.format("%04d", codice);
ese.zero();
ese.put("CODTAB", dep);
if (ese.read() == NOERR)
datafine = ese.get_date("D1");
if (datafine != botime)
anno = datafine.year();
*/
TEsercizi_contabili esc;
if (esc.exist(codice))
anno = esc[codice].fine().year();
@ -535,32 +522,29 @@ bool TRic_ListaMov::controlla_mov()
if ( !TDate::isdate(_datadoc.string()) )
_err.set(6);
//if (_causale.not_empty())
//{
TLocalisamfile caus(LF_CAUSALI);
caus.setkey(1);
TLocalisamfile caus(LF_CAUSALI);
caus.setkey(1);
caus.zero();
caus.put(CAU_CODCAUS,_causale);
if (caus.read() == NOERR)
{
_tipodoc = caus.get(CAU_TIPODOC);
if (_is_salda)
_tipom_cau = caus.get(CAU_TIPOMOV);
}
else
{
caus.zero();
caus.put(CAU_CODCAUS,_causale);
if (caus.read() == NOERR)
{
_tipodoc = caus.get(CAU_TIPODOC);
if (_is_salda)
_tipom_cau = caus.get(CAU_TIPOMOV);
}
else
if (_causale.not_empty()) //se la causale e' significativa
{
caus.zero();
if (_causale.not_empty()) //se la causale e' significativa
{
_errore_grave = TRUE;
_err.set(7);
}
_errore_grave = TRUE;
_err.set(7);
}
//_tipodoc = caus.get(CAU_TIPODOC); ho sempre quello letto sul movimento!
causreg = caus.get(CAU_REG);
_descr_causale = caus.get(CAU_DESCR);
_mov_sez = caus.get_bool(CAU_MOVSEZ);
//}
}
//_tipodoc = caus.get(CAU_TIPODOC); ho sempre quello letto sul movimento!
causreg = caus.get(CAU_REG);
_descr_causale = caus.get(CAU_DESCR);
_mov_sez = caus.get_bool(CAU_MOVSEZ);
if (!_codpag.blank())
{
@ -2383,8 +2367,7 @@ bool TRic_ListaMov::preprocess_page(int file,int counter)
bool controlla = controlla_partite(); //se TRUE => ci sono errori nella testata
bool verifica = (verpagsca || verscad);
if ( (_controllo == 1 && controlla) || _controllo == 2 ||
(_controllo == 1 && verifica) )
if ( (_controllo == 1 && controlla) || _controllo == 2 || (_controllo == 1 && verifica) )
{
TString16 datareg_str = _datareg.string();
// "Fai vedere lo stesso ..-..-.... anche se non c'e' la data..."
@ -2427,8 +2410,10 @@ bool TRic_ListaMov::preprocess_page(int file,int counter)
if (_tipocf != _tipocf_p || _gruppo != _gruppo_p || _conto != _conto_p ||
_codcf != _codcf_p || _numpart != _numpart_prec || _anno != _anno_prec)
set_row(r,FR("@0g@rRif. partita"));
set_row(r,FR("@14gN.riga@22gN.operaz./riga Data oper. Data doc. N.doc. Reg Prot. Causale"));
set_row(r++,FR("@142gTipo/Data pag. Cod.val Cambio Data cambio Sez"));
if (_tipocf != _tipocf_p || _gruppo != _gruppo_p || _conto != _conto_p ||
_codcf != _codcf_p || _numpart != _numpart_prec || _anno != _anno_prec)
{
@ -3078,24 +3063,13 @@ void TRic_ListaMov::aggiorna_partite()
}
if (_tipomov != 1 && _tipomov != 4)
{
/* if (_prima_volta)
real doc;
real val;
if (calcola_impdocval(_numreg,_numrig,_tipocf,_gruppo,_conto,_codcf,_anno,_numpart,_nriga,doc,val))
{
_prima_volta = FALSE;
if (part.get_real(PART_IMPTOTDOC) == ZERO)
_calcola = TRUE;
else
_calcola = FALSE;
} */
// if (_calcola)
// {
real doc;
real val;
if (calcola_impdocval(_numreg,_numrig,_tipocf,_gruppo,_conto,_codcf,_anno,_numpart,_nriga,doc,val))
{
part.put(PART_IMPTOTDOC, doc);
part.put(PART_IMPTOTVAL, val);
}
// }
part.put(PART_IMPTOTDOC, doc);
part.put(PART_IMPTOTVAL, val);
}
}
if (_tipomov == 1 ) //&& (part.get_real(PART_IMPORTO) == ZERO) )
{