Update 3.13.2

New: Query parameters FilterExpression and SortExpression are availabe to filter and sort collections on expressions.

New: Function [BusinessCollection].ToHTML(HTMLToMerge, TopCount, Randomise, Page) is available to merge HTML to a collection. The system looks for an HTML element with an ID of ItemTemplate and will duplicate and merge the element with each item in the collection. The system also looks for another element with ID NoItemTemplate and removes it if there are items otherwise leaves it and removes ItemTemplate if there are no items.

New: Function DateToTodayFormat(DateToFormat, AsAt, AlwaysIncludeYear) is available to format a date. For example, Today, Tomorrow, Yesterday, Mon 21 Aug, Tue 21 Aug 2018. As per example, it will display Today if same day as in AsAt and leave the year of if same year as in AsAt.

Fix: When calculating freight the total item price and weight are now based on deliverable items only.