From 952266d882874efe39dc2fc36c59157d43285fb9 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Wed, 22 Feb 2023 16:30:57 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 9802cdead117..3e8717ab93ca 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -61863,7 +61863,7 @@ if (B.JSString_methods.startsWith$1(url, "https://invoicing.co")) secret = ""; 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) headers.$indexSet(0, "X-API-Token", token); 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); 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 { - 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) - 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 { t1 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4")); if (t1 < 0) @@ -333706,7 +333706,7 @@ taxAmount$2(invoice, precision) { var _this = this, 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) { var total = this.quantity * this.cost, @@ -367347,7 +367347,7 @@ version = "v" + (t1 == null ? "" : t1); if (version.length !== 0) 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() { var _this = this, @@ -463542,11 +463542,14 @@ this.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)); t1 = _this._framework$_element; 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) { var t2, invoice, t3, t4, client, activitySelector, t5, t6, showEmail, t7, _this = this, _null = null,