Admin Portal - Profile

This commit is contained in:
hillelcoren 2021-10-12 12:30:35 +00:00
parent eed1bc2197
commit 12b75f84e9

View File

@ -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;