Skip to content

Commit

Permalink
[TM-1562] add new fields to resources (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
LimberHope authored Dec 19, 2024
1 parent e3d0e8c commit 0a50883
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Http/Resources/V2/ProjectReports/ProjectReportResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ public function toArray($request)
'workdays_convergence_total' => $this->workdays_convergence_total,
'non_tree_total' => $this->non_tree_total,
'total_community_partners' => $this->total_community_partners,
'business_milestones' => $this->business_milestones,
'ft_other' => $this->ft_other,
'pt_other' => $this->pt_other,
'volunteer_other' => $this->volunteer_other,
'beneficiaries_other' => $this->beneficiaries_other,
'beneficiaries_training_women' => $this->beneficiaries_training_women,
'beneficiaries_training_men' => $this->beneficiaries_training_men,
'beneficiaries_training_other' => $this->beneficiaries_training_other,
'beneficiaries_training_youth' => $this->beneficiaries_training_youth,
'beneficiaries_training_non_youth' => $this->beneficiaries_training_non_youth,
];

return $this->appendFilesToResource($data);
Expand Down
5 changes: 5 additions & 0 deletions app/Http/Resources/V2/SiteReports/SiteReportResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public function toArray($request)
'created_by' => $this->handleCreatedBy(),
'regeneration_description' => $this->regeneration_description,
'total_non_tree_species_planted_count' => $this->total_non_tree_species_planted_count,

'pct_survival_to_date' => $this->pct_survival_to_date,
'survival_calculation' => $this->survival_calculation,
'survival_description' => $this->survival_description,
'maintenance_activities' => $this->maintenance_activities,
];

return $this->appendFilesToResource($data);
Expand Down

0 comments on commit 0a50883

Please sign in to comment.