Added My Schedule tab in attendance screen
Allow 1 Day, Whole Week and Date Range swapping
This commit is contained in:
@@ -12,6 +12,7 @@ class PassSlip {
|
||||
this.approvedAt,
|
||||
this.slipStart,
|
||||
this.slipEnd,
|
||||
this.requestedStart,
|
||||
});
|
||||
|
||||
final String id;
|
||||
@@ -24,6 +25,7 @@ class PassSlip {
|
||||
final DateTime? approvedAt;
|
||||
final DateTime? slipStart;
|
||||
final DateTime? slipEnd;
|
||||
final DateTime? requestedStart;
|
||||
|
||||
/// Whether the slip is active (approved but not yet completed).
|
||||
bool get isActive => status == 'approved' && slipEnd == null;
|
||||
@@ -52,6 +54,9 @@ class PassSlip {
|
||||
slipEnd: map['slip_end'] == null
|
||||
? null
|
||||
: AppTime.parse(map['slip_end'] as String),
|
||||
requestedStart: map['requested_start'] == null
|
||||
? null
|
||||
: AppTime.parse(map['requested_start'] as String),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user