---
title: "Video - How to group lines and subtotals on sales and purchase invoices?"
description: "Invoice templates can group charge lines by order, vehicle, driver or load, with a subtotal per group. Before, templates showed lines per order (sales) or per load (purchase) with no subtotal, and nothing grouped by truck or driver."
url: https://help.qargo.com/us/articles/894190-video-how-to-group-lines-and-subtotals-on-sales-and-purchase-invoices
locale: us
updated: 2026-11-09
---

# Video - How to group lines and subtotals on sales and purchase invoices?

This video shows how to set up group lines and subtotals in templates. It also shows how existing templates can also print a subtotal row per order or load:

::embed{src="https://watchclueso.com/embed/odg1c9orwz7kvekp"}

:::callout{tone="warning"}
‼️ The focus in the video is on sales invoices, but billing proposals and self-bills have their own template version: **Purchase invoice template - grouped lines**. Billing proposals and self-bills can also group lines by Load.
:::

:::callout{tone="note"}
📚 One thing to know: a long invoice still shows its total on the last page only.
:::


## Related articles

- [Document templates: what, why & how.](https://help.qargo.com/us/articles/246339-document-templates-what-why-how.md)
- [Invoices: create a contract carrier billing proposal from a spreadsheet.](https://help.qargo.com/us/articles/529676-invoices-create-a-contract-carrier-billing-proposal-from-a-spreadsheet.md)
- [Invoices: Create a carrier invoice from an existing billing proposal.](https://help.qargo.com/us/articles/133824-invoices-create-a-carrier-invoice-from-an-existing-billing-proposal.md)
- [Palletline: self bill and billing comparison](https://help.qargo.com/us/articles/203780-palletline-self-bill-and-billing-comparison.md)
- [Invoices – Create a contract carrier self-bill from loads](https://help.qargo.com/us/articles/133825-invoices-create-a-contract-carrier-self-bill-from-loads.md)
