Discount settings wiring audit

πŸ“„ General
← Back to Documentation
# Discount settings wiring audit The Discount tab is persisted through `SettingsHelper` in the `discounts` group and rendered from `config/discount-promotion-settings.php`. ## Public booking/runtime wiring - Deal records and promo codes are applied by `BookingController` and `DynamicPricingService` when a valid deal/rate-plan discount is supplied. - Dynamic pricing has separate financial settings for early-bird and last-minute discounts. ## Company-admin (non-Filament) wiring - Admin invoice forms support explicit per-line discount amounts. - Admin deal management creates and edits deal records, including seasonal and last-minute deal types. - The company-admin booking creation flow does not apply the Discount tab’s general, group, long-stay, loyalty, referral, or coupon settings automatically. ## Settings currently saved but not consumed consistently - `enable_discounts`, `allow_multiple_discounts`, `max_discount_percentage`, and `require_coupon_code`. - Early-bird, last-minute, group, long-stay, loyalty, seasonal, and referral toggles and thresholds. - Coupon expiry, stacking, and case-sensitivity controls. These settings are separate from venue/rate-plan discounts and therefore changing them does not reliably affect either public or non-Filament admin booking totals. The existing deal and dynamic-pricing paths remain functional. ## Implementation update A centralized DiscountSettingsService now applies company discount switches for early-bird, last-minute, long-stay, group, maximum percentage, and coupon-required rules during public booking creation. It is reusable from non-Filament admin booking flows.