Getting Started
If you are new to the HTML document/canned email tag system, you can get an overview of tags, objects and loops here.
Accessing The DepartmentItem Object
Access to this object is dependent on what document or canned email type you are trying to access the object from. Start by finding the document or canned email type you are working with from the links provided below. Follow the chart for your specified document or canned email type to see if the object is accessible, and if so, where it is located. You may need to use a combination of loops and/or chaining to access this object.
Accessing The DepartmentItem Tags
Assuming you have access to the DepartmentItem object, since the object itself is a list type, the object must be looped. The tags and/or sub-object tags should be nested within the loop.
Here is a chart displaying these use cases.
Syntax | Example | |
<!-- {{#each DepartmentItems}} --> {{TagName}} <br /> <!-- {{/each}} --> | <!-- {{#each DepartmentItems}} --> {{Cost}} <br /> <!-- {{/each}} --> |
Overview
Tag Name | Description | Type |
Cost | The total calculated cost of the department item. | Decimal Value |
CostPerHour | The cost per hour for the department item. | Decimal Value |
CostPerPiece | The cost per piece for the department item. | Decimal Value |
Department | The department that has been selected on the department item. Graphics, Press, Finishing, Outsourced or Shipping. | Text |
Description | The description that has been input on the department item. | Text |
EstimatedCost | The total estimated calculated cost of the department item. | Decimal Value |
Group | The group that has been selected on the department item. | Text |
Id | The id of the department item. | Guid |
MinimumPrice | The minimum price for the department item. | Decimal Value |
Name | The name that has been input on the department item. | Text |
OnlineName | The online name that has been input on the department item. | Text |
OrderItemId | The id of the order item. | Guid |
PiecesPerHour | The pieces per hour for the department item. | Whole Number |
Price | The total calculated price of the department item. | Decimal Value |
PricePerHour | The price per hour for the department item. | Decimal Value |
PricePerPiece | The price per piece for the department item. | Decimal Value |
Quantity | The calculated quantity of the department item. | Decimal Value |
SetupCost | The setup cost for the department item. | Decimal Value |
SetupPrice | The setup price for the department item. | |
SortOrder | Whole Number | |
Time | The total estimated time of the department item. | Long |
Waste | The total calculated waste of the department item. | Whole Number |