SignInTableGuest.vue

This component display the guest registration table as part of the Sign-In App at /signinsheet
Used Components
Used by
Used Stores
Functions
saveGuestFee
Saves the updated guest fee for a specific guest item in the database.
Parameters:
item: - The guest item whose guest fee should be saved.item.documentId: - The document ID of the guest item.item.guest_fee: - The new guest fee value.
toggleCheckIn
Toggles the sign-in status of a guest entry and displays a snackbar notification. This function asynchronously calls the toggleCheckIn method from signInGuestsStore to change the sign-in/sign-out status of the given entry. After the status is toggled, it shows a snackbar notification with the result message and color.
Parameters:
entry: - The guest entry whose sign-in status should be toggled.
deleteEntry
Deletes a guest registration and displays a snackbar notification after the confirmation dialog. It asynchronously calls the deleteSignInEntry method from signInGuestsStore to delete the given entry. After the deletion is complete, it shows a snackbar notification with the result message and color.
Parameters:
entry: - The guest registration which should be deleted.
updateSignInEntry
Updates a guest registration and displays a snackbar notification. This function asynchronously calls the updateSignInEntry method from signInGuestsStore to update the given entry. After the update is complete, it shows a snackbar notification with the result message and color.
Parameters:
entryId: - The unique identifier of the registration to be updated.type: - The type of data to be updated. Can be 'guest_fee' or 'payment_type'.data: - The data containing the updated details for the entry.
showPhone
Temporarily displays the phone number of a specific item for 15 seconds. The item object must contain an id property.
Parameters:
item: - The member entry whose phone number should be shown.
Reactivity
headers (computed)
Function removes the guest_fee and payment_type headers from the table if the logged-in user is the Hare
hasRun (computed)
No description.
filteredEntries (computed)
Toogles the entries in the table data based on the value of showAll and creates a list of all guests or only guests still not signed-in . Used for the filter function of the Sign-In App
totalGuests (computed)
Computes the total number of guests at the runsite
totalCash (computed)
Computes the total amount of cash collected
totalDuitNow (computed)
Computes the total amount of money collected using DuitNow
guestsStillOut (computed)
Computes the total number of guests not signed-in
runInfo (computed)
Returns an array of objects containing the icon and value for actual run info item.
