Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-06-22 04:29:09 +00:00
parent 0b17ae90f5
commit 120f4bf518

View File

@ -73783,7 +73783,8 @@
this.quote = t1; this.quote = t1;
this.action = t2; this.action = t2;
}, },
SaveQuoteSuccess: function SaveQuoteSuccess() { SaveQuoteSuccess: function SaveQuoteSuccess(t0) {
this.quote = t0;
}, },
AddQuoteSuccess: function AddQuoteSuccess(t0) { AddQuoteSuccess: function AddQuoteSuccess(t0) {
this.quote = t0; this.quote = t0;
@ -74188,7 +74189,7 @@
return A.InvoiceEntity_InvoiceEntity(_null, _null, _null, _null, _null); return A.InvoiceEntity_InvoiceEntity(_null, _null, _null, _null, _null);
}, },
_updateEditing12(quote, action) { _updateEditing12(quote, action) {
return action.get$purchaseOrder(); return action.get$quote();
}, },
_addQuoteItem(quote, action) { _addQuoteItem(quote, action) {
return quote.rebuild$1(new A._addQuoteItem_closure(action)); return quote.rebuild$1(new A._addQuoteItem_closure(action));
@ -74297,7 +74298,7 @@
return quoteState.rebuild$1(new A._addQuote_closure(action)); return quoteState.rebuild$1(new A._addQuote_closure(action));
}, },
_updateQuote(invoiceState, 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) { _setLoadedQuotes(quoteState, action) {
return quoteState.loadQuotes$1(action.quotes); return quoteState.loadQuotes$1(action.quotes);
@ -367613,11 +367614,27 @@
A._PurchaseOrderUIState_Object_EntityUIState.prototype = {}; A._PurchaseOrderUIState_Object_EntityUIState.prototype = {};
A.ViewQuoteList.prototype = {$isPersistUI: 1}; A.ViewQuoteList.prototype = {$isPersistUI: 1};
A.ViewQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1}; A.ViewQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1};
A.EditQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1}; A.EditQuote.prototype = {$isPersistUI: 1, $isPersistPrefs: 1,
A.ShowEmailQuote.prototype = {}; get$quote() {
A.ShowPdfQuote.prototype = {}; 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.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.UpdateQuoteClient.prototype = {$isPersistUI: 1};
A.LoadQuote.prototype = {}; A.LoadQuote.prototype = {};
A.LoadQuotes.prototype = {}; A.LoadQuotes.prototype = {};
@ -367633,7 +367650,10 @@
return "LoadQuoteSuccess{quote: " + A.S(this.quote) + "}"; return "LoadQuoteSuccess{quote: " + A.S(this.quote) + "}";
}, },
$isPersistData: 1, $isPersistData: 1,
$isStopLoading: 1 $isStopLoading: 1,
get$quote() {
return this.quote;
}
}; };
A.LoadQuotesRequest.prototype = {$isStartLoading: 1}; A.LoadQuotesRequest.prototype = {$isStartLoading: 1};
A.LoadQuotesFailure.prototype = { A.LoadQuotesFailure.prototype = {
@ -367659,16 +367679,32 @@
A.AddQuoteItems.prototype = {$isPersistUI: 1}; A.AddQuoteItems.prototype = {$isPersistUI: 1};
A.UpdateQuoteItem.prototype = {$isPersistUI: 1}; A.UpdateQuoteItem.prototype = {$isPersistUI: 1};
A.DeleteQuoteItem.prototype = {$isPersistUI: 1}; A.DeleteQuoteItem.prototype = {$isPersistUI: 1};
A.SaveQuoteRequest.prototype = {$isStartSaving: 1}; A.SaveQuoteRequest.prototype = {$isStartSaving: 1,
A.SaveQuoteSuccess.prototype = {$isPersistUI: 1, $isPersistData: 1, $isStopSaving: 1}; get$quote() {
A.AddQuoteSuccess.prototype = {$isPersistUI: 1, $isPersistData: 1, $isStopSaving: 1}; 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.SaveQuoteFailure.prototype = {$isStopSaving: 1};
A.EmailQuoteRequest.prototype = {$isStartSaving: 1, A.EmailQuoteRequest.prototype = {$isStartSaving: 1,
get$body(receiver) { get$body(receiver) {
return this.body; 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.EmailQuoteFailure.prototype = {$isStopSaving: 1};
A.MarkSentQuotesRequest.prototype = {$isStartSaving: 1}; A.MarkSentQuotesRequest.prototype = {$isStartSaving: 1};
A.MarkSentQuoteSuccess.prototype = {$isPersistData: 1, $isStopSaving: 1}; A.MarkSentQuoteSuccess.prototype = {$isPersistData: 1, $isStopSaving: 1};
@ -367718,7 +367754,11 @@
A.ApproveQuotes.prototype = {$isStartSaving: 1}; A.ApproveQuotes.prototype = {$isStartSaving: 1};
A.ApproveQuoteSuccess.prototype = {$isStopSaving: 1}; A.ApproveQuoteSuccess.prototype = {$isStopSaving: 1};
A.ApproveQuoteFailure.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.SaveQuoteDocumentFailure.prototype = {$isStopSaving: 1};
A.handleQuoteAction_closure.prototype = { A.handleQuoteAction_closure.prototype = {
call$1(quote) { call$1(quote) {
@ -368200,7 +368240,7 @@
if (t1.quote.get$isNew()) if (t1.quote.get$isNew())
t2.get$_dispatchers()[0].call$1(new A.AddQuoteSuccess(quote)); t2.get$_dispatchers()[0].call$1(new A.AddQuoteSuccess(quote));
else 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) if (t1.action === B.EntityAction_convertToInvoice)
t2.get$_dispatchers()[0].call$1(new A.RefreshData(null, false, false, false)); t2.get$_dispatchers()[0].call$1(new A.RefreshData(null, false, false, false));
t1.completer.complete$1(0, quote); t1.completer.complete$1(0, quote);
@ -368361,7 +368401,7 @@
}; };
A._saveDocument__closure9.prototype = { A._saveDocument__closure9.prototype = {
call$1(quote) { 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); this.action.completer.complete$1(0, null);
}, },
$signature: 67 $signature: 67
@ -428906,6 +428946,9 @@
t8 = t5.id; t8 = t5.id;
t3 = t3.get$isEditing() ? quoteUIState.editing.id : quoteUIState.selectedId; 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); 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 = { A.QuoteListItem_build_closure.prototype = {