Patch level : 10.0 patch 814
Files correlati : ca0.exe Ricompilazione Demo : [ ] Commento Aggiunto un totale da ripartire sula tabelle di ripartizione che, se compilato, serve per aggiungere una eventuale differenza all'ultima riga della ripartizione (rif. Habilita) git-svn-id: svn://10.65.10.50/branches/R_10_00@20968 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cc0f9b1f03
commit
f4e48f28ec
@ -106,17 +106,6 @@ bool TRiparti_msk::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
|
|
||||||
sf.force_update();
|
sf.force_update();
|
||||||
}
|
}
|
||||||
if (e == fe_close && atoi(o.get()) == 0)
|
|
||||||
{
|
|
||||||
/* TSheet_field& sf = sfield(F_SHEET);
|
|
||||||
real tot;
|
|
||||||
FOR_EACH_SHEET_ROW(sf, i, row)
|
|
||||||
tot += real(row->get(0));
|
|
||||||
tot.round(2);
|
|
||||||
if (tot != CENTO) */
|
|
||||||
// if (get_real(F_SOMMA) != CENTO)
|
|
||||||
// return error_box(TR("Il totale delle percentuali di ripartizione deve essere 100"));
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case F_SHEET:
|
case F_SHEET:
|
||||||
if (e == fe_init || (e == se_leave && o.dirty()))
|
if (e == fe_init || (e == se_leave && o.dirty()))
|
||||||
@ -127,7 +116,7 @@ bool TRiparti_msk::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
tot += real(row->get(0));
|
tot += real(row->get(0));
|
||||||
const int t = atoi(get(F_TIPORIP));
|
const int t = atoi(get(F_TIPORIP));
|
||||||
|
|
||||||
tot.round(t == 0 ? 2 : 5);
|
tot.round(5);
|
||||||
set(F_SOMMA, tot);
|
set(F_SOMMA, tot);
|
||||||
real diff = get_real(F_TOTRIP);
|
real diff = get_real(F_TOTRIP);
|
||||||
if (diff != ZERO)
|
if (diff != ZERO)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user