Overview
This guide outlines all supported placeholders that can be used in your document templates for Sales Invoices(StockUnify Generated) and Packing Slips. These placeholders allow you to dynamically insert relevant data when generating PDF files from templates.
How Do Placeholders Work?
Placeholders are variables enclosed in curly braces (e.g., {orderNumber}
) that will be automatically replaced with actual data when a document is generated.
You can insert these placeholders anywhere in your template file to populate dynamic values.
The following placeholders can be used for general Sales Invoices(StockUnify Generated) and Packing Slips:
Order Basic Info Placeholders
Placeholder | Description |
---|---|
{isDraft} | Indicates if the order is a draft |
{organizationName} | Your organization’s name |
{orderDate} | The date the order was issued |
{orderNumber} | The sales order number |
{invoiceNumber} | The invoice number (fallbacks to order number if missing) |
{dueDate} | The due date for payment |
{creatorName} | The name of the user who created the order |
{salespersonName} | The name of the assigned salesperson |
{notes} | Additional notes added to the order |
{projectCode} | The project code linked to the order |
{projectName} | The project name linked to the order |
{currency} | The currency code (e.g., AUD, NZD, GBP, EUR, USD) |
{taxIncluded} | Whether tax is included in item prices |
{taxRate} | The tax rate applied to the order |
{orderSubTotal} | Subtotal amount before tax |
{orderTotalExclTax} | Total amount excluding tax |
{orderTotalTax} | Total tax amount |
{orderTotalInclTax} | Total amount including tax |
{customerName} | The customer’s name |
{customerBillingName} | The billing name for the customer |
{billingAddressStreet} | Billing address street |
{billingAddressCity} | Billing address city |
{billingAddressRegion} | Billing address region/state |
{billingAddressPostalCode} | Billing address postal code |
{billingAddressCountry} | Billing address country |
{shippingAddressStreet} | Shipping address street |
{shippingAddressCity} | Shipping address city |
{shippingAddressRegion} | Shipping address region/state |
{shippingAddressPostalCode} | Shipping address postal code |
{shippingAddressCountry} | Shipping address country |
{hasBatches} | Indicates if the order contains batch/serial tracked items |
{orderItems} | List of all items in the order (used in item tables) |
{orderBatches} | Batch or serial number details (if applicable) |
Item Table Placeholders
These placeholders are used within the order item table section:
Placeholder | Description |
---|---|
{code} | The product code |
{name} | The product name or package name |
{reference} | The product reference |
{barcode} | The product barcode |
{unit} | The product unit |
{price} | The product unit price |
{discount} | The discount applied to the item |
{qty} | The quantity of the item |
{total} | The total amount for the item |
Batch / Serial Number Placeholders
These placeholders are used when displaying batch or serial number details:
Placeholder | Description |
---|---|
{code} | The product code |
{name} | The product name or package name |
{reference} | The product reference |
{batchCode} | The batch or serial number |
{qty} | The quantity associated with the batch/serial |
{expireDate} | The expiration date of the batch |