Drop Readout.value decimal type in favor of float

This commit is contained in:
2026-04-25 16:39:54 +02:00
parent 97e7bfedf7
commit 3ac3a6f13c
5 changed files with 45 additions and 6 deletions

View File

@@ -7,9 +7,7 @@
<%= form.hidden_field :quantity_id %>
</td>
<td>
<%= form.number_field :value, required: true,
size: readout.type_for_attribute(:value).precision / 2,
autofocus: readout_counter == 0 %>
<%= form.number_field :value, required: true, autofocus: readout_counter == 0 %>
</td>
<td>
<%= form.collection_select :unit_id, @user_units, :id,