AND ISNULL(T0.U_SiteID, $[ORDR.ShipToCode]) = $[ORDR.ShipToCode]
Sorry, there is an extra ), just remove it. it should be fine.
AND ISNULL(T0.U_SiteID, $[ORDR.ShipToCode]) = $[ORDR.ShipToCode]
Sorry, there is an extra ), just remove it. it should be fine.