diff --git a/ca/ca0800.cpp b/ca/ca0800.cpp index 522467811..0f9812435 100755 --- a/ca/ca0800.cpp +++ b/ca/ca0800.cpp @@ -106,17 +106,6 @@ bool TRiparti_msk::on_field_event(TOperable_field& o, TField_event e, long jolly 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; case F_SHEET: 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)); const int t = atoi(get(F_TIPORIP)); - tot.round(t == 0 ? 2 : 5); + tot.round(5); set(F_SOMMA, tot); real diff = get_real(F_TOTRIP); if (diff != ZERO)