-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...in/groovy/au/org/ala/merit/reports/RegionalCapacityServicesReportLifecycleListener.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package au.org.ala.merit.reports | ||
|
||
import au.org.ala.merit.OrganisationService | ||
import groovy.util.logging.Slf4j | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
@Slf4j | ||
class RegionalCapacityServicesReportLifecycleListener extends ReportLifecycleListener { | ||
|
||
@Autowired | ||
OrganisationService organisationService | ||
|
||
Map getContextData(Map organisation, Map report) { | ||
List outputTargets = organisation.custom?.details?.services?.targets | ||
Map periodTargets = getTargetsForReportPeriod(report, outputTargets) | ||
BigDecimal budget = new BigDecimal(0) // TODO get budget from the correct period of the budget table | ||
[periodTargets:periodTargets, budget:budget] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters