This procedure identifies licences that have not been submitted and are not associated with any applications. It targets those whose expiry dates have passed beyond the retention period
Status Filter: Selects licences with the status 'lsts_not_submitted'.
Expiry Date Filter: Filters licences based on their expiry date being earlier than the current date minus the retention period.
Application Association Filter: Excludes licences that are associated with any applications, ensuring only those without any submitted applications are selected.