public virtual OrderRowEntity AddRow(ProductEntity product, double quantity, IProductPricePolicy pricePolicy) { var row = OrderRowEntity.Create(this, product, quantity, pricePolicy); AddRow(row); return(row); }
public virtual void RemoveRow(OrderRowEntity row) { if (Rows.Contains(row)) { row.Synchronize = SynchronizeType.Deleted; RenumerableRows(); RecalcTotals(); } }
public virtual void AddRow(OrderRowEntity row) { Rows.Add(row); row.ItemNumber = Rows.Count; RecalcTotals(); }