public ClientStock(Stock stock) { Item = new ClientItem(stock.Item); Vendor = new ClientVendor(stock.Vendor); Amount = stock.Amount; Location = stock.Location; }
public ClientOrderItem(OrderItem orderItem) { Item = new ClientItem(orderItem.Item); Vendor = new ClientVendor(orderItem.Vendor); Order = new ClientOrder(orderItem.Order, false); PaidPrice = orderItem.PaidPrice; OrderAmount = orderItem.OrderAmount; }
public ClientProduct(Product prod, Item item, Vendor vendor) { SKU = prod.SKU; Price = prod.Price; PackageAmount = prod.PackageAmount; Item = new ClientItem(item); Vendor = new ClientVendor(vendor); }
public ClientOrderItem(OrderItem orderItem, Product product = null) { Item = new ClientItem(orderItem.Item); Vendor = new ClientVendor(orderItem.Vendor); Order = new ClientOrder(orderItem.Order, false); PaidPrice = orderItem.PaidPrice; OrderAmount = orderItem.OrderAmount; TotalAmount = orderItem.TotalAmount; if (product != null) { Product = new ClientProduct(product, orderItem.Item, orderItem.Vendor); } }