Custom Fields and Field Mapping in LeanLaw
How to create and use custom fields on matters and clients in LeanLaw — and how to map LeanLaw data to QuickBooks Online fields for consistent financial reporting.
Custom fields let your firm capture additional structured data on clients, matters, and users beyond LeanLaw's default fields. Field mapping controls how LeanLaw data flows into QuickBooks Online — including class tracking and income account assignment.
Custom Fields Overview
LeanLaw supports custom fields on three objects:
|
Object |
Use Cases |
|
Matters |
Case number, venue, opposing counsel, case phase, client source, internal reference codes |
|
Clients |
Client tier, referral source, industry type, account manager, client since date |
|
Users |
Bar number, department, employment type, billing budget, office location |
Three field types are supported:
- Dropdown — Select from a predefined list. Best for controlled vocabulary (e.g., Case Phase: Discovery / Trial / Settled).
- Text — Free-form text entry. Best for codes, names, or short descriptions.
- Number — Numeric values. Best for budgets, reference numbers, or counts.
Creating Custom Fields for Matters
- Click the gear icon ⚙️ and open Settings.
- Navigate to Firm Setup → Custom Fields (or the custom fields section).
- Click Add Custom Field.
- Select the object: Matter, Client, or User.
- Choose the field type: Dropdown, Text, or Number.
- Enter the field name and, for Dropdowns, add the list options.
- Click Save. The field now appears in the matter/client/user form.
|
💡 Tip: Custom field data appears in the Matter List view and can be included in custom reports. Define fields before creating matters to ensure consistent data capture from the start. |
Using Custom Fields on Matters
- Open any matter.
- Scroll to the Custom Fields section in the matter details.
- Enter or select the values for your custom fields.
- Save the matter.
Custom Fields on Invoices
Matter custom fields can optionally be displayed on client invoices — useful for including client reference numbers, matter codes, or other identifiers that clients need on invoices.
- Go to Settings → Invoice Templates.
- Edit your invoice template.
- Enable the custom field(s) you want displayed on invoices.
- Save the template.
|
📋 Note: Custom fields must be populated on each matter for them to appear on that matter's invoices. A blank custom field will display as blank or be hidden depending on your template settings. |
QuickBooks Online Field Mapping
LeanLaw maps to specific QuickBooks Online accounts and fields when syncing invoices and expenses. Key mapping settings:
|
LeanLaw Data |
Maps to in QuickBooks Online |
|
Legal fee invoice lines |
Income Account selected during QuickBooks Online setup wizard (e.g., 'Legal Fees') |
|
Soft cost expenses |
This is based on your Expenses settings when you integrate QuickBooks Online. Recommended: 'Billable Expense Income' product/service in QuickBooks Online. |
|
Hard cost expenses |
This is based on your Expenses settings when you integrate QuickBooks Online. Recommended: 'Advanced Client Costs' asset account in QuickBooks Online |
|
Trust deposits |
Trust / IOLTA bank account in QuickBooks Online |
|
Trust liability |
'Funds Held in Trust' liability account in QuickBooks Online(auto-created if missing) |
Class Tracking
If your firm uses QuickBooks Online class tracking to allocate revenue by attorney, office, or department, LeanLaw supports assigning classes at the user level and passing them through to QuickBooks Online invoice lines.
- Ensure class tracking is enabled in your QuickBooks Online company settings.
- In LeanLaw, go to Settings → Users.
- Open each user's profile and set their Invoice Class in the Details tab.
- When invoices are synced to QuickBooks Online, the class is applied to each line item based on the timekeeper.
|
⚠️ QuickBooks Online plan requirement: Class tracking requires QuickBooks Online Plus or Advanced. It is not available on the Essentials plan. |