From e82dc73f322cb5b888dc36cc645c22fe8cff2e3a Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 1 Oct 1996 15:01:34 +0000 Subject: [PATCH] - Correzione errore MI6137 su bilancio IV dir. CEE - Correzione errori MI2180 - MI2182 su lista controllo movimenti in ricezione saldaconto - Correzione errore MI2181 su invio saldaconto a PC. git-svn-id: svn://10.65.10.50/trunk@3696 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg1600.cpp | 11 ++++++--- cg/cg6700.cpp | 65 +++++++++++++++++++++++++++++++-------------------- cg/cg6904.cpp | 2 +- 3 files changed, 49 insertions(+), 29 deletions(-) diff --git a/cg/cg1600.cpp b/cg/cg1600.cpp index 42e79bef7..b8f38949d 100755 --- a/cg/cg1600.cpp +++ b/cg/cg1600.cpp @@ -2169,6 +2169,11 @@ if (tasto == K_ENTER) { _tipo_stampa = atoi(_msk->get(F_TIPOSTAMPA)); _prog = new TProgind(_pconti->items(),"Elaborazione in corso... prego attendere",FALSE); + if (_tipo_stampa == 2) + { + _anno_esercizio = _annoese; + _anno_esercizio_raf = _annoeserafr; + } } else if (_tipo_bilancio == 2) { @@ -2178,7 +2183,7 @@ if (tasto == K_ENTER) { _anno_esercizio = _annoese; _anno_esercizio_raf = _annoeserafr; - } + } } _cont_let = 0; @@ -3604,7 +3609,7 @@ void CG1600_application::stampa_saldo_198(real& saldo_d,real& saldo_a) set_row (_i,"@115g%r", &saldo_d); set_row (_i,"@48g!@81g!@114g!@131g!"); set_row (_i,"@133g%r", &saldo_a); - set_row (_i++,"@48g!@81g!@114g!@131g!"); + set_row (_i,"@48g!@81g!@114g!@131g!"); saldo_d = real(ZERO); saldo_a = real(ZERO); } @@ -3614,7 +3619,7 @@ void CG1600_application::stampa_saldo_132(const real& saldo) set_row (_i,"@115g%r", &saldo); set_row (_i,"@48g!@81g!@114g!"); if (saldo != ZERO) - set_row (_i++,"@131g%c", _tot_sez_saldo); + set_row (_i,"@131g%c", _tot_sez_saldo); } print_action CG1600_application::postprocess_page(int file, int counter) diff --git a/cg/cg6700.cpp b/cg/cg6700.cpp index 827532f1e..6f96c61e9 100755 --- a/cg/cg6700.cpp +++ b/cg/cg6700.cpp @@ -94,7 +94,7 @@ class TRic_ListaMov : public TPrintapp char _sdt, _sezione, _tipocf, _sez; int _ae, _anno, _gruppo, _conto, _tipocr, _tipod, _tiporeg, _tipomov, _tipopag, _nriga; int _gruppoc, _contoc, _gruppocr, _contocr, _annoiva, _gruppocl, _contocl, _numrig, _annoese; - int _gruppo_p, _conto_p; + int _gruppo_p, _conto_p, _anno_prec; TDate _datacomp, _datadoc, _datareg, _data74tr, _datacam, _datacam_part,_datapag; real _importo, _impo, _impos, _tot_dare, _tot_avere, _tot_doc, _tot_val; real _cambio, _cambio_part; @@ -1470,22 +1470,28 @@ bool TRic_ListaMov::controlla_scadenze() { scad.readat(nrec); return TRUE; - } - if (!cerca_codpag(codpag)) - { - scad.readat(nrec); - return TRUE; + } + if (codpag.not_empty()) // Modifica 01-10-96 chiesta da Patrizia: se il codice di + { // pagamento non e' significativo non va controllato, + if (!cerca_codpag(codpag)) // altrimenti si presenta l'errore su quelle partite + { // generate in automatico dove non e' possibile indicare + scad.readat(nrec); // il codice di pagamento. + return TRUE; + } } if (tipopag < 1 || tipopag > 9) { scad.readat(nrec); return TRUE; - } - cerca_tipopag_codpag(codpag,tipopag); - if (tipopag != _tipopag_pag) - { - scad.readat(nrec); - return TRUE; + } + if (codpag.not_empty()) // Modifica 01-10-96 idem come sopra + { + cerca_tipopag_codpag(codpag,tipopag); + if (tipopag != _tipopag_pag) + { + scad.readat(nrec); + return TRUE; + } } if (ultclass.not_empty()) { @@ -1660,21 +1666,27 @@ void TRic_ListaMov::stampa_errori_scadenze(int riga) _errore_grave_SC = TRUE; set_row(++riga, "@30g%s", (const char*) err_msg[24]); } - if (!cerca_codpag(codpag)) - { - _errore_grave_SC = TRUE; - set_row(++riga, "@30g*** Codice pagamento non valido o non presente in tabella"); + if (codpag.not_empty()) // Modifica 01-10-96 chiesta da Patrizia: per spiegazione vedi + { // funzione controlla_scadenze(); + if (!cerca_codpag(codpag)) + { + _errore_grave_SC = TRUE; + set_row(++riga, "@30g*** Codice pagamento non valido o non presente in tabella"); + } } if (tipopag < 1 || tipopag > 9) { _errore_grave_SC = TRUE; set_row(++riga, "@30g%s", (const char*) err_msg[19]); - } - cerca_tipopag_codpag(codpag,tipopag); - if (tipopag != _tipopag_pag) - { - _errore_grave_SC = TRUE; - set_row(++riga, "@30g%s", (const char*) err_msg[40]); + } + if (codpag.not_empty()) // Modifica 01-10-96 idem come sopra + { + cerca_tipopag_codpag(codpag,tipopag); + if (tipopag != _tipopag_pag) + { + _errore_grave_SC = TRUE; + set_row(++riga, "@30g%s", (const char*) err_msg[40]); + } } if (ultclass.not_empty()) { @@ -2294,11 +2306,13 @@ bool TRic_ListaMov::preprocess_page(int file,int counter) set_row(r++," @b%-50s", (const char*) _descr_anag); } // II riga di testata (L'intestazione viene stampata solo a rottura di partita) - if (_numpart != _numpart_prec) + if (_gruppo != _gruppo_p || _conto != _conto_p || _codcf != _codcf_p + || _numpart != _numpart_prec || _anno != _anno_prec) set_row(r,"@0g@rRif. partita"); set_row(r,"@14gN.riga@22gN.operaz./riga Data oper. Data doc. N.doc. Reg Prot. Causale"); set_row(r++,"@142gTipo/Data pag. Cod.val Cambio Data cambio Sez"); - if (_numpart != _numpart_prec) + if (_gruppo != _gruppo_p || _conto != _conto_p || _codcf != _codcf_p + || _numpart != _numpart_prec || _anno != _anno_prec) { set_row(r,"%4d", _anno); set_row(r,"@4g/%-7s", (const char*) _numpart); @@ -2339,7 +2353,8 @@ bool TRic_ListaMov::preprocess_page(int file,int counter) stampa_errori_partite(r); _prima_rata_pag = TRUE; - _numpart_prec = _numpart; + _numpart_prec = _numpart; + _anno_prec = _anno; _ho_stampato = TRUE; return TRUE; diff --git a/cg/cg6904.cpp b/cg/cg6904.cpp index a1776e102..352983552 100755 --- a/cg/cg6904.cpp +++ b/cg/cg6904.cpp @@ -1260,7 +1260,7 @@ void TInv_cont::invio_partite() TString datacam = _tpart->get(PART_DATACAM); datastr = riconverti(datacam,TRUE); - str.format("%08s", (const char*) datacam); + str.format("%08s", (const char*) datastr); record.overwrite(str,245); //Data cambio real imptotdoc (_tpart->get_real(PART_IMPTOTDOC));