|
|
|
|
@ -33,14 +33,14 @@ class AllRequestsProvider extends ChangeNotifier {
|
|
|
|
|
getCloseRequests();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<int> getAllRequests() async {
|
|
|
|
|
Future<int> getAllRequests({int typeTransaction}) async {
|
|
|
|
|
if (isAllLoading == true) return -2;
|
|
|
|
|
isAllLoading = true;
|
|
|
|
|
if (allRequestsAndCount == null) notifyListeners();
|
|
|
|
|
Response response;
|
|
|
|
|
try {
|
|
|
|
|
Map<String, dynamic> body = {
|
|
|
|
|
"typeTransaction": [1, 2, 3, 4],
|
|
|
|
|
"typeTransaction": typeTransaction == null ? [1, 2, 3, 4] : [typeTransaction],
|
|
|
|
|
"statusTransaction": [1, 2, 3],
|
|
|
|
|
"priority": [0, 1],
|
|
|
|
|
"displayData": []
|
|
|
|
|
|