public ProductSKUs CreateProductSKUs(ProductSKU productsku) { this.ProductSPUName = productsku.ProductSPUName; this.ProductPrice = productsku.DealerPrice; this.ProductPV = productsku.PV; this.ProductSKUId = productsku.Id; return(this); }
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); }
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); }