The crucial distinction is the location. A staff party at your own workplace falls under the targeted exemption and does not count towards the discretionary scope. At an external location the costs do count. This difference can save tens of thousands of euros in tax.