mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Consolidate the separate continueReward() and continue() methods in the customer details view into a single unified continue() method that handles both reward selection and regular checkout flows. Key changes: - Remove separate continueReward() method - Move hasReturnUrl() check to end of continue() method - Share all validation and setup logic between both flows: * Customer validation (canAddCustomer, canAddShippingAddress) * Destination updates * Guest with order checks * Customer/buyer/payer/shipping setup * Notification channel updates - Diverge only at navigation step based on hasReturnUrl() - Simplify template from 3 conditional buttons to 1 unified button with conditional content Benefits: - Reduced code duplication (~39 lines removed) - Consistent validation for both flows - Enhanced reward flow with full business rule checks - Single point of maintenance - Cleaner template with reduced conditional complexity Related to #5262 (Prämienshop-Modus)