Introduce goals module with methods for result, percentage, and remaining calculations

- Add `goals` class for managing goal metrics and calculations.
- Extend `goals_criteria` with timeframe initialization and validation.
- Implement `getListByCriteria` in `order_items_o.php` for product-based goal evaluation.
- Add unit tests for `goals` to validate
This commit is contained in:
Jeppe Bundgaard
2026-01-26 16:24:23 +01:00
parent f94efa7c59
commit 51b8198a67
6 changed files with 181 additions and 6 deletions
@@ -41,6 +41,8 @@ class goals_criteria implements goals_criteria_i
$this->users = new goals_criteria_users();
$this->departments = new goals_criteria_departments();
$this->products = new goals_criteria_products();
$this->start = new \DateTime();
$this->end = new \DateTime();
}
}