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. 


HTML Tags by Document Type

HTML Tags by Email Type


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.


 
SyntaxExample
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
DescriptionType
Additional Sub Object
CostThe cost of the suppy or stock on the purchase order.
Decimal Value
IdThe id of the stock or supply item on the purchase order.Guid
PurchaseOrderThe tags relating to a purchase order can be accessed for the purchase order the stock or supply items are on.

Purchase Order Tags
PurchaseOrderIdThe id of the purchase order.Guid
QuantityThe quantity of the supply or stock on the purchase order.Decimal Value

ReceivedQuantityThe 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
StockThe tags relating to a stock can be accessed for a stock on the purchase order.
Stock Tags
StockIdThe id of the stock.
Guid
SupplyThe tags relating to a supply can be accessed for a supply on the purchase order.

Supply Tags
SupplyIdThe id of the supply.Guid