Correttor errore PR0040
git-svn-id: svn://10.65.10.50/trunk@2154 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
63066ef191
commit
80e600f803
@ -36,7 +36,7 @@ protected:
|
|||||||
virtual bool destroy();
|
virtual bool destroy();
|
||||||
virtual bool menu(MENU_TAG m);
|
virtual bool menu(MENU_TAG m);
|
||||||
|
|
||||||
bool zap_partite(int anno);
|
bool zap_partite();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -77,18 +77,15 @@ void TCreatepart_app::on_config_change()
|
|||||||
TPartita::carica_allineamento();
|
TPartita::carica_allineamento();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TCreatepart_app::zap_partite(int anno)
|
bool TCreatepart_app::zap_partite()
|
||||||
{
|
{
|
||||||
bool first = TRUE;
|
bool first = TRUE;
|
||||||
for (_partite->first(); !_partite->eof(); _partite->next())
|
for (_partite->first(); !_partite->eof(); _partite->next())
|
||||||
{
|
{
|
||||||
// ignora saldaconto altri esercizi
|
|
||||||
if (_partite->get_long(PART_ANNO) != anno)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (first)
|
if (first)
|
||||||
{
|
{
|
||||||
bool ok = yesno_box("Il saldaconto per l'esercizio scelto non e' vuoto."
|
bool ok = yesno_box("Il saldaconto non e' vuoto."
|
||||||
" La procedura lo azzera completamente."
|
" La procedura lo azzera completamente."
|
||||||
" Si desidera proseguire?");
|
" Si desidera proseguire?");
|
||||||
if (ok)
|
if (ok)
|
||||||
@ -146,7 +143,7 @@ bool TCreatepart_app::menu(MENU_TAG)
|
|||||||
m.set(F_NUMPART, n_part);
|
m.set(F_NUMPART, n_part);
|
||||||
|
|
||||||
// sputtana tutto il saldaculo
|
// sputtana tutto il saldaculo
|
||||||
if (!zap_partite(anno))
|
if (!zap_partite())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
TRelation saldi(LF_SALDI);
|
TRelation saldi(LF_SALDI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user