Correzione MI3481.
git-svn-id: svn://10.65.10.50/trunk@4015 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ce12ec144d
commit
52f005ea2a
@ -3455,6 +3455,7 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||
TString16 codtab, cod_lib_un;
|
||||
int anno;
|
||||
TDate sca_vid;
|
||||
bool one_printed = FALSE; // Flag per vedere se ha stampato almeno un registro (solo per rif. al libro giornale)
|
||||
for (_tabreg->first(); !_tabreg->eof(); _tabreg->next())
|
||||
{
|
||||
_tipo_reg = _tabreg->get_int("I0");
|
||||
@ -3496,6 +3497,7 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||
_tabreg->readat(rec);
|
||||
if (!trovato)
|
||||
continue;
|
||||
else one_printed = TRUE;
|
||||
}
|
||||
if (_tipo_stampa == 3) //stampa su libro unico
|
||||
{
|
||||
@ -3590,6 +3592,10 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||
}
|
||||
}
|
||||
} //for
|
||||
|
||||
if (_tipo_stampa == 4 && !one_printed) // stampa con rif libro giornale
|
||||
message_box("Ditta %ld: nessun registro soddisfa i parametri indicati", _ditta);
|
||||
|
||||
if (msg)
|
||||
//if ( (_tipo_stampa != 3) || (_tipo_stampa == 3 && _fino_a_mese == 1 && _selected.ones() == 1L) ) //il messaggio seguente, nel caso di stampa su libro unico,
|
||||
if(_tipo_stampa == 3 && _fino_a_mese == 1 && _selected.ones() == 1L)
|
||||
|
Loading…
x
Reference in New Issue
Block a user