.. include:: /Includes.rst.txt .. _bugfix-1793454832: ========================================================== Bugfix: Count the country leave types in the company setup ========================================================== Description =========== ``app:company:setup`` reported "0 default entries created." although it had created the leave types of the country, such as Mutterschutz, because it counted only the entries of the structure defaults. The event ``CompanyDefaultsSetUp`` now carries a count that a listener raises with ``created()``, the leave package reports the types it created, and the command adds them to its own. Impact ====== The message of the command is right. A package that listens to the event can report what it created the same way. .. index:: CLI, Events, package:core, package:leave