- 13 Sep 2022
- 2 Minutes to read
- Updated on 13 Sep 2022
- 2 Minutes to read
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
Navigate to your Order or Invoice record and next to the "Line Items" Related List, click New.
Set the values for:
- Item Name (required)
- Service Start Date
- Service End Date
- Unit Price (required)
- Quantity (required)
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.
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.
Repeat the above process for all Line Items.
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 Name, Code 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.