You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
A user can have one, both, or none of each type of credit
We'll show a user in the sidebar what they have for credits (if any)
User credits can only be used when booking lessons, not programs
Currently, services don't have a duration associated with them (and each instance could have a different duration), so it's much more difficult to get price per minute than with lesson services.
Applying a code will happen via a pop-up.
When booking:
Will first look for monetary credit and use it if it's there.
Will look for time credit and use it if it's there.
If there's no credit at all, it'll book as usual.
Promo code admin
Create new code
Delete a promo code
Only time promo codes can be deleted
Time promo codes will expire 1 year after being applied to a user's account
Monetary promo codes cannot expire
Edit a promo code
Cancellations
When a non-recurring lesson is cancelled that has been paid for, a time credit is issued
When an instance of a recurring lesson is cancelled that has been paid for, a time credit is issued
When an entire series of a recurring lesson is cancelled, any paid services will trigger a time credit being issued
Requirements
New users_credits table
Interface for managing credits
Searching through user credits
Interface for users to see how many credits they have
Booking service update for using credits if they exist
Show final price for the service
Handle amount and amount owed in the users_appointments table
Show amount due in the details pop up
Redeem promo code pop-up
Cancellations
Add hourly credit for paid recurring lessons
Add hourly credit for paid non-recurring lessons
Re-credit used user credits if it was used
Estimate
20 hours
Actual Time
30 hours
The text was updated successfully, but these errors were encountered:
Overview
Requirements
users_credits
tableusers_appointments
tableEstimate
20 hours
Actual Time
30 hours
The text was updated successfully, but these errors were encountered: