Modifiche visualizzazione, chissa;' ~~~~
git-svn-id: svn://10.65.10.50/trunk@1753 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6d0979e6dc
commit
5385f4d440
@ -363,7 +363,7 @@ bool Visliq_app::sel_mese_sh1 (TMask_field& f, KEY k)
|
||||
else ok = TRUE;
|
||||
|
||||
if (ok)
|
||||
app().vis_one(month);
|
||||
app().vis_one(month);
|
||||
|
||||
TMask& sm = sh.sheet_mask();
|
||||
|
||||
@ -415,8 +415,9 @@ bool Visliq_app::sel_mese_sh2 (TMask_field& f, KEY k)
|
||||
}
|
||||
else ok = TRUE;
|
||||
|
||||
if (ok) app().vis_one(month);
|
||||
|
||||
if (ok)
|
||||
app().vis_one(month);
|
||||
|
||||
TMask& sv = sh.sheet_mask();
|
||||
|
||||
if (app().look_del(month, sel == (sh.items() - 1) ? 7 : 1))
|
||||
@ -528,7 +529,7 @@ bool Visliq_app::vis_all()
|
||||
break;
|
||||
case K_SAVE:
|
||||
// write values
|
||||
write_general(m);
|
||||
if (m.dirty()) write_general(m);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1403,11 +1404,19 @@ void Visliq_app::write_general(TMask& m)
|
||||
// se modificato rimborso sistemare
|
||||
if (nrimb != orimb && !_from_one)
|
||||
{
|
||||
// check compatibilita'
|
||||
bool ok = (_lim->get_bool("B2") && risc > risd) || nrimb.is_zero();
|
||||
if (!ok)
|
||||
ok = yesno_box("Non risulta diritto al rimborso per il mese %d. Si conferma"
|
||||
" ugualmente il rimborso?", i);
|
||||
// check compatibilita'
|
||||
bool ok = TRUE;
|
||||
|
||||
if (!nrimb.is_zero())
|
||||
{
|
||||
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)
|
||||
{
|
||||
// togli vecchio
|
||||
@ -1466,8 +1475,8 @@ if (was_lim)
|
||||
tt_ln.add(sr5 == 0 ? "" : (sr5 > 0 ? "D" : "C"),5);
|
||||
|
||||
sh.force_update(row);
|
||||
_from_one = FALSE;
|
||||
}
|
||||
_from_one = FALSE;
|
||||
} // for mese liq. (riga sheet)
|
||||
|
||||
// Rileggi array righe vecchie
|
||||
|
Loading…
x
Reference in New Issue
Block a user