|
|
|
@ -138,7 +138,7 @@ class AllRequestsProvider extends ChangeNotifier {
|
|
|
|
list.add(5);
|
|
|
|
list.add(5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
list.add(6); // task module
|
|
|
|
list.add(6); // task module
|
|
|
|
if (context.settingProvider.isUserFlowMedical) {
|
|
|
|
if (context.settingProvider.isUserFlowMedical && context.userProvider.user!.type != UsersTypes.normal_user) {
|
|
|
|
list.add(7); // task mod
|
|
|
|
list.add(7); // task mod
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (context.userProvider.user!.type != UsersTypes.normal_user) {
|
|
|
|
// if (context.userProvider.user!.type != UsersTypes.normal_user) {
|
|
|
|
@ -161,7 +161,7 @@ class AllRequestsProvider extends ChangeNotifier {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final type = typeTransaction == null
|
|
|
|
final type = typeTransaction == null
|
|
|
|
? search?.typeTransaction == null || (search?.typeTransaction?.isEmpty ?? false)
|
|
|
|
? search?.typeTransaction == null || (search?.typeTransaction?.isEmpty ?? false)
|
|
|
|
? [1, 2, 3, 4, 5, 6, 7]
|
|
|
|
? getStatues(context)
|
|
|
|
: search!.typeTransaction
|
|
|
|
: search!.typeTransaction
|
|
|
|
: [typeTransaction];
|
|
|
|
: [typeTransaction];
|
|
|
|
List<int> status = (search?.statuses == null || (search?.statuses?.isEmpty ?? false)) ? (((search?.isArchived ?? false) ? [3] : [1, 2, 4])) : search!.statuses!;
|
|
|
|
List<int> status = (search?.statuses == null || (search?.statuses?.isEmpty ?? false)) ? (((search?.isArchived ?? false) ? [3] : [1, 2, 4])) : search!.statuses!;
|
|
|
|
|