mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Implement address selection persistence using CRM tab metadata to ensure selected shipping addresses and payers are retained throughout the customer selection flow, particularly when navigating from Kundenkarte to reward cart. Changes include: - Create PayerResource and CustomerPayerAddressResource to load selected payer from tab metadata with fallback to customer as payer - Create PayerService to fetch payer data from CRM API with proper error handling and abort signal support - Update BillingAndShippingAddressCardComponent to prefer selected addresses from metadata over customer defaults, with computed loading state - Refactor continue() flow in CustomerDetailsViewMainComponent to load selected addresses from metadata before setting in checkout service - Add adapter logic to convert CRM payer/shipping address types to checkout types with proper type casting for incompatible enum types - Implement fallback chain: metadata selection → component state → customer default for both payer and shipping address This ensures address selections made in the address selection dialogs are properly preserved and applied when completing the customer selection flow, fixing the issue where addresses would revert to customer defaults. Ref: #5411