Apply Credits Feature Summary
Overview
The Apply Credits feature allows admins to apply an account credit to a single event purchase.
Behavior
+ Ensure customer name comes before customer email
+ Ensure drop down list appears and results filter as you type
+ Display customer first & last name on H1, and email on H2
+ Populate remaining inputs with customer info (email, phone)
+ If account credits available, display Apply Account Credits section with balance displayed
+ Ensure admin can enter flat value
+ Validate flat value cannot exceed available account credit balance
+ Update selected credits line item and maximum applicable line item
+ Validate input functionality for flat value
+ Re-containerize button
+ Populate credits applied line item under order summary
Transaction Handling
+ Apply account credits to transaction
+ Update customer's account credit balance
+ Reset account credits to customer profile