Tech Articles‎ > ‎MODULE - Labels‎ > ‎

Common variables used for label formats

COMMON VARIABLES

These are the variables used most often by customers in label or receipts templates:

@Model.Data.Description
The description for the product

@(Model.Product.Category?.Description)
Product category

@(Model.Product.Department?.Description)
Product department

@(Model.Product.ProductSize?.Description)
The size of the product.

@Model.Location.Name
The name of the store location

@Model.Location.CompanyName
The full name of the company (shown on a receipt)

@Model.Data.PrimaryProductCode 
The product / upc code for the product.  This is often embedded in a barcode for scanning purposes.

@Model.Data.Price.ToString("C") 
Regular item price

@Model.ProductDynamic.PriceA.ToString("C")
The product's price A

@Model.ProductDynamic.PriceB.ToString("C")
The product's price B

@Model.ProductDynamic.PriceC.ToString("C")
The product's price C

@Model.ProductDynamic.SalePrice.ToString("C")
The product's current sale price

@Model.ProductDynamic.SaleStartDate
The sale start date

@Model.ProductDynamic.SaleEndDate
The sale end date

@Model.ProductDynamic.NotDiscountableAtPos
Does this product allow discounts? True/false

@(Model.ProductDynamic.SalesTax?.Description)
The description (name) of the sales tax

================

FORMATTING

Notice that with price, like @Model.Data.Price.ToString("C"), it has a ("C") after it, this is the designation that it's currency and should be formatted as such.  Our application using standard Microsoft formatting functions.  This means you can apply many different types of formatting to the text that appears on labels, receipts, reports, etc.  See this website for additional details:


================

ALL VARIABLES

You can get a list of every variable that is available by adding a button to the POS taskpad using the command "Labels: Display Documentation".  When you execute this button the system will export a file that will contain a list of every variable option available.  As the software continues to evolve so too will this list. 



Comments