diff --git a/cg/cg1600.cpp b/cg/cg1600.cpp index 127e85fc6..42e79bef7 100755 --- a/cg/cg1600.cpp +++ b/cg/cg1600.cpp @@ -4090,7 +4090,8 @@ bool CG1600_application::preprocess_stampa_verifica(int counter) //modifica 05/04/1995 if ((_tipo_stampa == 1 && _dataini == _data_ini_ese) || _tipo_stampa == 2) - { + { + _i++; if (strlen(_nuovo_tot_saldo_d.string()) > 12 || strlen(_nuovo_tot_saldo_a.string()) > 12) { diff --git a/cg/cg3200.cpp b/cg/cg3200.cpp index 258c8fb2e..4f4a9ab37 100755 --- a/cg/cg3200.cpp +++ b/cg/cg3200.cpp @@ -2888,7 +2888,10 @@ void TMastrini_application::calcola_progressivi_al() if (_mov->bad()) _mov->zero(); datacomp = (_mov->curr().get(MOV_DATACOMP)); - + TString provvis (_mov->curr().get(MOV_PROVVIS)); + + if ((_stampa_mov_prov) || ((!_stampa_mov_prov) && (provvis.trim().empty()))) + { if (_annomsk == 0) { datareg = rmov.get_date(RMV_DATAREG); @@ -2911,6 +2914,7 @@ void TMastrini_application::calcola_progressivi_al() _totale_prima_dare += importo; else if (sezione == 'A') _totale_prima_avere += importo; + } // if ((_stampa_mov_prov) || ((!_stampa_mov_prov) && (provvis.trim().empty()))) } rmov.readat(record); } diff --git a/cg/cglib04.cpp b/cg/cglib04.cpp index b72dcb0ab..8d32a320a 100755 --- a/cg/cglib04.cpp +++ b/cg/cglib04.cpp @@ -3010,11 +3010,7 @@ void TTransfer_file::new_key(TString& key, int tipo, TString& buffer) n_key << key.mid(2,6); n_key << key.mid(8,2); n_key << buffer.mid(26,2); - TString app; // Modifica del 06-09-96 relativa all'allineamento - app = buffer.mid(28,7); - app.trim(); // del numero di riferimento partita che per i file - app.format("%-7s", (const char*) app); // temporanei deve essere sempre a sinistra - n_key << app; // indipendentemente da quello che c'e' sul trasfer + n_key << buffer.mid(28,7); n_key << buffer.mid(35,2); n_key << key.mid(10,3); @@ -3068,7 +3064,13 @@ bool TTransfer_file::ordina_trasfer(const char* orig) TString key = buffer.mid(0,15); if (buffer.mid(0,2) == "B1") - { + { + TString app; // Modifica del 06-09-96 relativa all'allineamento + app = buffer.mid(28,7); + app.trim(); // del numero di riferimento partita che per i file + app.format("%-7s", (const char*) app); // temporanei deve essere sempre a sinistra + buffer.overwrite(app,28); // indipendentemente da quello che c'e' sul trasfer + int tipomov = atoi(buffer.mid(37,1)); new_key(key,tipomov,buffer); }