Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into feature/issue3369
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Dec 10, 2024
2 parents 952f90b + 67f3d6f commit 6342fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ class ProjectController {
model.details.meriPlanTemplate = config.meriPlanTemplate ? config.meriPlanTemplate+"View" : RLP_MERI_PLAN_TEMPLATE+'View'

boolean serviceDeliveryVisible = model.dashboard.visible && userHasViewAccess
model.serviceDelivery = [label: 'Dashboard', visible: serviceDeliveryVisible, type: 'tab', template: 'rlpServiceDashboard', includeInvoiced:config.supportsOutcomeTargets()]
boolean showDashboardInvoiceField = (config.showsDashboardInvoiceField == null) ? config.supportsOutcomeTargets() : config.showsDashboardInvoiceField
model.serviceDelivery = [label: 'Dashboard', visible: serviceDeliveryVisible, type: 'tab', template: 'rlpServiceDashboard', includeInvoiced:showDashboardInvoiceField]
if (model.serviceDelivery.visible) {
// This can be a slow call so don't make it if the data won't be displayed
model.serviceDelivery.servicesDashboard = projectService.getServiceDashboardData(project.projectId, false)
Expand Down
3 changes: 3 additions & 0 deletions src/main/groovy/au/org/ala/merit/config/ProgramConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ class ProgramConfig implements Map {
template != null
}

/** This flag controls whether the invoice field in the dashboard is shown */
boolean showsDashboardInvoiceField = true

}


Expand Down

0 comments on commit 6342fc9

Please sign in to comment.