employeehours report
This commit is contained in:
@@ -35,4 +35,13 @@ class Projectcost extends BaseModel {
|
||||
return $projectID;
|
||||
}
|
||||
|
||||
public static function getCostsPerPerProject( $projectID )
|
||||
{
|
||||
$projectCosts = Projectcost::selectraw( 'ROUND(COALESCE(SUM(costs), 0), 0) AS costs')
|
||||
->whereProjectId($projectID)
|
||||
->first();
|
||||
|
||||
return $projectCosts->costs;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user