From 12b75f84e9e2a59e431a0e04feb7d522ee77d6ec Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Tue, 12 Oct 2021 12:30:35 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index a4c557b05e6c..d41b402131f6 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -368599,7 +368599,7 @@ _loadPDF$0: function() { var $async$goto = 0, $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Response), - $async$returnValue, $async$next = [], $async$self = this, errorMessage, state, url, t3, t4, startDate, endDate, exception, t1, response, t2; + $async$returnValue, $async$next = [], $async$self = this, errorMessage, state, url, t3, t4, exception, t1, response, t2; var $async$_loadPDF$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return P._asyncRethrow($async$result, $async$completer); @@ -368618,14 +368618,13 @@ t3 = state.uiState.selectedCompanyIndex; t2 = t2._list; t4 = J.getInterceptor$asx(t2); - startDate = V.calculateStartDate(t4.$index(t2, t3).userCompany.company, null, null, $async$self._client_pdf$_dateRange, 0); - endDate = V.calculateEndDate(t4.$index(t2, t3).userCompany.company, null, null, $async$self._client_pdf$_dateRange, 0); - } else { - startDate = ""; - endDate = ""; + V.calculateStartDate(t4.$index(t2, t3).userCompany.company, null, null, $async$self._client_pdf$_dateRange, 0); + V.calculateEndDate(t4.$index(t2, t3).userCompany.company, null, null, $async$self._client_pdf$_dateRange, 0); } + t2 = state.get$credentials(state); + t1 = t1.client.id; $async$goto = 3; - return P._asyncAwait(new F.WebClient().post$4$data$rawResponse(url, state.get$credentials(state).token, C.C_JsonCodec.encode$1(P.LinkedHashMap_LinkedHashMap$_literal(["client_id", t1.client.id, "start_date", startDate, "end_date", endDate, "show_payments", $async$self._showPayments, "show_aging_table", $async$self._showAging], type$.legacy_String, type$.legacy_Object)), true), $async$_loadPDF$0); + return P._asyncAwait(new F.WebClient().post$4$data$rawResponse(url, t2.token, C.C_JsonCodec.encode$1(P.LinkedHashMap_LinkedHashMap$_literal(["client_id", t1, "start_date", "2019-01-01", "end_date", "2022-01-01", "show_payments", $async$self._showPayments, "show_aging_table", $async$self._showAging], type$.legacy_String, type$.legacy_Object)), true), $async$_loadPDF$0); case 3: // returning from await. response = $async$result;