namespace MMDAL.DTO.StockValuation;
///
/// One lot (or cost layer) slice returned by FIFO/LIFO allocation.
/// Multiple slices make up one issue transaction.
///
public class FifoAllocationDTO
{
/// LotId from TLOT (lot-based) or CostLayerId from TCOSTLAYER (layer-based).
public long SourceId { get; set; }
public decimal AllocatedQuantity { get; set; }
public decimal UnitCost { get; set; }
public decimal AllocatedValue { get; set; }
}
/// Blended result after all lots/layers are applied to an issue line.
public class FifoBlendedCostDTO
{
public int ItemId { get; set; }
public int SKUId { get; set; }
public int StoreId { get; set; }
public decimal TotalQuantity { get; set; }
public decimal BlendedUnitCost { get; set; }
public decimal TotalValue { get; set; }
public List Allocations { get; set; } = [];
}