Skip to content

Line Items ​

In this article we cover line items: the priced rows on quotes, orders, invoices, and any module set up the same way. We cover how to add them and how Cubrel calculates the amounts. How admins choose the product source and what fills in is covered in Line Item Setup.

What line items are ​

A quote or order isn't just a set of fields: it holds a list of items, each with a product, a quantity, and a price. These rows are line items. Cubrel calculates each row's amounts and adds them up into the record's Subtotal, Discount Amount, Tax Amount, and Total.

Quotes, Orders and Invoices come with line items. An admin can turn them on for any module they build, for example a Change requests module with priced extra work. See Modules.

Adding and editing line items ​

On the record page, the Line Items table lists the record's items.

  1. Click Add Item.
  2. Pick a product. Its details, such as name, unit price, unit, and tax rate, fill in automatically.
  3. Adjust the quantity, price, discount, or anything else, and save.

To change an item, open it with Edit Item. To remove it, delete it from the table; Cubrel asks you to confirm. Drag rows to change their order; the order is kept, and PDFs print the items in that order.

The line items of an issued invoice can't be changed. See Number Sequences and Issued Invoices.

How the amounts are calculated ​

For every line item, Cubrel calculates:

AmountCalculation
SubtotalUnit Price × Quantity
Discount AmountSubtotal × Discount (%)
Tax Amount(Subtotal − Discount Amount) × Tax Rate (%)
TotalSubtotal − Discount Amount + Tax Amount

The discount is always a percentage. The record's own Subtotal, Discount Amount, Tax Amount, and Total are the sums of all its line items. They're recalculated every time an item is added, changed, or removed, and you can't type into them.

These totals aren't listed as edits in the record's history, since nobody typed them.

Line items elsewhere ​

  • PDF templates have a line items table block that prints the items with their totals. See PDF Templates.
  • Conversion rules can copy line items to the new record, for example from a quote to an order. See Conversion Rules.
  • Exporting one record includes its line items; bulk exports don't.
  • Deleting a record moves its line items to the bin with it, and restoring brings them back.

In short ​

QuestionAnswer
Which modules have line items?Quotes, Orders, Invoices, and any module an admin sets up with them
How do I add one?Add Item in the Line Items table, then pick a product
Are discounts percentages or amounts?Percentages; the amount is calculated
Can I type in the record's Total?No, it's always the sum of its line items
Can I reorder line items?Yes, by dragging
Where do the products come from?The module's line item source, normally Products
What fills in when I pick a product?What an admin set up, usually the name, price, unit and tax rate