PhoenixKit 1.7.0: A billing module for orders and invoices
PhoenixKit 1.7.0 adds a Billing module: currencies, billing profiles, orders and invoices with printable documents, built for payment by bank transfer. Entities can now be exported to JSON files and imported back, and admins can add their own sections to the admin menu.
Billing
Turn it on with the Billing card on the modules page. The Billing Dashboard at /admin/billing shows order and invoice totals, paid revenue and the latest orders and invoices. From there an admin manages:
- currencies, with ISO 4217 codes and exchange rates, and a default currency;
- billing profiles for people and for companies, with VAT number and billing address;
- orders with line items and a status from draft to paid, cancelled or refunded;
- invoices made from orders, with payments, receipts and credit notes recorded as transactions.
Invoices, receipts, credit notes and payment confirmations each have a print page, and four new email templates (Billing Invoice, Billing Receipt, Billing Credit Note and Billing Payment Confirmation) send them. Billing Settings holds the order, invoice and receipt prefixes, Invoice Due Days, the tax switch, your Company Information and the Bank Details printed on invoices. Payments in this release are bank transfers.
Entities to and from files
The entities settings page has a Mirror & Export section. Mirror Entity Definitions and Mirror Entity Data write entity schemas, and optionally their records, to JSON files whenever they change; Export Now does it on demand, by default into priv/entities/. Import from Files reads those files back and shows each entity as new, identical or changed, with a choice to skip, overwrite or merge. The same works from the command line with mix phoenix_kit.entities.export and mix phoenix_kit.entities.import.
Admin menu and users
An app can add its own categories and pages to the admin menu with the :admin_dashboard_categories config, and mix phoenix_kit.gen.admin_page generates such a page. User avatars in the admin now fall back from an uploaded picture to the OAuth provider’s picture, then Gravatar, then coloured initials.
Upgrading
Run mix phoenix_kit.update to apply migration V31. It adds the billing tables, seeds the EUR, USD and GBP currencies and the default billing settings, and creates any billing email templates that are missing. The module stays off until you enable it.
Full release notes: PhoenixKit 1.7.0
1.7.0 · 12 December 2025
Added
- Billing Module (V31 migration)
- Multi-currency support with ISO 4217 codes (EUR, USD, GBP)
- Billing profiles for individuals and companies (EU Standard)
- Orders with line items and status tracking
- Invoices with receipt functionality
- Payment transactions and receipts
- Credit notes support
- Tax rate calculations
- Print templates (invoice, receipt, credit note, payment confirmation)
- Email integration for billing documents
- Admin UI for billing management
- Add file mirror/export system for Entities with import UI
Changed
- Email templates system enhancements for billing documents
- User avatars in admin UI with cascading fallback
- Theme-aware dropdown for email status legend
- Add custom admin dashboard sections
- Update to the language module to use new beamlab dep
- Refactor locale usages
- Fix admin category page template
- Moved all storage files to the modules/storage folder
Merged from upstream
- Posts system (V29 migration) - social posts with comments, likes, tags
- Preferred locale moved to custom_fields (V30 migration)
- Collaborative editing and live updating dashboards for blogging
- IPv4/IPv6 session creation fixes
- Ueberauth igniter setup fixes
PhoenixKit 1.7.0. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.