Setting Up a Consolidated Billing Invoice Template

Modified on Tue, 8 Apr at 4:15 PM

In this article:



If you’re using consolidated billing, you can create and upload a special invoice template that accommodates the different billable items for the matters included in the bill. This article provides a link to a sample template you can upload to your system as well as a few notes about how the template is set up.  


Before creating any invoice templates (including a consolidated billing template), you should have experience using Microsoft Word merge fields as well as Actionstep merge fields. For help, see these resources on building a template using merge fields: 


You should also be familiar with consolidated billing and invoice templates: 





Creating a Consolidated Invoice Template

You can download a sample consolidated invoice template and use it to build out your own consolidated billing workflow. 



To set up a consolidated invoice template: 

  1. Download the sample template. (Clicking this link will save a copy of the Word document to your browser's Downloads folder.)
  2. Review the template and make any additional changes to it; or use it as an example to build your own template. (See A Closer Look at the Consolidated Invoice Template, below, for information about the consolidated billing merge fields used in this example.) 
  3. Once set up, upload it to your Billing template list. (See Working with Invoice Templates for help.) 

 



A Closer Look at the Consolidated Invoice Template

TIP:  The sample template used in the following example is based on Actionstep’s built-in template, Legal Invoice 1.docx, which you can access by going to Admin > Billing > Custom bill templates and clicking Create new custom bill template.

A consolidated invoice template typically includes a few special merge fields and merge field options that allow FOREACH and REPEAT blocks to work within each record. The following attempts to explain these different components:



NOTE:  When reviewing the Word template, right-click on a field and choose Toggle Field Codes to see the full merge field details. To hide or show all field codes at once, press Alt+F9 (Word) or Option+F9 (Mac).


Section A: Matter Summary Options 

In this section, you’ll see a REPEAT block that includes a summary list of data (fees, hours, expenses, and a total of all these things) for all matters included in the invoice.  


Because this is a consolidated billing template, this REPEAT field must use the |data_source=bill_consolidation merge field option:


Also. with any repeat block anywhere in the template, any individual fields that are repeated must include a record number merge field option, which looks like this: |rn=* :



Section B: The FOREACH Block

REPEAT blocks cannot contain nested REPEATs, which are required when consolidating invoices (i.e., you cannot repeat matters and then repeat data (like fees) within those matters). To accommodate this, you can instead use a FOREACH block, which does allow you to include REPEAT blocks within the FOREACH block. (In fact, FOREACH works very similarly to a REPEAT.) 


In the sample template, the FOREACH block covers everything from the opening FOREACH field to the last «end» before the list of totals. You’ll see this includes repeated fee and expense information:


The data_source option for the FOREACH block is consolidated_bills (i.e.,  |data_source=consolidated_bills):


Any REPEAT merge field nested within a FOREACH block must also include one of the following options: 

  • The |context_action_id=* option includes details about a matter
  • The |context_sale_purchase_id=* option includes details about the invoice.




Section C: Outside the FOREACH Block

Invoice fields outside of the FOREACH block (like the totals just below Fees and Expenses) will calculate values for all items across all the invoices. For example, because Total fees is after the END FOREACH field, the merged answer will show total fees for all the invoices.  


NOTE:  Use care when setting up your consolidated invoice template and test it thoroughly. Some merge fields may not work well with it. For example, a REPEAT block to show trust transactions does not make sense to use for all matters. 

 


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article