Fix for invoice details in project overview

This commit is contained in:
2026-01-15 10:14:16 +01:00
parent 7772426dca
commit d171eb73dc
3 changed files with 25 additions and 6 deletions
@@ -10,17 +10,17 @@ class QEmployeeHours {
public static function fire( $month, $year )
{
$sql = "
SELECT monthID,
$sql = "
SELECT MAX(monthID) AS monthID,
user_id,
CONCAT(firstname, ' ', middlename, ' ', lastname) AS fullname,
MAX(CONCAT(firstname, ' ', middlename, ' ', lastname)) AS fullname,
ROUND(SUM(projecthours), 0) AS projecthours,
ROUND(SUM(profitablehours), 0) AS profitablehours,
ROUND(SUM(nonprofitablehours), 0) AS nonprofitablehours,
ROUND(SUM(revenues), 0) AS revenues,
ROUND(SUM(nonprojecthours), 0) AS nonprojecthours,
ROUND(SUM(projecthours + nonprojecthours), 0) AS totalhours,
targethours
MAX(targethours) AS targethours
FROM (
SELECT employee_id AS user_id,
MONTH(hourdate) monthID,