public PriceLog(PartInstance partInstance, Price price) { this.TimeStamp = price.TimeStamp; this.IsCurrent = true; this.PartInstance = partInstance; this.Price = price; }
public void Set(PartInstance partInstance, Price price, DateTime timeStamp, bool isCurrent) { this.PartInstance = partInstance; this.Price = price; this.TimeStamp = timeStamp; this.IsCurrent = isCurrent; }
public PriceLog(DateTime timeStamp, bool isCurrent, PartInstance partInstance, Price price) { this.TimeStamp = timeStamp; this.IsCurrent = isCurrent; this.PartInstance = partInstance; this.Price = price; }
public BubblerParameter(PartInstance instance, double net, double gross, double tare) { this.GrossWeight = gross; this.NetWeight = net; this.Tare = tare; this.PartInstance = instance; this.Measured = 0; this.Weight = 0; }
public void SetupCheckInStandard(PartInstance instance, InventoryAction inventoryAction, int locationId, DateTime timeStamp) { this.TimeStamp = timeStamp; this.PartInstance = instance; this.UnitCost = instance.UnitCost; this.TotalCost = instance.TotalCost; this.InventoryAction = inventoryAction; this.Quantity = instance.Quantity; this.LocationId = locationId; }
public void SetupCheckinBubbler(PartInstance instance, InventoryAction inventoryAction, int locationId, DateTime timeStamp) { this.TimeStamp = timeStamp; this.PartInstance = instance; this.Weight = instance.BubblerParameter.Weight; this.MeasuredWeight = instance.BubblerParameter.Measured; this.UnitCost = instance.UnitCost; this.TotalCost = instance.TotalCost; this.InventoryAction = inventoryAction; this.Quantity = instance.Quantity; this.LocationId = locationId; }
public Transaction(PartInstance instance, InventoryAction inventoryAction, double measured, double weight, Location location, DateTime timeStamp) { this.TimeStamp = timeStamp; this.Weight = weight; this.MeasuredWeight = measured; this.UnitCost = instance.UnitCost; this.Quantity = 1; //this.TotalCost = (instance.BubblerParameter.NetWeight * instance.UnitCost); this.TotalCost = (instance.IsBubbler) ? (instance.UnitCost * instance.BubblerParameter.NetWeight) : (this.Quantity * this.UnitCost); this.InventoryAction = inventoryAction; this.LocationId = location.Id; this.PartInstanceId = instance.Id; }