COrretta apertura partite

git-svn-id: svn://10.65.10.50/trunk@2950 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-05-31 15:37:42 +00:00
parent c86436f4ea
commit 55da3f8413

View File

@ -281,16 +281,7 @@ bool TCreatepart_app::menu(MENU_TAG)
const TEsercizio& selected_es = _esc.esercizio(anno_es);
const int anno_rif = selected_es.inizio().year();
int n_part = crea_partite(anno_es, anno_rif, FALSE);
if (n_part >= 0)
{
const int pred_es = _esc.pred(anno_es);
if (pred_es > 0)
{
const int p = crea_partite(pred_es, anno_rif, TRUE);
if (p > 0) n_part += p;
}
}
else
if (n_part < 0)
message_box("Nessun saldo presente per l'esercizio %d", anno_es);
if (n_part > 0)