<%# A subtotal row: totals the lines above it, back to the previous subtotal (QuickBooks works out the amount) %> <% name = "estimate[lines][#{key}]" %> <%= sprite_icon('reorder') %> <%= number %> <%= hidden_field_tag "#{name}[id]", line.id, id: nil %> <%= hidden_field_tag "#{name}[kind]", 'subtotal', id: nil %> <%= l(:label_subtotal) %>