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 PurchaseOrderItem 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 PurchaseOrderItem Tags
Assuming you have access to one of the PurchaseOrderItem objects, you must do one of the following:
1. Prefix the object's name to the required tag
2. If the tag contains an 'Additional Sub Object', then the tag must prefix the sub-object tag and suffix the object
3. If the tag is a list type, then the tag must be looped. The sub-object tags should be nested within the loop.
4. If the object itself is a list type, then the object must be looped. The tags and/or sub-object tags should be nested within the loop.
5. If the object itself and the sub-object are list types, then both objects must be looped. The sub-sub-objects tags and/or objects should be nested within the loop.
The following are implementations of the PurchaseOrderItem object that give access to the PurchaseOrderItem tags: PurchaseOrderItem, StockPurchaseOrderItems, SupplyPurchaseOrderItems
Here is a chart displaying these use cases.
Syntax | Example | |
1 | {{PurchaseOrderItem.TagName}} | {{SupplyPurchaseOrderItems.Cost}} |
2 | {{PurchaseOrderItem.TagName.SubObjectTag...}} | {{PurchaseOrderItem.Stock.Barcode}} |
3 | <!-- {{#each PurchaseOrderItem.TagName}} --> {{SubObjectTagName}} <br /> <!-- {{/each}} --> | <!-- {{#each PurchaseOrderItem.PurchaseOrders}} --> {{Number}} <br /> <!-- {{/each}} --> |
4 | <!-- {{#each PurchaseOrderItem}} --> {{TagName}} <br /> <!-- {{/each}} --> | <!-- {{#each StockPurchaseOrderItems}} --> {{Cost}} <br /> <!-- {{/each}} --> |
5 | <!-- {{#each PurchaseOrderItem}} --> <!-- {{#each TagName}} --> {{SubObjectTagName}} <br /> <!-- {{/each}} --> <!-- {{/each}} --> | <!-- {{#each StockPurchaseOrderItems}} --> <!-- {{#each PurchaseOrders}} --> {{CreatedDate}} <br /> <!-- {{/each}} --> <!-- {{/each}} --> |
Overview
Tag Name | Description | Type | Additional Sub Object |
Cost | The cost of the suppy or stock on the purchase order. | Decimal Value | |
Id | The id of the stock or supply item on the purchase order. | Guid | |
PurchaseOrder | The tags relating to a purchase order can be accessed for the purchase order the stock or supply items are on. | Purchase Order Tags | |
PurchaseOrderId | The id of the purchase order. | Guid | |
Quantity | The quantity of the supply or stock on the purchase order. | Decimal Value | |
ReceivedQuantity | The quantity of the supply or stock that has been received on the purchase order. | Decimal Value | |
Reservations | The tags relating to a reservation can be accessed for reservations on the stock items on the purchase order. | Purchase Order Item Reservation Tags | |
Stock | The tags relating to a stock can be accessed for a stock on the purchase order. | Stock Tags | |
StockId | The id of the stock. | Guid | |
Supply | The tags relating to a supply can be accessed for a supply on the purchase order. | Supply Tags | |
SupplyId | The id of the supply. | Guid |