Error on SQL Script Deployment (SQL 2008R2)

Issue No: CT-3306
Created 5/31/2019 9:57:40 PM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.3
Description 09:55:35 PM - Error SQL72014: .Net SqlClient Data Provider: Msg 102, Level 15, State 1, Procedure fnCTGetBasisDelivery, Line 278 Incorrect syntax near 'order'. 09:55:35 PM - Error SQL72045: Script execution error. The executed script: 09:55:35 PM - CREATE FUNCTION [dbo].[fnCTGetBasisDelivery] 09:55:35 PM - (@dtmDate DATE=NULL)