示例#1
0
        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;
        }
示例#2
0
        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;
        }
示例#3
0
 public GoodItemDetails(GoodItemDetails details)
 {
     Name = details.Name;
 }