Skip to content

ExpensesTable.vue ​

Image of the component

This component renders the cash expenses table as part of the Sign-In App at /signinsheet Beer & Subs tab.

📄 View source on GitHub

Used by ​

Used Stores ​

Functions ​

deleteEntry ​

Deletes an cash expense entry using the deleteCashExpenseEntry method of the cashExpensesStore. Shows a confirmation dialog before deleting the entry. After deletion, shows a snackbar notification with the result.

Parameters:

  • entry: - The cash expense entry to be deleted.

Reactivity ​

hasRun (computed) ​

This function checks if we have a valid run

totalCash (computed) ​

Calculates the total amount of cash collected.

totalCashAtHand (computed) ​

Calculates the total cash at hand, i.e., cash income (guest fees, beer and subscription sales) minus cash expenses.

Released under the MIT License.