nss-evening-cohort-12 / nutshell-elk

Renaissance Faire
0 stars 3 forks source link

# Display Staff Reporting #106

Open MarkyAaronYoung opened 4 years ago

MarkyAaronYoung commented 4 years ago

User

As a user, when I click on an event's financial reporting page, I should be able to see the total costs of a specific component.

AC

When a user is authenticated And on an events page's financial reporting page Then they should be able to see a breakdown of total costs by a specific component (such as staff)

Dev Notes

getAllStaffByEventId(eventId) .then((eventWithStaff) => { const staffCost = eventWithStaff.reduce((accumulator, staff) => { return accumulator + staff.price }, 0); }) .catch((err) => console.error('error in getAllStaffByEventId', err))