Corretto (spero) errore salto pagina registri
git-svn-id: svn://10.65.10.50/trunk@1652 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e6eb3ec25d
commit
abbe16b456
@ -26,8 +26,8 @@ bool CG4400_application::filter_func (const TRelation * r)
|
||||
return FALSE;
|
||||
|
||||
if (app()._tipo_stampa != 1) //stampa di bollato
|
||||
if (regst) //il movimento e' gia' stato stampato in forma definitiva
|
||||
return FALSE;
|
||||
if (regst) //il movimento e' gia'
|
||||
return FALSE; //stato stampato in forma definitiva
|
||||
|
||||
if (datareg.month() < app()._stampa_mese)
|
||||
app()._stampa_mese = datareg.month();
|
||||
@ -1841,8 +1841,8 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
||||
{
|
||||
_intesta_liq = TRUE;
|
||||
//printer().footerlen(0);
|
||||
if (!_mov_empty) printer().formfeed();
|
||||
merge_export_file(t,FALSE,TRUE);
|
||||
printer().formfeed();
|
||||
_intesta_liq = FALSE;
|
||||
reset_print();
|
||||
remove(t);
|
||||
@ -2442,6 +2442,13 @@ print_action CG4400_application::postprocess_page (int file, int counter)
|
||||
}
|
||||
}
|
||||
}
|
||||
//modifica del 26/07/1995
|
||||
TRecnotype pos = _cur->pos();
|
||||
long items = _cur->items();
|
||||
if (pos == items-1)
|
||||
if (_tipo_stampa != 3 && _liquidazione)
|
||||
stampa_liq_mesi_succ();
|
||||
//fine modifica
|
||||
}
|
||||
if (!counter)
|
||||
{
|
||||
@ -2766,12 +2773,18 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||
|
||||
if (item > 0l)
|
||||
{
|
||||
//modifica del 26/07/1995
|
||||
_mov_empty = TRUE;
|
||||
//fine
|
||||
|
||||
print();
|
||||
|
||||
if (is_cancelled()) return FALSE;
|
||||
|
||||
/***
|
||||
if (_tipo_stampa != 3 && _liquidazione)
|
||||
stampa_liq_mesi_succ();
|
||||
***/
|
||||
}
|
||||
//non ci sono movimenti da stampare nel periodo richiesto!
|
||||
else no_movimenti();
|
||||
@ -2812,8 +2825,8 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||
if (sca_vid.month() < _fino_a_mese)
|
||||
continue;
|
||||
if (_u_data.ok())
|
||||
if (_data_a < _u_data)
|
||||
{
|
||||
if (_data_a < _u_data) //e' molto imp. che rimanga < e non <= !!!
|
||||
{ //(per via del discorso liq. annuale)
|
||||
message_box("Ditta %ld: Il registro %s e' gia' stato stampato come bollato di %s", _ditta, (const char*) _codreg, itom(_fino_a_mese));
|
||||
continue;
|
||||
}
|
||||
@ -2881,12 +2894,18 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||
|
||||
if (items > 0l)
|
||||
{
|
||||
//modifica del 26/07/1995;
|
||||
_mov_empty = TRUE;
|
||||
//fine
|
||||
|
||||
print();
|
||||
|
||||
if (is_cancelled()) return FALSE;
|
||||
|
||||
/***
|
||||
if (_tipo_stampa != 3 && _liquidazione)
|
||||
stampa_liq_mesi_succ();
|
||||
***/
|
||||
}
|
||||
else
|
||||
no_movimenti();
|
||||
@ -2918,8 +2937,10 @@ void CG4400_application::stampa_liq_mesi_succ()
|
||||
{
|
||||
if (stampo_liquidazione(m))
|
||||
{
|
||||
/*
|
||||
if (!printer().isopen())
|
||||
printer().open();
|
||||
*/
|
||||
// _datareg = format("01/%02d/%4d", m, _annoes); //serve per la preprocess_header (intestazione per la stampa liquidazione)
|
||||
_datareg = TDate(1, m, _annoes); // Meglio cosi'
|
||||
TFilename t;
|
||||
@ -2932,7 +2953,7 @@ void CG4400_application::stampa_liq_mesi_succ()
|
||||
if (fexist(t))
|
||||
{
|
||||
_intesta_liq = TRUE;
|
||||
if (m > da) printer().formfeed();
|
||||
printer().formfeed();
|
||||
//printer().footerlen(0);
|
||||
merge_export_file(t,FALSE,TRUE);
|
||||
_intesta_liq = FALSE;
|
||||
@ -2940,7 +2961,7 @@ void CG4400_application::stampa_liq_mesi_succ()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (printer().isopen()) printer().close();
|
||||
//if (printer().isopen()) printer().close();
|
||||
}
|
||||
|
||||
void CG4400_application::send_message(char tipo, const TFilename& nome, int mese)
|
||||
|
Loading…
x
Reference in New Issue
Block a user