What This Screen Does
This is where you view and manage all your discount vouchers in one place. Think of it like a filing cabinet for all the special discount codes you have created. You can see each voucher’s name, how much of a discount it gives, how many uses it has left, and when it is valid. From here you can also search for vouchers, create new ones, edit existing ones, or delete ones you no longer need.
How to Get There
Open the dashboard.
In the left-hand menu, click Vouchers.
You are now on the Voucher List screen.
Step-by-Step Guide
1. View the Voucher Table
When the page loads, you will see a table showing all your discount vouchers. Each row represents one voucher and displays the following information:
Column | What It Shows |
Name | The name you gave to the voucher when you created it. |
Discount amount | A fixed monetary discount (for example, 50 DKK off). Blank if the voucher uses a percentage instead. |
Discount percentage | A percentage-based discount (for example, 10% off). Blank if the voucher uses a fixed amount instead. |
Count | A progress bar showing how many uses are left out of the total. You will see text like “5 left” or “none available”. |
Single-use | Shows “Yes” if the voucher can only be used once, or “No” if it can be used multiple times. |
Valid from | The date when the voucher starts being valid. |
Valid to | The date when the voucher expires. May be blank if there is no end date. |
2. Search for a Voucher
At the top of the table you will find a search bar.
Type part of a voucher name to filter the list.
The table updates automatically as you type.
To clear the search, delete the text in the search bar.
3. Sort the Table
Click on any column header (Name, Discount amount, etc.) to sort the table by that column.
Click the same header again to switch between ascending and descending order.
A small arrow icon next to the column name shows the current sort direction.
4. Change Rows Per Page
At the bottom of the table, use the Rows per page dropdown to choose how many vouchers appear on each page (for example, 5, 10, or 25).
Use the page navigation arrows to move between pages.
5. Toggle Dense Mode
At the bottom of the table there is a Dense toggle.
Turn it on to make the table rows shorter (more compact), so you can see more vouchers at once.
Turn it off to make rows taller and easier to read.
6. Create a New Voucher
Click the New voucher button in the top-right corner of the page.
This takes you to the voucher creation screen where you can set up a new discount voucher.
7. Edit a Voucher
Find the voucher you want to change in the table.
Click the three-dot menu (⋮) on the right side of that row.
Select Edit from the dropdown menu.
You will be taken to the edit screen for that voucher.
8. Delete a Voucher
Find the voucher you want to remove.
Click the three-dot menu (⋮) on the right side of that row.
Select Delete from the dropdown menu.
A confirmation dialog will appear asking “Are you sure want to delete?”
Click the red Delete button to confirm, or close the dialog to cancel.
You will see a green “Deleted!” notification if the deletion was successful.
What Happens Behind the Scenes
When the page loads:
You navigate to /vouchers
|
v
Page reads URL query parameters (rowsPerPage, page, orderBy, order, search)
|
v
API call: GET /api/discount-vouchers
with params: pageSize, pageNumber, sortBy, direction, search
|
v
Voucher list is stored in Redux state
|
v
Table renders with the returned voucher data
When you delete a voucher:
You click "Delete" on a voucher row
|
v
Confirmation dialog appears
|
v
You click the red "Delete" button
|
v
API call: DiscountVoucherService.remove({ id })
|
v
Success notification "Deleted!" appears
|
v
API call: GET /api/discount-vouchers (refresh the list)
|
v
Table updates without the deleted voucher
Troubleshooting
“I do not see any vouchers in the table”
If the table is empty, you may not have created any vouchers yet. Click New voucher to create your first one.
If you have a search term in the search bar, try clearing it — your vouchers may be filtered out.
Make sure you have the correct gym/location selected in the dashboard. Vouchers are tied to the currently selected gym.
“The table shows a loading skeleton that never goes away”
This usually means the API request is taking too long or has failed.
Try refreshing the page in your browser.
Check your internet connection.
If the problem continues, contact your administrator — the voucher service may be experiencing issues.
“I searched for a voucher but it does not show up”
The search looks for vouchers by name. Make sure you are typing the correct name.
Search is case-sensitive in some cases — try different capitalization.
The voucher might have been deleted. Ask a colleague if they removed it.
“I accidentally deleted a voucher”
Unfortunately, deleted vouchers cannot be recovered from this screen.
You will need to create a new voucher with the same settings.
To prevent accidental deletions, always read the confirmation dialog carefully before clicking Delete.
“The discount amount or percentage column is blank for some vouchers”
This is normal. A voucher uses either a fixed discount amount or a percentage — not both.
If you see a value in the “Discount amount” column, the “Discount percentage” column will be blank, and vice versa.
“I cannot find the Edit or Delete options”
Click the three-dot menu icon (⋮) on the far right side of the voucher row.
A small popup menu will appear with the Edit and Delete options.
If the icon is not visible, try scrolling the table to the right.
“The page number resets when I search”
This is expected behavior. When you type a new search term, the table goes back to the first page so you see results from the beginning.
Your rows-per-page and sort settings are preserved.
“I see ‘none available’ in the Count column”
This means all clips (uses) for that voucher have been consumed.
If the voucher should still be usable, you may need to edit it and increase the clip count.
