The aircraft's tach (<%= hours(@aircraft.tach_time) %>) is already at or past the last reading (<%= hours(last.tach_in) %>), so its hours won't change.
<% end %>Rows with errors are skipped. The next good row absorbs their time, so total hours stay correct. To include them, fix the spreadsheet and upload it again. Rows already imported are skipped automatically.
<% end %> <% end %> <% else %>Nothing to import. <%= link_to "Upload a different file", new_aircraft_flight_import_path(@aircraft), class: "link" %>
<% end %>| Row | Date | Route | Tach | Issue |
|---|---|---|---|---|
| <%= r.line %> | <%= r.date || "—" %> | <%= [r.from, r.to].compact.join(" → ") %> | <%= r.tach_in %> | <%= tag.span(r.status == :error ? "Skipped" : "Warning", class: r.status == :error ? "badge-red" : "badge-orange") %> <%= r.messages.join("; ") %> |
| Row | Date | From | To | Tach | Tach hrs | Hobbs | Hobbs hrs | Oil | Fuel | |
|---|---|---|---|---|---|---|---|---|---|---|
| <%= r.line %> | <%= fmt_date(r.date) %> | <%= r.from %> | <%= r.to %> | <%= r.tach_in %> | <%= hours(r.tach_time) if r.tach_time %> | <%= r.hobbs_in %> | <%= hours(r.hobbs_time) if r.hobbs_time %> | <%= r.oil %> | <%= r.fuel %> | <%= { ok: "", warning: tag.span("warning", class: "badge-orange"), error: tag.span("skipped", class: "badge-red"), duplicate: tag.span("duplicate", class: "badge-gray") }[r.status] %> |