Fixing Bug

pull/2/head
zaid_daoud 3 years ago
parent 10604b4f5c
commit dadc591fcf

@ -153,7 +153,7 @@ class GasRefillProvider extends ChangeNotifier {
"endDate": endDate?.toIso8601String(),
"endTime": endDate?.toIso8601String(),
"workingHours": ((endDate?.difference(startDate)?.inMinutes ?? 0) / 60),
"assignedEmployee": oldModel?.assignedEmployee?.toJson(),
"assignedEmployee": oldModel?.assignedEmployee?.id == null ? null : oldModel?.assignedEmployee?.toJson(),
"site": hospital?.toMap(),
"building": building?.toJson(includeFloors: false),
"floor": floor?.toJson(includeDepartments: false),

Loading…
Cancel
Save