Exemple #1
0
 public ProductSKUs CreateProductSKUs(ProductSKU productsku)
 {
     this.ProductSPUName = productsku.ProductSPUName;
     this.ProductPrice   = productsku.DealerPrice;
     this.ProductPV      = productsku.PV;
     this.ProductSKUId   = productsku.Id;
     return(this);
 }
Exemple #2
0
        public OrderItem CreateOrderItem(ProductSKU productsku, int count)
        {
            this.Id    = Guid.NewGuid();
            this.Code  = "OrderItem " + DateTime.Now.ToString();
            this.Count = count;

            this.OrderItemTotalPrice = new OrderItemTotalPrice().CreateOrderItemTotalPrice(productsku,
                                                                                           count);
            this.OrderItemTotalPV = new OrderItemTotalPV().CreateOrderItemTotalPV(productsku,
                                                                                  count);
            this.ProductSKUs = new ProductSKUs().CreateProductSKUs(productsku);
            return(this);
        }
Exemple #3
0
 public OrderItemTotalPrice CreateOrderItemTotalPrice(ProductSKU productsku, int count)
 {
     this.SubTotalPrice = productsku.DealerPrice * count;
     return(this);
 }
 public OrderItemTotalPV CreateOrderItemTotalPV(ProductSKU productsku, int count)
 {
     this.SubTotalPV = productsku.PV * count;
     return(this);
 }