.. include:: /Includes.rst.txt .. _feature-1791370003: =========================== Feature: Bonus point ledger =========================== Description =========== In a company that keeps bonus points, every employee has an append-only ledger of entries. HR and managers in scope award points or book an adjustment with ``POST /api/v1/employees/{id}/bonus-points/entries``, never on their own account, and an adjustment never leaves fewer than none available. The employee, managers in scope and HR read the balance and the entries. Packages award through the core service ``BonusPointLedger::award()``, once per source and reference, with a reason key translated for each reader. The employee is told through ``employee.bonusPointsChanged``. Impact ====== Run the database migrations. .. index:: Backend, Database, API, package:adsum-core