SalesTable.vue

This component renders the onsite sales table as part of the Sign-In App at /signinsheet Beer & Subs tab.
Used Components
Used by
Used Stores
Functions
deleteEntry
Deletes an onsite sales entry using the deleteOnsiteSalesEntry method of the onsiteSalesStore. Shows a confirmation dialog before deleting the entry. After deletion, shows a snackbar notification with the result.
Parameters:
entry: - The onsite sales entry to be deleted.
updateSignInEntry
Updates an onsite sales entry's payment type. This function utilizes the updateOnsiteSalesEntry method from the onsiteSalesStore to update the specific entry identified by entryId with the provided data. After the update, a snackbar notification is displayed with the result message and color.
Parameters:
entryId: - The unique identifier of the entry to be updated.data: - The data containing the updated details for the entry.
showItemDetail
Temporarily displays item details for a specific item.
Parameters:
item: - The item whose details are to be shown.
Reactivity
hasRun (computed)
This function checks if we have a valid run
totalBeerSold (computed)
Calculates the total quantity (number of cans) of beer sold.
totalCash (computed)
Calculates the total amount of cash collected.
totalDuitNow (computed)
Calculates the total amount of money collected by DuitNow.
totalSalesItems (computed)
Calculates the total number of sold items.
totalCashAtHand (computed)
Calculates the total cash at hand, i.e., cash income (guest fees, beer and subscription sales) minus cash expenses.
runInfo (computed)
Returns an array of objects containing the icon and value for actual run info item.
