public Opportunity_OrderQuoteContentDTO(OrderQuoteContent OrderQuoteContent) { this.Id = OrderQuoteContent.Id; this.IndirectSalesOrderId = OrderQuoteContent.OrderQuoteId; this.ItemId = OrderQuoteContent.ItemId; this.UnitOfMeasureId = OrderQuoteContent.UnitOfMeasureId; this.Quantity = OrderQuoteContent.Quantity; this.PrimaryUnitOfMeasureId = OrderQuoteContent.PrimaryUnitOfMeasureId; this.EditedPriceStatusId = OrderQuoteContent.EditedPriceStatusId; this.RequestedQuantity = OrderQuoteContent.RequestedQuantity; this.PrimaryPrice = OrderQuoteContent.PrimaryPrice; this.SalePrice = OrderQuoteContent.SalePrice; this.DiscountPercentage = OrderQuoteContent.DiscountPercentage; this.DiscountAmount = OrderQuoteContent.DiscountAmount; this.GeneralDiscountPercentage = OrderQuoteContent.GeneralDiscountPercentage; this.GeneralDiscountAmount = OrderQuoteContent.GeneralDiscountAmount; this.Amount = OrderQuoteContent.Amount; this.TaxPercentage = OrderQuoteContent.TaxPercentage; this.TaxPercentageOther = OrderQuoteContent.TaxPercentageOther; this.TaxAmount = OrderQuoteContent.TaxAmount; this.Factor = OrderQuoteContent.Factor; this.Item = OrderQuoteContent.Item == null ? null : new Opportunity_ItemDTO(OrderQuoteContent.Item); this.PrimaryUnitOfMeasure = OrderQuoteContent.PrimaryUnitOfMeasure == null ? null : new Opportunity_UnitOfMeasureDTO(OrderQuoteContent.PrimaryUnitOfMeasure); this.UnitOfMeasure = OrderQuoteContent.UnitOfMeasure == null ? null : new Opportunity_UnitOfMeasureDTO(OrderQuoteContent.UnitOfMeasure); this.EditedPriceStatus = OrderQuoteContent.EditedPriceStatus == null ? null : new Opportunity_EditedPriceStatusDTO(OrderQuoteContent.EditedPriceStatus); this.Errors = OrderQuoteContent.Errors; }
public Opportunity_OpportunityItemMappingDTO(OpportunityItemMapping OpportunityItemMapping) { this.OpportunityId = OpportunityItemMapping.OpportunityId; this.ItemId = OpportunityItemMapping.ItemId; this.UnitOfMeasureId = OpportunityItemMapping.UnitOfMeasureId; this.Quantity = OpportunityItemMapping.Quantity; this.RequestQuantity = OpportunityItemMapping.RequestQuantity; this.PrimaryPrice = OpportunityItemMapping.PrimaryPrice; this.SalePrice = OpportunityItemMapping.SalePrice; this.DiscountPercentage = OpportunityItemMapping.DiscountPercentage; this.Discount = OpportunityItemMapping.Discount; this.VAT = OpportunityItemMapping.VAT; this.VATOther = OpportunityItemMapping.VATOther; this.Amount = OpportunityItemMapping.Amount; this.Factor = OpportunityItemMapping.Factor; this.Item = OpportunityItemMapping.Item == null ? null : new Opportunity_ItemDTO(OpportunityItemMapping.Item); this.UnitOfMeasure = OpportunityItemMapping.UnitOfMeasure == null ? null : new Opportunity_UnitOfMeasureDTO(OpportunityItemMapping.UnitOfMeasure); this.Errors = OpportunityItemMapping.Errors; }