Fixed Shift Labels in Logbook and made Verified/Unverified badge clickable
This commit is contained in:
@@ -5,6 +5,7 @@ class AttendanceLog {
|
||||
required this.id,
|
||||
required this.userId,
|
||||
required this.dutyScheduleId,
|
||||
required this.shiftType,
|
||||
required this.checkInAt,
|
||||
required this.checkInLat,
|
||||
required this.checkInLng,
|
||||
@@ -19,6 +20,7 @@ class AttendanceLog {
|
||||
final String id;
|
||||
final String userId;
|
||||
final String dutyScheduleId;
|
||||
final String shiftType;
|
||||
final DateTime checkInAt;
|
||||
final double checkInLat;
|
||||
final double checkInLng;
|
||||
@@ -39,6 +41,7 @@ class AttendanceLog {
|
||||
id: map['id'] as String,
|
||||
userId: map['user_id'] as String,
|
||||
dutyScheduleId: map['duty_schedule_id'] as String,
|
||||
shiftType: map['shift_type'] as String? ?? 'normal',
|
||||
checkInAt: AppTime.parse(map['check_in_at'] as String),
|
||||
checkInLat: (map['check_in_lat'] as num).toDouble(),
|
||||
checkInLng: (map['check_in_lng'] as num).toDouble(),
|
||||
|
||||
Reference in New Issue
Block a user