📄
Business

Invoicing & Billing

Admin Settings

Professional invoices and subscription management

Overview

Generate invoices from orders or standalone. Supports partial payments, PDF generation, and email delivery. Integrated subscription billing with trial periods and automatic renewal.

Design Considerations

UX patterns and visual design notes for this feature:

  • Invoice view should be clean and printable
  • Payment status clearly visible
  • Overdue invoices highlighted
  • Subscription status with next billing date
  • Easy payment recording interface

Key Benefits

What makes this feature stand out:

  • Create invoices from shop orders
  • Standalone invoice creation
  • PDF invoice generation
  • Partial payment tracking
  • Automatic overdue detection
  • Recurring subscriptions
  • Trial period support
  • Stripe subscription integration
Technical Note

InvoiceHelper for invoice operations. Invoice workflow: draft → sent → viewed → paid. Subscription workflow: trialing → active → past_due → canceled. Links to PaymentHelper for transactions.

Helpers
InvoiceHelper
Models
InvoiceInvoiceItemInvoicePaymentSubscription
Database Tables
invoiceinvoice_iteminvoice_paymentsubscription

Configuration

Config Relationship Legend
DB overrides params.php🔗 DB related setting📋 DB stores value only
params.php Configuration

Config path: params['invoicing']

params['features']['invoicing'] => trueparams['invoicing']['numberPrefix'] => 'INV'params['invoicing']['dueDays'] => 30params['invoicing']['currency'] => 'EUR'params['invoicing']['pdf']['enabled'] => trueparams['invoicing']['subscriptions']['trialDays'] => 14
Note: Configure company details in invoicing.company for invoice headers. PDF generation requires mpdf/mpdf package.