When Sales Locked is enabled, it would make more sense to display “access code” or just "code" instead of "discount code" to avoid confusion. When entered, checkout displays "XXXX discount applied successfully" even if there isn't a discount.