diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 6294e4d039a0..4bfd46e8d591 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -73783,7 +73783,8 @@ this.quote = t1; this.action = t2; }, - SaveQuoteSuccess: function SaveQuoteSuccess() { + SaveQuoteSuccess: function SaveQuoteSuccess(t0) { + this.quote = t0; }, AddQuoteSuccess: function AddQuoteSuccess(t0) { this.quote = t0; @@ -74188,7 +74189,7 @@ return A.InvoiceEntity_InvoiceEntity(_null, _null, _null, _null, _null); }, _updateEditing12(quote, action) { - return action.get$purchaseOrder(); + return action.get$quote(); }, _addQuoteItem(quote, action) { return quote.rebuild$1(new A._addQuoteItem_closure(action)); @@ -74297,7 +74298,7 @@ return quoteState.rebuild$1(new A._addQuote_closure(action)); }, _updateQuote(invoiceState, action) { - return invoiceState.rebuild$1(new A._updateQuote_closure(action.get$purchaseOrder())); + return invoiceState.rebuild$1(new A._updateQuote_closure(action.get$quote())); }, _setLoadedQuotes(quoteState, action) { return quoteState.loadQuotes$1(action.quotes); @@ -367613,11 +367614,27 @@ A._PurchaseOrderUIState_Object_EntityUIState.prototype = {}; A.ViewQuoteList.prototype = {$isPersistUI: 1}; A.ViewQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1}; - A.EditQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1}; - A.ShowEmailQuote.prototype = {}; - A.ShowPdfQuote.prototype = {}; + A.EditQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1, + get$quote() { + return this.quote; + } + }; + A.ShowEmailQuote.prototype = { + get$quote() { + return this.quote; + } + }; + A.ShowPdfQuote.prototype = { + get$quote() { + return this.quote; + } + }; A.EditQuoteItem.prototype = {$isPersistUI: 1}; - A.UpdateQuote.prototype = {$isPersistUI: 1}; + A.UpdateQuote.prototype = {$isPersistUI: 1, + get$quote() { + return this.quote; + } + }; A.UpdateQuoteClient.prototype = {$isPersistUI: 1}; A.LoadQuote.prototype = {}; A.LoadQuotes.prototype = {}; @@ -367633,7 +367650,10 @@ return "LoadQuoteSuccess{quote: " + A.S(this.quote) + "}"; }, $isPersistData: 1, - $isStopLoading: 1 + $isStopLoading: 1, + get$quote() { + return this.quote; + } }; A.LoadQuotesRequest.prototype = {$isStartLoading: 1}; A.LoadQuotesFailure.prototype = { @@ -367659,16 +367679,32 @@ A.AddQuoteItems.prototype = {$isPersistUI: 1}; A.UpdateQuoteItem.prototype = {$isPersistUI: 1}; A.DeleteQuoteItem.prototype = {$isPersistUI: 1}; - A.SaveQuoteRequest.prototype = {$isStartSaving: 1}; - A.SaveQuoteSuccess.prototype = {$isPersistUI: 1, $isPersistData: 1, $isStopSaving: 1}; - A.AddQuoteSuccess.prototype = {$isPersistUI: 1, $isPersistData: 1, $isStopSaving: 1}; + A.SaveQuoteRequest.prototype = {$isStartSaving: 1, + get$quote() { + return this.quote; + } + }; + A.SaveQuoteSuccess.prototype = {$isPersistUI: 1, $isPersistData: 1, $isStopSaving: 1, + get$quote() { + return this.quote; + } + }; + A.AddQuoteSuccess.prototype = {$isPersistUI: 1, $isPersistData: 1, $isStopSaving: 1, + get$quote() { + return this.quote; + } + }; A.SaveQuoteFailure.prototype = {$isStopSaving: 1}; A.EmailQuoteRequest.prototype = {$isStartSaving: 1, get$body(receiver) { return this.body; } }; - A.EmailQuoteSuccess.prototype = {$isPersistData: 1, $isStopSaving: 1}; + A.EmailQuoteSuccess.prototype = {$isPersistData: 1, $isStopSaving: 1, + get$quote() { + return this.quote; + } + }; A.EmailQuoteFailure.prototype = {$isStopSaving: 1}; A.MarkSentQuotesRequest.prototype = {$isStartSaving: 1}; A.MarkSentQuoteSuccess.prototype = {$isPersistData: 1, $isStopSaving: 1}; @@ -367718,7 +367754,11 @@ A.ApproveQuotes.prototype = {$isStartSaving: 1}; A.ApproveQuoteSuccess.prototype = {$isStopSaving: 1}; A.ApproveQuoteFailure.prototype = {$isStopSaving: 1}; - A.SaveQuoteDocumentRequest.prototype = {$isStartSaving: 1}; + A.SaveQuoteDocumentRequest.prototype = {$isStartSaving: 1, + get$quote() { + return this.quote; + } + }; A.SaveQuoteDocumentFailure.prototype = {$isStopSaving: 1}; A.handleQuoteAction_closure.prototype = { call$1(quote) { @@ -368200,7 +368240,7 @@ if (t1.quote.get$isNew()) t2.get$_dispatchers()[0].call$1(new A.AddQuoteSuccess(quote)); else - t2.get$_dispatchers()[0].call$1(new A.SaveQuoteSuccess()); + t2.get$_dispatchers()[0].call$1(new A.SaveQuoteSuccess(quote)); if (t1.action === B.EntityAction_convertToInvoice) t2.get$_dispatchers()[0].call$1(new A.RefreshData(null, false, false, false)); t1.completer.complete$1(0, quote); @@ -368361,7 +368401,7 @@ }; A._saveDocument__closure9.prototype = { call$1(quote) { - this.store.get$_dispatchers()[0].call$1(new A.SaveQuoteSuccess()); + this.store.get$_dispatchers()[0].call$1(new A.SaveQuoteSuccess(quote)); this.action.completer.complete$1(0, null); }, $signature: 67 @@ -428906,6 +428946,9 @@ t8 = t5.id; t3 = t3.get$isEditing() ? quoteUIState.editing.id : quoteUIState.selectedId; return new A.DismissibleEntity(t2[t4].userCompany, t5, new A.LayoutBuilder(new A.QuoteListItem_build_closure(t1, _this, isInMultiselect, listUIState, isChecked, state, client, t7, textStyle, filterMatch, textColor), _null), t8 === t3, t6, true, _null); + }, + get$quote() { + return this.quote; } }; A.QuoteListItem_build_closure.prototype = {