Currently, <DeliveryNoteNumber> is mapped to the order number.
In this product update, <DeliveryNoteNumber> is mapped to the delivery note number if there is one. Otherwise, it will be mapped to the sales order number.