Admin Portal - Profile

This commit is contained in:
hillelcoren 2023-02-22 16:30:57 +00:00
parent b1ade65a44
commit 952266d882

View File

@ -61863,7 +61863,7 @@
if (B.JSString_methods.startsWith$1(url, "https://invoicing.co")) if (B.JSString_methods.startsWith$1(url, "https://invoicing.co"))
secret = ""; secret = "";
t1 = type$.legacy_String; t1 = type$.legacy_String;
headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.107", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1); headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.108", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1);
if (token.length !== 0) if (token.length !== 0)
headers.$indexSet(0, "X-API-Token", token); headers.$indexSet(0, "X-API-Token", token);
if ((idToken == null ? "" : idToken).length !== 0) if ((idToken == null ? "" : idToken).length !== 0)
@ -61887,9 +61887,9 @@
t2 = response.get$body(response).length > 200 ? B.JSString_methods.substring$2(response.get$body(response), 0, 200) : response.get$body(response); t2 = response.get$body(response).length > 200 ? B.JSString_methods.substring$2(response.get$body(response), 0, 200) : response.get$body(response);
throw A.wrapException("Error: please check that Invoice Ninja v5 is installed on the server\n\nURL: " + url + "\n\nResponse: " + t2 + "\n\nHeaders: " + t1.toString$0(0) + "}"); throw A.wrapException("Error: please check that Invoice Ninja v5 is installed on the server\n\nURL: " + url + "\n\nResponse: " + t2 + "\n\nHeaders: " + t1.toString$0(0) + "}");
} else { } else {
t1 = A.Version__compare(A.Version_parse("5.0.107"), A.Version_parse(minClientVersion)); t1 = A.Version__compare(A.Version_parse("5.0.108"), A.Version_parse(minClientVersion));
if (t1 < 0) if (t1 < 0)
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.107 < Minimum v" + A.S(minClientVersion) + "]"); throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.108 < Minimum v" + A.S(minClientVersion) + "]");
else { else {
t1 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4")); t1 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4"));
if (t1 < 0) if (t1 < 0)
@ -333706,7 +333706,7 @@
taxAmount$2(invoice, precision) { taxAmount$2(invoice, precision) {
var _this = this, var _this = this,
t1 = new A.InvoiceItemEntity_taxAmount_calculateTaxAmount(_this, invoice, precision); t1 = new A.InvoiceItemEntity_taxAmount_calculateTaxAmount(_this, invoice, precision);
return t1.call$1(_this.taxRate1) + t1.call$1(_this.taxRate2) + t1.call$1(_this.taxRate3); return t1.call$1(_this.taxRate1) + t1.call$1(_this.taxRate2) + t1.call$1(_this.taxRate3) + t1.call$1(invoice.taxRate1) + t1.call$1(invoice.taxRate2) + t1.call$1(invoice.taxRate3);
}, },
total$2(_, invoice, precision) { total$2(_, invoice, precision) {
var total = this.quantity * this.cost, var total = this.quantity * this.cost,
@ -367347,7 +367347,7 @@
version = "v" + (t1 == null ? "" : t1); version = "v" + (t1 == null ? "" : t1);
if (version.length !== 0) if (version.length !== 0)
version += "-"; version += "-";
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.107".split("."))); return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.108".split(".")));
}, },
get$historyList() { get$historyList() {
var _this = this, var _this = this,
@ -463542,11 +463542,14 @@
this.loadPdf$0(); this.loadPdf$0();
}, },
loadPdf$0() { loadPdf$0() {
var t1, _this = this; var t1, _this = this,
invoice = _this._widget.viewModel.invoice;
if (invoice.invitations._list.length === 0)
return;
_this.setState$1(new A._InvoicePdfViewState_loadPdf_closure(_this)); _this.setState$1(new A._InvoicePdfViewState_loadPdf_closure(_this));
t1 = _this._framework$_element; t1 = _this._framework$_element;
t1.toString; t1.toString;
A._loadPDF(t1, _this._widget.viewModel.invoice, _this._isDeliveryNote, _this._invoice_pdf$_activityId).then$1$1(0, new A._InvoicePdfViewState_loadPdf_closure0(_this), type$.Null).catchError$1(new A._InvoicePdfViewState_loadPdf_closure1(_this)); A._loadPDF(t1, invoice, _this._isDeliveryNote, _this._invoice_pdf$_activityId).then$1$1(0, new A._InvoicePdfViewState_loadPdf_closure0(_this), type$.Null).catchError$1(new A._InvoicePdfViewState_loadPdf_closure1(_this));
}, },
build$1(context) { build$1(context) {
var t2, invoice, t3, t4, client, activitySelector, t5, t6, showEmail, t7, _this = this, _null = null, var t2, invoice, t3, t4, client, activitySelector, t5, t6, showEmail, t7, _this = this, _null = null,