Spreadsheet

This commit is contained in:
2018-07-29 21:26:49 +02:00
parent 30535f7048
commit b86c3fc4b9
26 changed files with 1286 additions and 432 deletions
+8
View File
@@ -104,6 +104,13 @@ class Project extends BaseModel {
return $projects;
}
public static function getProjectsForReport()
{
$projects = self::getBaseProject()->get();
return $projects;
}
public static function getBaseProject()
{
$project = Project::with( [
@@ -115,6 +122,7 @@ class Project extends BaseModel {
'projectemployees.user' => function ( $q ) {
$q->selectRaw( "id, CONCAT(firstname, ' ', middlename, ' ', lastname) AS fullname" );
}] )
->with('vat')
->with(['forecasts'])
->with(['reservations'])
->with( 'projectemployees.projecthours' )