public GoodItem(GoodItem item) { //set units _units = 0; AddUnits(item.GetUnits()); //set unit price SetUnitPrice(item.GetUnitPrice()); Id = item.Id; _isImported = item.GetImportStatus(); _isTaxExempt = item.GetExemptStatus(); _discountRate = item.GetDiscountRate(); _goodItemType = item.GetItemType(); Details = item.Details; }
public GoodItem(decimal unitPrice, int units, bool isImported, GoodItemTypeEnum goodItemType, decimal?discountRate, GoodItemDetails details, Guid?id = null) { //set units _units = 0; AddUnits(units); //set unit price SetUnitPrice(unitPrice); Id = id ?? new Guid(); _isImported = isImported; _isTaxExempt = goodItemType.IsTaxExempt; _discountRate = discountRate ?? 0; _goodItemType = goodItemType.Id; Details = details; }
public GoodItemDetails(GoodItemDetails details) { Name = details.Name; }