SIT-13150: Apply Single Event Credit

How to Use This Feature

Apply Credits Feature Summary

Overview

----------------

The Apply Credits feature allows admins to apply account credits to single event purchases.

Behavior

  • On page load:
  • + Ensure customer name comes before customer email.

  • On type customer name:
  • + Ensure drop down list appears and filters as you type.

    + Display customer name and email in subtext, with correct formatting.

  • On select customer from list:
  • + Populate remaining inputs with recorded customer info.

    + Display account credit balance if available.

  • On select Apply Account Credits:
  • + Allow selection of credits (deposit, refund, or create reason).

    + Validate deposit/refund details (event name, ticket type, amount, date).

    + Ensure admin can enter flat value and it doesn't exceed available credit balance.

  • On click Enter Amount:
  • + Allow flat value input and validation.

  • On click Apply Credits Button:
  • + Re-containerize button.

    + Populate credits applied line item with selected amount.

    Transaction Handling

  • If successful:
  • + Apply account credits to transaction.

    + Update customer's account credit balance.

  • If transaction after credit applied is <0:
  • + Log transaction (no need to send through Adyen).

  • If transaction failed:
  • + Reset account credits to customer profile.

    Images and Designs

    🔗 figma-1767211039223-0.png - View Design
    https://www.figma.com/board/cUCAQQQgCx9uAvVxaXTYPk/Group-Deposits?node-id=0-1&p=f&t=VfJ91wW72Thwd8n9-0|https://www.figma.com/board/cUCAQQQgCx9uAvVxaXTYPk/Group-Deposits?node-id=0-1&p=f&t=VfJ91wW72Thwd8n9-0|smart-link]
    🔗 figma-1767211039223-1.png - View Design
    https://www.figma.com/make/Du82KC7OGBk2JhkOvSMcq7/Apply-Credits-Flow?fullscreen=1]

    Additional Information

    Status: Deployed
    🏠 Home View in Jira