From c8d18df2e3cade453c6131106463b1437a4eac40 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Tue, 4 Oct 2022 09:27:00 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index c8a8c90a1105..bd54c25fa162 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -444569,19 +444569,21 @@ }; A.InvoiceEditFooter.prototype = { build$1(context) { - var t3, total, useSidebarEditor, showLayoutToggle, title, t4, t5, _null = null, + var t3, t4, t5, total, useSidebarEditor, showLayoutToggle, title, _null = null, t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization), store = A.StoreProvider_of(context, type$.legacy_AppState), t2 = store.__Store__state_A; t2 === $ && A.throwUnnamedLateFieldNI(); t3 = this.invoice; - total = A.formatNumber(t3.calculateTotal$1$precision(A.precisionForInvoice(t2, t3)), context, t3.clientId, _null, B.FormatNumberType_0, true, _null, false); + t4 = t3.calculateTotal$1$precision(A.precisionForInvoice(t2, t3)); + t5 = t3.entityType; + total = A.formatNumber(t4, context, t5 === B.EntityType_purchaseOrder ? _null : t3.clientId, _null, B.FormatNumberType_0, true, _null, false); t2 = t2.prefState; useSidebarEditor = t2.useSidebarEditor._map$_map.$index(0, B.EntityType_invoice); if (useSidebarEditor == null) useSidebarEditor = false; showLayoutToggle = A.getLayout(context) === B.AppLayout_desktop; - title = A.S(t1.lookup$1(A.toSnakeCase(t3.entityType.name) + "_total")) + ": " + A.S(total); + title = A.S(t1.lookup$1(A.toSnakeCase(t5.name) + "_total")) + ": " + A.S(total); t4 = A.Theme_of(context).cardColor; t5 = A._setArrayType([], type$.JSArray_legacy_Widget); if (showLayoutToggle) {