Line Items
  • 08 Jan 2024
  • 2 Minutes to read
  • Dark
    Light

Line Items

  • Dark
    Light

Article Summary

Create one-off items or items that reference Salesforce Products and Price Books.

  • One-off Line Items
    One-off Line Items let you quickly create an item or a group of items that are only invoiced once and are not a regular product.

  • Products Referenced Line items
    Line Items that reference a Product and Price Book record.

We suggest using the Product and Price Book fields if you are going to create Invoices from standard Salesforce objects like Opportunities or Orders as those records already relate to Products.

Add Line Items to your Order or Invoice

  1. Navigate to your Order or Invoice record and next to the "Line Items" Related List, click New.

  2. Set the values for:

    • Item Name
    • Service Start Date
    • Service End Date
    • Description
    • Unit Price
    • Quantity 
      If the Quantity field is left blank, the default value is "1".
    • Tax Rate
    • Discount Code 
      If a Discount Code has been created, define the record here.
  3. Additional Discount Amount and Additional Discount Percentage

    You can define these fields manually, or they will automatically be defined when setting a Discount Code. For example,

    • if you define a Discount Code that provides $10.00 off, the Additional Discount Amount field will show $10.00.
    • if a Discount Code is not defined, you can manually enter a one-off discount in either field.
  4. Click Save.
    H_01_06_add line items

  5. Repeat the above process for all Line Items.

  6. Render the completed Order or Invoice through DocumentLink.

Now that you have added all Line Item to your Order or Invoice, click here to learn how DocumentLink works so that you can send this Invoice to your customer.

Use Salesforce Products and Price Books

Setting the Product and Price Book fields on a Line Item will automatically copy values from those related records into some Line Item fields when the record is saved. Both Product and Price Book are optional fields. If a Product is set on the Line Item but not a Price Book, our logic will set the Standard Pricebook in the Price Book field.

When a Line Item record is saved:

  • Values are pulled from the related Product and set on Item NameCode and Description if the Line Item field is blank.
  • Values are pulled from the Pricebook Entry (based on the related Price Book and Product) and set on List Unit Price and Unit Price if the Line Item field is blank.

None of the Line Item fields listed above will be updated from the related Product or Pricebook once they are set.

This allows you to easily create Invoice Line Items from objects that use Salesforce Product and Price Book while also providing the flexibility to set Line Item fields manually or from some other custom process.

Initial Setup: Add the Product, Price Book, and List Unit Price fields to your Line Item page layout.

Lightning -> Navigate to setup > search for "Object Manager" > type in and select "Line Items" > edit the Page Layout and add the three fields.

Classic -> Navigate to setup > search for "Objects" > type in and select "Line Items" > edit the Page Layout and add the three fields.

H_01_06_using salesforce products