Skip to content

Commit

Permalink
Also adapt excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Apr 1, 2024
1 parent dda3ff2 commit 4095600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/material/useMaterialViewHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import i18n from '@/plugins/i18n/index.js'
import dayjs from '@/common/helpers/dayjs.js'
import { apiStore } from '@/plugins/store/index.js'
import { materialListFromRoute } from '@/router.js'
import shortScheduleEntryDescription from './shortScheduleEntryDescription.js'

function generateFilename(camp, materialList) {
const description = materialList
Expand Down Expand Up @@ -47,7 +48,7 @@ async function getSheets(camp, collection, materialList) {
const activity = await getActivity(camp, materialItem)
const scheduleEntries = activity
?.scheduleEntries()
.items.map((item) => item.number)
.items.map((item) => shortScheduleEntryDescription(item, i18n.tc.bind(i18n)))
.join(', ')
data.push([
materialItem.quantity,
Expand Down

0 comments on commit 4095600

Please sign in to comment.