Blog

Creating a custom sub-total

Posted by:

You are here:
< Back

You can also add a custom row in the subtotal area, this custom row could either display a text or do a custom calculation

To create a custom sub total do the following:

1.- Go to custom fields and create a new custom field:

2.- Create the custom field either using the custom field wizard or returning any value, the custom code below will just create a custom subtotal with the text ‘This is a custom row’.

Important: If you want to add this custom field in the subtotal area you need to select ‘Subtotal Row’ in the type of custom field

3.- Go to your pdf template and in the ‘invoice detail’ settings go to the ‘Subtotals’ section and click on Add custom subtotal

4.- Select the custom field that you created and click on ‘Add’

5.- Optional: Define a label for your custom row

And that’s it! With these changes your custom subtotal will be added to your table

0
  Related Posts
  • No related posts found.

Add a Comment