All topics
Get started8Account, team & permissions44Units & fields70Records, views & tasks39WhatsApp & Cortex Chat68Email & social27Lead ads & distribution38Automations52Documents & quotes32Dashboards40Cortex AI18Developers & API12
Help Center·448 guidesAll topicsContact support

Add a line items table with the subtotal, tax and total

Link a table to a smart catalog field in line items mode. It prints a row for each item, the columns you choose, then the subtotal, tax and total.

6 min
Before you start · 1 thing · for owners and managers
A Smart Catalog field with Line items mode on
  • You need: The permission to edit document templates
  • A smart catalog field in the unit with Line items mode turned on.

Steps

1
Insert a line items table from the / menu.
2
Choose the catalog field it reads from.
3
Choose the columns and their order.
The default: product, quantity, unit price and line total.
4
Choose the total rows: subtotal, tax and total.
5
Optional: a row number column, reversed order, the header repeated on every page, and a text for an empty list.
6
Preview with a record that has line items. See Preview a template with a real record, or download a proof.

Columns

Column
Prints
Product
The item’s name
Quantity, unit price, line total
From the item
Row number
1, 2, 3 in the printed order
A field from the product record
Any field stored in the products unit, such as the product code

Product record columns accept: text, long text, number, currency, rating, yes/no, dates, choices, tags, status and priority, email, phone, WhatsApp, link and serial number. Relation, lookup, rollup, calculation, file, image, catalog and location print empty.

A column from the product record needs you to have the permission to read the products unit. Otherwise, it prints empty.

Total rows

Row
Calculation
Subtotal
The sum of the line totals
Tax
Subtotal × the tax rate in the field
Total
Subtotal + tax

They’re rounded to the field’s number of decimal places (2 by default), and print with thousands separators. Their labels are in the document’s language: “Subtotal, VAT, Total” or “المجموع الفرعي، الضريبة، الإجمالي”.

An empty list

Without a text for an empty list, the whole table disappears when there are no items. With the text, the header stays, with one line of text under it, such as “No items”, and no total rows.

Reversed order

Prints the items from newest to oldest. The total rows stay at the bottom, and the row number counts after reversing.

You can put 2 tables on the same catalog, each with its own columns and totals.

If something goes wrong

What you see
Why
What to do
The table disappeared from the PDF
The record has no line items.
Add a text for an empty list so the table stays.
A column from the product record is empty
The field type isn’t supported, or you don’t have permission for the products unit.
The catalog doesn’t show when linking
Line items mode isn’t turned on in the field.

A real example

Shield Security Co.
The situation

Quotes were calculated by hand in Excel, and the tax came out wrong.

What they did
  1. A “Quotes” unit with a smart catalog in line items mode, with 15% tax.
  2. A line items table with these columns: row number, product, the product code from the product record, quantity, total.
  3. Subtotal, tax and total rows, and the header repeated on every page.
The result

A quote with 40 items on 3 pages, and the math matches the record.

A made-up company, to show the idea. The numbers are rounded.

Good to know

A line items table links only to a smart catalog with line items mode turned on.
The currency doesn’t print next to the amounts.
Did this guide solve it?
If not, we’ll ask what was missing.
Open in Corteksa
Did this guide solve it?

We read every answer. To get a reply, use Contact support.