namespace MMDAL.DTO.Production { // Internal DTO used by ProductionDAL.InsertStockLedgerFromProduction. // Populated by ProductionBLL per detail row; one instance per stock-post line. public class ProductionStockLedgerPostDTO { public string StockLedgerNumber { get; set; } = string.Empty; public DateTime ProductionDate { get; set; } public string ProductionNumber { get; set; } = string.Empty; public int OUId { get; set; } public int BizTransactionTypeId { get; set; } public int ProductionId { get; set; } public int ProductionDetailId { get; set; } public int ObjectTypeId { get; set; } // MENTITY.ENTITYID for TPRODUCTION public int ObjectDetailTypeId { get; set; } // MENTITY.ENTITYID for TPRODUCTIONDETAIL public int AllocationId { get; set; } = -1; public int StoreId { get; set; } // TOSTOREID for output, FROMSTOREID for consumption public int WorkCenterId { get; set; } public int ItemId { get; set; } public int SkuId { get; set; } // TSTOCKLEDGER STOCKPOSTTYPE: 0=ADD (inward/output), 1=LESS (issue/consumption) public byte StockPostType { get; set; } public decimal ProductionQuantity { get; set; } public int UomId { get; set; } public decimal OutputWeight { get; set; } public decimal GoodQuantity { get; set; } public decimal RejectedQuantity { get; set; } public decimal ReworkQuantity { get; set; } public decimal OtherQuantity { get; set; } public int IndentDetailId { get; set; } = -1; public int TenantId { get; set; } } }