namespace MMDAL.DTO.StockValuation;
///
/// Tracks each GL posting generated by the stock account posting process.
/// PostingType=2 (NonStockCharge) covers the legacy gap where erection charges,
/// service items, etc. on GRN had no TSTOCKLEDGER row and were never posted.
///
public class StockAccountPostDetailDTO
{
public long StockAccountPostDetailId { get; set; }
public int OUID { get; set; }
public int ObjectTypeId { get; set; }
public int ObjectId { get; set; }
public int ObjectDetailId { get; set; }
public int ItemId { get; set; }
public string ItemName { get; set; } = string.Empty;
public int SKUId { get; set; }
/// 0=StockedItem, 1=CapitalItem, 2=NonStockCharge
public byte PostingType { get; set; }
public string PostingTypeName { get; set; } = string.Empty;
public decimal PostedValue { get; set; }
public int GLAccount { get; set; }
public string GLAccountName { get; set; } = string.Empty;
/// 0=Pending, 1=Posted, 2=Failed
public byte PostingStatus { get; set; }
public string? PostedError { get; set; }
public DateTime CreatedOn { get; set; }
}