# `PhoenixKitBilling.Web.InvoiceDetail.Helpers`
[🔗](https://github.com/BeamLabEU/phoenix_kit_billing/blob/0.5.1/lib/phoenix_kit_billing/web/invoice_detail/helpers.ex#L1)

Helper functions for the invoice detail LiveView.

Contains timeline building, history parsing, formatting,
and other template-callable utilities.

# `build_timeline_events`

Builds a sorted timeline of all invoice events.
Returns a list of `%TimelineEvent{}` structs sorted by datetime.

# `format_payment_method_name`

Formats payment method name for display.

# `fully_refunded?`

Checks if invoice is fully refunded.

# `get_credit_note_send_history`

Gets credit note send history from transaction metadata.

# `get_default_email`

Gets the default email address from invoice billing details or user.

# `get_receipt_send_history`

Gets receipt send history from invoice receipt_data.

# `get_send_history`

Gets send history from invoice metadata.

# `parse_datetime`

Parses ISO8601 datetime string to DateTime.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
