Global Documentation
Overview Workspace Sign In
Docs Invoices & Billing Creating and Sending Invoices
Available on: Standard, Growth, Enterprise

Creating and Sending Invoices

12 min read 74 views Updated Nov 27, 2026
✨
Have questions about this article?

Ask WIE Brain to explain step-by-step or walk you through configuration.

1. Overview & Purpose

The Invoices & Billing Module in ITSTHS Workspace serves as the primary revenue accounting engine for business operations. Invoices represent legally binding billing demands issued to clients for products delivered, professional services rendered, or project milestones achieved.

Invoices maintain full bidirectional integration with your Client Directory, Item Catalog, Tax Configurations, Multi-Company Entities, Projects, and Financial Reporting Ledgers. Every invoice created tracks line-item sub-totals, applicable multi-level taxes, order-level discounts, payment statuses, and audit activity history.


2. What This Feature Does

  • Manual Invoice Generation: Directly create tailored invoices for client accounts with custom line items, rates, and terms.
  • Automated Document Conversion: One-click conversion from accepted Estimates, Proposals, Contracts, or Customer Orders into fully populated sales invoices.
  • Multi-Tax & Discount Engine: Apply item-level taxes, up to three invoice-level taxes, and percent or fixed discounts (applied before or after tax).
  • Client Portal Integration: Instantly publish invoices to the secure client portal for online viewing, PDF download, and digital credit card/bank payments.
  • Multi-Company Billing Entity Support: Issue invoices under distinct legal operating entities with customized tax identification numbers, address headers, and branding logos.
  • Audit & Lifecycle Tracking: Track every state transition from initial draft to final payment, with automatic overdue alerts and activity logs.

3. When to Create an Invoice

In ITSTHS Workspace, sales invoices are typically created during the following business events:

  1. Direct Sales / Retainer Billing: When billing a client directly for ad-hoc services, products, or monthly consulting retainers.
  2. Estimate / Quotation Acceptance: When a client accepts a cost Estimate, convert the estimate directly into an active invoice.
  3. Proposal Fulfillment: When an accepted Proposal contains billable scope items ready for client invoicing.
  4. Project Milestone Completion: When a project deliverable or fixed-fee milestone is completed and approved for billing.

4. Before You Begin (Prerequisites)

Prior to creating a sales invoice, verify that the following workspace prerequisites are configured:

  • Active Client Account: At least one active non-lead client organization must exist in Workspace → Clients.
  • Company Entity Setup: Your legal company profile and default billing address must be configured in Workspace → Settings → Company.
  • Item Catalog (Recommended): Pre-configure billable products and service items in Workspace → Sales → Items for rapid line-item selection.
  • Tax Rules (Optional): Configure local sales tax rules (e.g., VAT, GST, Sales Tax) in Workspace → Settings → Taxes.

5. Required Permissions

Access to create and manage invoices is controlled via Role-Based Access Control (RBAC) in Workspace → Settings → Roles:

  • Admin Users: Full access to create, edit, view, delete, and process payments for all invoices across all clients.
  • Staff Members: Requires permission flag invoice set to All, Specific, or Assigned Only.
  • Invoice Editing Check: Creating or editing an invoice requires the internal permission can_edit_invoices(). If a staff member lacks edit permission, the + Add Invoice button is hidden and direct requests redirect to /forbidden.
  • Client Portal Contacts: Clients with can_client_access("invoice") enabled can view their own company invoices in read-only mode and execute payments.

6. Plan Availability

Available on: Standard, Growth, and Enterprise plans.

7. Where to Find It

To navigate to the Invoices index in ITSTHS Workspace:

Workspace → Sales → Invoices

To open the creation modal directly, click the + Add Invoice button located in the top-right toolbar of the Invoices index page.


8. Understanding the Screen

[SCREENSHOT: invoice-index-table.png]

Invoices Index Page

The main Invoices index screen displays a comprehensive table of all workspace invoices with real-time filtering, search, and action controls:

  • Status Filter Tabs: Filter invoices by state (All, Draft, Unpaid, Overdue, Partially Paid, Paid, Cancelled).
  • Currency Selector: Filter table views by client transaction currency.
  • Types Dropdown: Toggle between standard Invoices and Credit Notes.
  • Search Bar: Instant full-text search across Invoice ID, Client Name, Project Title, and Custom Fields.
  • Export Actions: Export current table view to Excel or PDF format.

9. Field-by-Field Reference Dictionary

[SCREENSHOT: invoice-create-modal.png]

Field Name Form Control Required? Description & Allowed Values System & Business Effect
invoice_client_id Select2 Dropdown Required Select target client company. Leads are excluded automatically. Populates billing address, primary contact, currency, and filters eligible projects.
invoice_project_id Select2 Dropdown Optional Select specific client project linked to the chosen client. Associates invoice revenue with project budget and indicative margin reports.
invoice_bill_date Datepicker Required Date when the invoice is officially issued (Format: YYYY-MM-DD). Sets accounting transaction date and financial period assignment.
invoice_due_date Datepicker Required Payment deadline date (Format: YYYY-MM-DD). Must be ≥ Bill Date. Used by automated cron jobs to trigger overdue status transitions and payment reminders.
tax_id Dropdown Optional Primary invoice-level tax rule (e.g., VAT 10%). Calculates primary tax amount on subtotal.
tax_id2 Dropdown Optional Secondary invoice-level tax rule (e.g., State Sales Tax 5%). Calculates secondary tax amount on subtotal.
company_id Dropdown Required Select legal operating company entity issuing the invoice. Determines company logo, tax registration number, and bank transfer IBAN shown on PDF.
display_id Text Input Optional Custom invoice reference number (e.g., INV-2026-0042). Overrides default auto-increment sequence when ID editing is enabled in settings.
labels Multi-Select Optional Categorization tags (e.g., Urgent, Retainer, Enterprise). Enables quick filtering in invoice reports.
invoice_note Textarea Optional Payment instructions, bank wire info, or custom notes. Printed directly at the bottom footer of client invoice PDFs.
files File Uploader Optional Attach supporting documents (contracts, specs, PO receipts). Files stored permanently and accessible via client portal attachments.

10. Step-by-Step Procedure: Creating & Sending an Invoice

Step 1 — Open the Invoice Creation Form

  1. Navigate to Workspace → Sales → Invoices.
  2. Click the + Add Invoice button in the top-right toolbar.

Step 2 — Configure Invoice Header Details

  1. In the modal window, select the target customer from the Client dropdown.
  2. (Optional) If billing against a project, select the associated Project.
  3. Confirm or adjust the Bill Date and Due Date.
  4. Select your issuing legal entity from the Company dropdown.
  5. (Optional) Select applicable invoice-level Taxes and Labels.
  6. Click Save to generate the initial invoice record.

Step 3 — Add Line Items & Catalog Products

[SCREENSHOT: invoice-line-items-editor.png]

  1. After saving the invoice header, you will be directed to the Invoice Detail View.
  2. Click + Add Item to open the line-item editor.
  3. Choose an existing item from your Item Catalog or type a custom item title and description.
  4. Enter the Quantity and Unit Rate.
  5. (Optional) Select item-specific tax rules if item tax is enabled.
  6. Click Save Line Item. Repeat for all billable items.

Step 4 — Configure Order Discounts

  1. In the Invoice Totals summary box, click Edit Discount.
  2. Select Discount Amount Type: Percentage (%) or Fixed Amount ($).
  3. Select Discount Calculation Mode:
    • Before Tax: Subtotal is discounted prior to calculating tax.
    • After Tax: Taxes are calculated on Subtotal first, then discount is subtracted.
  4. Click Save Discount.

Step 5 — Review & Send to Client

[SCREENSHOT: invoice-pdf-preview.png]

  1. Click PDF Preview to verify the formatted document layout, company logo, and line item calculations.
  2. Click Send Invoice to open the email dispatch modal.
  3. Select client contact email recipients, customize message text, and verify the PDF attachment checkmark.
  4. Click Send Email. The invoice status automatically updates from Draft to Unpaid.

11. Understanding Mathematical Calculations (Taxes & Discounts)

ITSTHS Workspace executes strict precision financial calculations for all invoices:

Formula 1 — Item Subtotal

$$\text{Item Subtotal} = \text{Quantity} \times \text{Unit Rate}$$

Formula 2 — Invoice Subtotal

$$\text{Invoice Subtotal} = \sum (\text{Item Subtotals})$$

Formula 3 — Discount Before Tax

$$\text{Discounted Base} = \text{Subtotal} - \text{Discount Amount}$$

$$\text{Tax Amount} = \text{Discounted Base} \times \left( \frac{\text{Tax Rate}}{100} \right)$$

$$\text{Final Invoice Total} = \text{Discounted Base} + \text{Tax Amount}$$

Formula 4 — Discount After Tax

$$\text{Tax Amount} = \text{Subtotal} \times \left( \frac{\text{Tax Rate}}{100} \right)$$

$$\text{Final Invoice Total} = (\text{Subtotal} + \text{Tax Amount}) - \text{Discount Amount}$$


12. Invoice Status & State Lifecycle

Every invoice progresses through a deterministic state machine:

Status State Badge Color Trigger / Condition System Behavior & Restrictions
Draft Gray Newly created invoice; not yet sent to client. Fully editable. Hidden from client portal unless published.
Unpaid Yellow / Warning Invoice sent to client; $0.00 payment logged. Visible in client portal. Payment gateways enabled.
Partially Paid Blue / Info Logged Payment Amount < Total Invoice Amount. Remaining balance displayed. Incremental payments allowed.
Paid Green / Success Total Payments ≥ Final Invoice Total. Invoice locked. Financial income logged in general ledger.
Overdue Red / Danger Today > Due Date AND status is Unpaid/Partially Paid. Triggers automated cron payment reminder emails.
Cancelled Dark Slate Manually marked as Cancelled by administrator. Removed from income totals. Preserved for audit trail.

13. Validation Rules & Error Messages

When submitting invoice forms, CodeIgniter enforces strict server-side validation. Common error states include:

  • The Client field is required. — Occurs if invoice_client_id is unselected or missing.
  • The Bill Date field is required. — Occurs if the bill date input is empty.
  • The Due Date field is required. — Occurs if the due date input is empty.
  • Access Denied / Forbidden — Occurs if user lacks can_edit_invoices() permission or attempts to modify a paid locked invoice without admin privileges.

14. Edge Cases & Troubleshooting

  • Client Currency Swapping: If a client's assigned currency is changed after invoices are created, historical invoices maintain their original currency rate. New invoices automatically adopt the updated client currency.
  • Editing ID Locks: Custom invoice ID editing (display_id) is restricted unless enable_invoice_id_editing is set to 1 in Workspace Settings.
  • Deleting Invoices with Payments: Invoices with recorded payments cannot be deleted directly. All associated payments must be unlinked or refunded before an invoice can be deleted.

15. Best Practices for Invoicing

  1. Use Item Catalog: Pre-define standard services in Sales → Items to maintain consistent pricing and reporting.
  2. Set Realistic Due Dates: Align invoice due dates with clear payment terms (e.g., Net 15 or Net 30) to leverage automated overdue reminders.
  3. Verify Tax Configurations: Ensure tax rates (VAT/Sales Tax) are verified under Settings → Taxes before issuing client invoices.

16. Frequently Asked Questions (FAQs)

Q: Can I turn an accepted Estimate into an Invoice automatically?
A: Yes. On any accepted Estimate detail view, click Create Invoice. The system populates the client, line items, taxes, discounts, and terms automatically.

Q: How do client payments get recorded against an invoice?
A: Payments can be recorded manually by staff via the Record Payment modal, or processed automatically when clients pay online via Stripe, PayPal, or Bank Transfer through the Client Portal.

Q: What happens if a client pays less than the full invoice total?
A: The invoice status transitions to Partially Paid, displaying the remaining balance due on the invoice header and client portal.


17. Related Features & Workflow Manuals

To explore related billing and accounting workflows, refer to the following dedicated manuals:

Next Guide → Recording Payments & Credit Notes