Modifiche visualizzazione, chissa;' ~~~~

git-svn-id: svn://10.65.10.50/trunk@1753 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-08-30 10:07:51 +00:00
parent 6d0979e6dc
commit 5385f4d440

View File

@ -363,7 +363,7 @@ bool Visliq_app::sel_mese_sh1 (TMask_field& f, KEY k)
else ok = TRUE; else ok = TRUE;
if (ok) if (ok)
app().vis_one(month); app().vis_one(month);
TMask& sm = sh.sheet_mask(); TMask& sm = sh.sheet_mask();
@ -415,8 +415,9 @@ bool Visliq_app::sel_mese_sh2 (TMask_field& f, KEY k)
} }
else ok = TRUE; else ok = TRUE;
if (ok) app().vis_one(month); if (ok)
app().vis_one(month);
TMask& sv = sh.sheet_mask(); TMask& sv = sh.sheet_mask();
if (app().look_del(month, sel == (sh.items() - 1) ? 7 : 1)) if (app().look_del(month, sel == (sh.items() - 1) ? 7 : 1))
@ -528,7 +529,7 @@ bool Visliq_app::vis_all()
break; break;
case K_SAVE: case K_SAVE:
// write values // write values
write_general(m); if (m.dirty()) write_general(m);
break; break;
} }
} }
@ -1403,11 +1404,19 @@ void Visliq_app::write_general(TMask& m)
// se modificato rimborso sistemare // se modificato rimborso sistemare
if (nrimb != orimb && !_from_one) if (nrimb != orimb && !_from_one)
{ {
// check compatibilita' // check compatibilita'
bool ok = (_lim->get_bool("B2") && risc > risd) || nrimb.is_zero(); bool ok = TRUE;
if (!ok)
ok = yesno_box("Non risulta diritto al rimborso per il mese %d. Si conferma" if (!nrimb.is_zero())
" ugualmente il rimborso?", i); {
if (risc <= risd)
ok = yesno_box("Il risultato IVA non evidenzia crediti nel mese %d. Si conferma "
" il rimborso?", i);
if (!_lim->get_bool("B2") && ok)
ok = yesno_box("Non risulta diritto al rimborso per il mese %d. Si conferma"
" il rimborso?", i);
}
if (ok) if (ok)
{ {
// togli vecchio // togli vecchio
@ -1466,8 +1475,8 @@ if (was_lim)
tt_ln.add(sr5 == 0 ? "" : (sr5 > 0 ? "D" : "C"),5); tt_ln.add(sr5 == 0 ? "" : (sr5 > 0 ? "D" : "C"),5);
sh.force_update(row); sh.force_update(row);
_from_one = FALSE;
} }
_from_one = FALSE;
} // for mese liq. (riga sheet) } // for mese liq. (riga sheet)
// Rileggi array righe vecchie // Rileggi array righe vecchie