using System; namespace MMDAL.DTO.MMHead { /// /// Maps 1:1 to GB5_TVP_TALLOCATION used in POST_MM_DOCUMENT. /// Provide these rows inline in MMHeadDTO.AllocationArray to save allocation /// directly within the document save transaction. /// public class AllocationRowDTO { public int AllocationId { get; set; } public int BizTransactionTypeId { get; set; } public int ObjectHeaderTypeId { get; set; } // EntityId of TMMHEAD = -1899997952 public int ObjectHeaderId { get; set; } // DocumentId (assigned by BLL) public int ObjectTypeId { get; set; } // -1899997952 for head row; -1899997854 for detail row public int ObjectId { get; set; } // MMHeadId for head row; MMDetailId for detail row public byte AllocationType { get; set; } // 0=Source/Head, 1=Against/Detail public byte AllocationNature { get; set; } // 0=Normal public decimal Quantity { get; set; } public int ProcessId { get; set; } = -1; public int AllotedAllocationId { get; set; } // Self for Type=0; source AllocationId for Type=1 public decimal RejectedQuantity { get; set; } public decimal ReworkQuantity { get; set; } public decimal OtherQuantity { get; set; } public decimal ExcessQuantity { get; set; } public DateTime? ModifiedOn { get; set; } public decimal FreeQuantity { get; set; } } }