Corretti errori CINZIA

git-svn-id: svn://10.65.10.50/trunk@3574 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-09-12 13:11:02 +00:00
parent f9b938f706
commit 8a0578bf47
2 changed files with 10 additions and 26 deletions

View File

@ -38,6 +38,7 @@ TSaldaconto_app::TSaldaconto_app()
bool TSaldaconto_app::create() bool TSaldaconto_app::create()
{ {
open_files(LF_TAB, LF_TABCOM, LF_CLIFO, 0);
open_files(LF_PARTITE, LF_SCADENZE, LF_PAGSCA, 0); open_files(LF_PARTITE, LF_SCADENZE, LF_PAGSCA, 0);
_msk = new TMask("sc0100a"); _msk = new TMask("sc0100a");

View File

@ -947,22 +947,6 @@ bool TGame_mask::edit_fattura(TPartita& p, int nriga)
bool TGame_mask::prima_nota(const long nreg) bool TGame_mask::prima_nota(const long nreg)
{ {
bool ok = TRUE;
/* Attualmente tutte le mnodifiche vengono salvata subito
if (_changed)
{
ok = yesno_box("Registrare le parite modificate?");
if (ok)
{
app().partite().rewrite();
_changed = FALSE; // Resetta flag di cambiato
}
}
*/
if (ok)
{
app().partite().destroy(); // Distrugge tutte le partite in memoria app().partite().destroy(); // Distrugge tutte le partite in memoria
const char* const pn = "cg2 -0"; const char* const pn = "cg2 -0";
@ -970,10 +954,9 @@ bool TGame_mask::prima_nota(const long nreg)
TString numreg; numreg << "1|" << nreg; TString numreg; numreg << "1|" << nreg;
TMessage msg(pn, MSG_LN, numreg); TMessage msg(pn, MSG_LN, numreg);
msg.send(); // Messaggio di collegamento al movimento nreg msg.send(); // Messaggio di collegamento al movimento nreg
ok = prima_nota.run() == 0; // Lancia la prima nota bool ok = prima_nota.run() == 0; // Lancia la prima nota
fill_partite(); // Rilegge partite fill_partite(); // Rilegge partite
}
return ok; return ok;
} }