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;
|
return FALSE;
|
||||||
|
|
||||||
if (app()._tipo_stampa != 1) //stampa di bollato
|
if (app()._tipo_stampa != 1) //stampa di bollato
|
||||||
if (regst) //il movimento e' gia' stato stampato in forma definitiva
|
if (regst) //il movimento e' gia'
|
||||||
return FALSE;
|
return FALSE; //stato stampato in forma definitiva
|
||||||
|
|
||||||
if (datareg.month() < app()._stampa_mese)
|
if (datareg.month() < app()._stampa_mese)
|
||||||
app()._stampa_mese = datareg.month();
|
app()._stampa_mese = datareg.month();
|
||||||
@ -1819,7 +1819,7 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
|||||||
if (!_st_liq[m])
|
if (!_st_liq[m])
|
||||||
if (stampo_liquidazione(m))
|
if (stampo_liquidazione(m))
|
||||||
{
|
{
|
||||||
// _datareg = format("01/%02d/%4d", m, _annoes); //serve per la preprocess_header (intestazione per la stampa liquidazione)
|
// _datareg = format("01/%02d/%4d", m, _annoes); //serve per la preprocess_header (intestazione per la stampa liquidazione)
|
||||||
_datareg = TDate(1, m, _annoes); // Meglio cosi'
|
_datareg = TDate(1, m, _annoes); // Meglio cosi'
|
||||||
TFilename t;
|
TFilename t;
|
||||||
t.temp("reg");
|
t.temp("reg");
|
||||||
@ -1841,8 +1841,8 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
|||||||
{
|
{
|
||||||
_intesta_liq = TRUE;
|
_intesta_liq = TRUE;
|
||||||
//printer().footerlen(0);
|
//printer().footerlen(0);
|
||||||
merge_export_file(t,FALSE,TRUE);
|
if (!_mov_empty) printer().formfeed();
|
||||||
printer().formfeed();
|
merge_export_file(t,FALSE,TRUE);
|
||||||
_intesta_liq = FALSE;
|
_intesta_liq = FALSE;
|
||||||
reset_print();
|
reset_print();
|
||||||
remove(t);
|
remove(t);
|
||||||
@ -2441,7 +2441,14 @@ print_action CG4400_application::postprocess_page (int file, int counter)
|
|||||||
remove(_t);
|
remove(_t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//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)
|
if (!counter)
|
||||||
{
|
{
|
||||||
@ -2766,12 +2773,18 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
|||||||
|
|
||||||
if (item > 0l)
|
if (item > 0l)
|
||||||
{
|
{
|
||||||
|
//modifica del 26/07/1995
|
||||||
|
_mov_empty = TRUE;
|
||||||
|
//fine
|
||||||
|
|
||||||
print();
|
print();
|
||||||
|
|
||||||
if (is_cancelled()) return FALSE;
|
if (is_cancelled()) return FALSE;
|
||||||
|
|
||||||
|
/***
|
||||||
if (_tipo_stampa != 3 && _liquidazione)
|
if (_tipo_stampa != 3 && _liquidazione)
|
||||||
stampa_liq_mesi_succ();
|
stampa_liq_mesi_succ();
|
||||||
|
***/
|
||||||
}
|
}
|
||||||
//non ci sono movimenti da stampare nel periodo richiesto!
|
//non ci sono movimenti da stampare nel periodo richiesto!
|
||||||
else no_movimenti();
|
else no_movimenti();
|
||||||
@ -2812,8 +2825,8 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
|||||||
if (sca_vid.month() < _fino_a_mese)
|
if (sca_vid.month() < _fino_a_mese)
|
||||||
continue;
|
continue;
|
||||||
if (_u_data.ok())
|
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));
|
message_box("Ditta %ld: Il registro %s e' gia' stato stampato come bollato di %s", _ditta, (const char*) _codreg, itom(_fino_a_mese));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -2881,12 +2894,18 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
|||||||
|
|
||||||
if (items > 0l)
|
if (items > 0l)
|
||||||
{
|
{
|
||||||
|
//modifica del 26/07/1995;
|
||||||
|
_mov_empty = TRUE;
|
||||||
|
//fine
|
||||||
|
|
||||||
print();
|
print();
|
||||||
|
|
||||||
if (is_cancelled()) return FALSE;
|
if (is_cancelled()) return FALSE;
|
||||||
|
|
||||||
|
/***
|
||||||
if (_tipo_stampa != 3 && _liquidazione)
|
if (_tipo_stampa != 3 && _liquidazione)
|
||||||
stampa_liq_mesi_succ();
|
stampa_liq_mesi_succ();
|
||||||
|
***/
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
no_movimenti();
|
no_movimenti();
|
||||||
@ -2918,9 +2937,11 @@ void CG4400_application::stampa_liq_mesi_succ()
|
|||||||
{
|
{
|
||||||
if (stampo_liquidazione(m))
|
if (stampo_liquidazione(m))
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
if (!printer().isopen())
|
if (!printer().isopen())
|
||||||
printer().open();
|
printer().open();
|
||||||
// _datareg = format("01/%02d/%4d", m, _annoes); //serve per la preprocess_header (intestazione per la stampa liquidazione)
|
*/
|
||||||
|
// _datareg = format("01/%02d/%4d", m, _annoes); //serve per la preprocess_header (intestazione per la stampa liquidazione)
|
||||||
_datareg = TDate(1, m, _annoes); // Meglio cosi'
|
_datareg = TDate(1, m, _annoes); // Meglio cosi'
|
||||||
TFilename t;
|
TFilename t;
|
||||||
t.temp("iva");
|
t.temp("iva");
|
||||||
@ -2932,7 +2953,7 @@ void CG4400_application::stampa_liq_mesi_succ()
|
|||||||
if (fexist(t))
|
if (fexist(t))
|
||||||
{
|
{
|
||||||
_intesta_liq = TRUE;
|
_intesta_liq = TRUE;
|
||||||
if (m > da) printer().formfeed();
|
printer().formfeed();
|
||||||
//printer().footerlen(0);
|
//printer().footerlen(0);
|
||||||
merge_export_file(t,FALSE,TRUE);
|
merge_export_file(t,FALSE,TRUE);
|
||||||
_intesta_liq = FALSE;
|
_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)
|
void CG4400_application::send_message(char tipo, const TFilename& nome, int mese)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user