pkgs: inventory association backport from glpi

backport of inventory association and licence counting

Refs #2263