Merge pull request #444 from Oloodi/staff_recurring_permanent_order
Staff recurring permanent order
This commit is contained in:
@@ -31,6 +31,9 @@ class Shift extends Equatable {
|
||||
final bool? hasApplied;
|
||||
final double? totalValue;
|
||||
final Break? breakInfo;
|
||||
final String? orderId;
|
||||
final String? orderType;
|
||||
final List<ShiftSchedule>? schedules;
|
||||
|
||||
const Shift({
|
||||
required this.id,
|
||||
@@ -62,6 +65,9 @@ class Shift extends Equatable {
|
||||
this.hasApplied,
|
||||
this.totalValue,
|
||||
this.breakInfo,
|
||||
this.orderId,
|
||||
this.orderType,
|
||||
this.schedules,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -95,9 +101,27 @@ class Shift extends Equatable {
|
||||
hasApplied,
|
||||
totalValue,
|
||||
breakInfo,
|
||||
orderId,
|
||||
orderType,
|
||||
schedules,
|
||||
];
|
||||
}
|
||||
|
||||
class ShiftSchedule extends Equatable {
|
||||
const ShiftSchedule({
|
||||
required this.date,
|
||||
required this.startTime,
|
||||
required this.endTime,
|
||||
});
|
||||
|
||||
final String date;
|
||||
final String startTime;
|
||||
final String endTime;
|
||||
|
||||
@override
|
||||
List<Object?> get props => <Object?>[date, startTime, endTime];
|
||||
}
|
||||
|
||||
class ShiftManager extends Equatable {
|
||||
const ShiftManager({required this.name, required this.phone, this.avatar});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user