feat/promotion-code #5

Merged
kbe merged 8 commits from feat/promotion-code into develop 2025-09-29 18:41:08 +00:00
Owner

Add promotion code to order. Promoters can now generate discount codes and users apply them on order.

Add promotion code to order. Promoters can now generate discount codes and users apply them on order.
kbe added 8 commits 2025-09-29 18:41:02 +00:00
- Fixed libvips package name from libvips-16t64 to libvips42 for proper installation
- Moved gem install rails to build stage where build tools are available
- Changed to ruby slim base image for smaller final image size
- Improved layer caching by organizing dependency installation
- Enhanced security with non-root user
- Added jemalloc configuration for better memory management
- Cleaned up build artifacts to reduce image size

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Add 3 events fetched from Bizouk:
- Konpa With Bev - Cours De Konpa Gouyad (Oct 3)
- La Plus Grosse Soirée Caribbean Groove (Oct 3-4)
- LA BELLE ÉPOQUE PAR SISLEY ÉVENTS - OCTOBRE (Oct 4-5)

Each event includes appropriate ticket types with pricing and age restrictions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Changed discount amount input from cents to euros in new and edit forms
- Added decimal support with step="0.01" for precise euro amounts
- Updated form labels and help text to reflect euro display
- Added value conversion from stored cents to euros for editing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
I added the features for users to use promotion code
and for promoters to create on their events.
May be rewrite to discount code?
- Add comprehensive promotion code methods to Order model
- Implement Stripe invoice integration for promotion code discounts
- Display promotion codes on invoice with proper discount breakdown
- Fix and enhance all unit tests for promotion code functionality
- Add discount calculation with capping to prevent negative totals
- Ensure promotion codes work across entire order lifecycle

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
kbe merged commit aacc9398d0 into develop 2025-09-29 18:41:08 +00:00
kbe deleted branch feat/promotion-code 2025-09-29 18:41:12 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kbe/aperonight#5
No description provided.