public static RoyaltyAgreementLineAmount CreateRoyaltyAgreementLineAmount(string dataAreaId, string royaltyAgreementId, string royaltyAgreementLineId, long lineNumber, decimal toNetSalesAmount, decimal fromGrossSalesAmount, decimal fromNetSalesAmount, decimal toGrossSalesAmount, decimal fixedRoyaltyAmount, decimal royaltyAmountPerProductUnitSold, decimal salesPriceQuantity, decimal royaltyPercentage, global::Microsoft.Dynamics.DataEntities.RoyaltyAgreementLine royaltyAgreementLine) { RoyaltyAgreementLineAmount royaltyAgreementLineAmount = new RoyaltyAgreementLineAmount(); royaltyAgreementLineAmount.dataAreaId = dataAreaId; royaltyAgreementLineAmount.RoyaltyAgreementId = royaltyAgreementId; royaltyAgreementLineAmount.RoyaltyAgreementLineId = royaltyAgreementLineId; royaltyAgreementLineAmount.LineNumber = lineNumber; royaltyAgreementLineAmount.ToNetSalesAmount = toNetSalesAmount; royaltyAgreementLineAmount.FromGrossSalesAmount = fromGrossSalesAmount; royaltyAgreementLineAmount.FromNetSalesAmount = fromNetSalesAmount; royaltyAgreementLineAmount.ToGrossSalesAmount = toGrossSalesAmount; royaltyAgreementLineAmount.FixedRoyaltyAmount = fixedRoyaltyAmount; royaltyAgreementLineAmount.RoyaltyAmountPerProductUnitSold = royaltyAmountPerProductUnitSold; royaltyAgreementLineAmount.SalesPriceQuantity = salesPriceQuantity; royaltyAgreementLineAmount.RoyaltyPercentage = royaltyPercentage; if ((royaltyAgreementLine == null)) { throw new global::System.ArgumentNullException("royaltyAgreementLine"); } royaltyAgreementLineAmount.RoyaltyAgreementLine = royaltyAgreementLine; return(royaltyAgreementLineAmount); }
partial void OnRoyaltyAgreementLineChanging(global::Microsoft.Dynamics.DataEntities.RoyaltyAgreementLine value);
public static RoyaltyAgreementLineProductSelection CreateRoyaltyAgreementLineProductSelection(string dataAreaId, string royaltyAgreementLineId, string royaltyAgreementId, string itemNumber, string salesUnitSymbol, string qualifyingSiteId, string qualifyingWarehouseId, string productConfigurationId, string productColorId, string productSizeId, string productStyleId, global::Microsoft.Dynamics.DataEntities.RoyaltyAgreementLine royaltyAgreementLine) { RoyaltyAgreementLineProductSelection royaltyAgreementLineProductSelection = new RoyaltyAgreementLineProductSelection(); royaltyAgreementLineProductSelection.dataAreaId = dataAreaId; royaltyAgreementLineProductSelection.RoyaltyAgreementLineId = royaltyAgreementLineId; royaltyAgreementLineProductSelection.RoyaltyAgreementId = royaltyAgreementId; royaltyAgreementLineProductSelection.ItemNumber = itemNumber; royaltyAgreementLineProductSelection.SalesUnitSymbol = salesUnitSymbol; royaltyAgreementLineProductSelection.QualifyingSiteId = qualifyingSiteId; royaltyAgreementLineProductSelection.QualifyingWarehouseId = qualifyingWarehouseId; royaltyAgreementLineProductSelection.ProductConfigurationId = productConfigurationId; royaltyAgreementLineProductSelection.ProductColorId = productColorId; royaltyAgreementLineProductSelection.ProductSizeId = productSizeId; royaltyAgreementLineProductSelection.ProductStyleId = productStyleId; if ((royaltyAgreementLine == null)) { throw new global::System.ArgumentNullException("royaltyAgreementLine"); } royaltyAgreementLineProductSelection.RoyaltyAgreementLine = royaltyAgreementLine; return(royaltyAgreementLineProductSelection); }