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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user