Beispiel #1
0
        public Entity NewLineFactory(object item)
        {
            QuoteDetail newLine = new QuoteDetail();

            jQuery.Extend(newLine, item);
            newLine.LineItemNumber        = Lines.GetPagingInfo().TotalRows + 1;
            newLine.QuoteId               = new EntityReference(new Guid(GetQuoteId()), "quote", null);
            newLine.TransactionCurrencyId = new EntityReference(new Guid(_transactionCurrencyId), "transactioncurrency", "");
            return(newLine);
        }