-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from avinyafoundation/main
added changes to add IT and CS ss to the attendance module
- Loading branch information
Showing
7 changed files
with
6,227 additions
and
15 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
57 changes: 57 additions & 0 deletions
57
api/daily_activity_participant_attendance_summary_report.bal
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,57 @@ | ||
public isolated service class DailyActivityParticipantAttendanceSummaryReportData { | ||
private ActivityParticipantAttendanceSummaryReport activity_participant_attendance_summary_report = { | ||
sign_in_date: "", | ||
present_count: -1, | ||
late_count:-1, | ||
total_count:-1, | ||
present_attendance_percentage:0.0, | ||
late_attendance_percentage: 0.0 | ||
}; | ||
|
||
isolated function init(ActivityParticipantAttendanceSummaryReport? activity_participant_attendance_summary_report = null) returns error? { | ||
if(activity_participant_attendance_summary_report != null) { | ||
self.activity_participant_attendance_summary_report = activity_participant_attendance_summary_report.cloneReadOnly(); | ||
return; | ||
} | ||
|
||
} | ||
|
||
|
||
isolated resource function get sign_in_date() returns string? { | ||
lock { | ||
return self.activity_participant_attendance_summary_report.sign_in_date; | ||
} | ||
} | ||
|
||
isolated resource function get present_count() returns int? { | ||
lock { | ||
return self.activity_participant_attendance_summary_report.present_count; | ||
} | ||
} | ||
|
||
|
||
isolated resource function get late_count() returns int? { | ||
lock { | ||
return self.activity_participant_attendance_summary_report.late_count; | ||
} | ||
} | ||
|
||
isolated resource function get total_count() returns int? { | ||
lock { | ||
return self.activity_participant_attendance_summary_report.total_count; | ||
} | ||
} | ||
|
||
isolated resource function get present_attendance_percentage() returns decimal? { | ||
|
||
lock { | ||
return self.activity_participant_attendance_summary_report.present_attendance_percentage; | ||
} | ||
} | ||
|
||
isolated resource function get late_attendance_percentage() returns decimal? { | ||
lock { | ||
return self.activity_participant_attendance_summary_report.late_attendance_percentage; | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.