adding logbook page totals

This commit is contained in:
2025-05-16 10:07:15 -05:00
parent 729ab636be
commit b6be7a9d2c

View File

@@ -60,7 +60,7 @@ const durationOfFlight: ColumnDef<ILogbookEntry> = {
headerAlign: 'right' headerAlign: 'right'
}, },
cell: (info: CellContext<ILogbookEntry, unknown>) => cell: (info: CellContext<ILogbookEntry, unknown>) =>
info.getValue() ? parseFloat(info.getValue()).toFixed(1) : '', info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '',
footer: (info) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '' footer: (info) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : ''
} }
const notes: ColumnDef<ILogbookEntry> = { const notes: ColumnDef<ILogbookEntry> = {