diff --git a/pkg/web/employeereport/employeereport_view.go b/pkg/web/employeereport/employeereport_view.go index ab206ed..e3ef29a 100644 --- a/pkg/web/employeereport/employeereport_view.go +++ b/pkg/web/employeereport/employeereport_view.go @@ -70,6 +70,7 @@ func (v *reportView) getValuesForReport(report timesheet.Report, previousPayslip "NextBalanceClassName": v.OvertimeClassname(nextBalance), "ProposedBalance": proposedBalanceCellText, "ProposedBalanceClassName": v.OvertimeClassname(proposedBalance), + "ProposedBalanceExceedsThreshold": proposedBalance.Hours() > 75 || proposedBalance.Hours() < -75, "OvertimeBalanceEditEnabled": nextPayslip != nil, "OvertimeBalanceEditPreviewValue": overtimeBalanceEditPreview, "ValidationError": validationErrorList.Error(), diff --git a/templates/employeereport.html b/templates/employeereport.html index 9282648..72cac56 100644 --- a/templates/employeereport.html +++ b/templates/employeereport.html @@ -112,7 +112,7 @@

Attendances for {{ .Month }} {{ .Year }}

{{ .OutOfOfficeHours }} {{ .PreviousBalance }} {{ .OvertimeHours }} - {{ .ProposedBalance }} + {{ if .ProposedBalanceExceedsThreshold }}⚠️ {{ end }}{{ .ProposedBalance }} {{ .NextBalance }} {{- if .OvertimeBalanceEditEnabled }}