Fix unused 'vs' parameter in occupancy total fn
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b53df5b6a5
commit
74d238576d
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ export function MultiDayReport() {
|
|||
return s.roomsOccupied > 0 ? s.netAccom / s.roomsOccupied : 0
|
||||
}),
|
||||
fmt: (v: number) => v ? fmtGBP(v) : '—',
|
||||
total: (vs: number[]) => {
|
||||
total: (_vs: number[]) => {
|
||||
const totalNetAccom = dates.reduce((s, d) => s + (occStats.byDate[d]?.netAccom ?? 0), 0)
|
||||
const totalRooms = dates.reduce((s, d) => s + (occStats.byDate[d]?.roomsOccupied ?? 0), 0)
|
||||
return totalRooms > 0 ? fmtGBP(totalNetAccom / totalRooms) + ' avg' : '—'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue