partial void OnFixedAssetBookV2Changing(global::Microsoft.Dynamics.DataEntities.FixedAssetBookV2 value);
        public static FixedAssetBookSpecialDepreciationAllowance CreateFixedAssetBookSpecialDepreciationAllowance(string dataAreaId,
                                                                                                                  string fixedAssetId,
                                                                                                                  string bookId,
                                                                                                                  string specialDepreciationAllowanceId,
                                                                                                                  decimal percentage,
                                                                                                                  decimal amount,
                                                                                                                  int priority,
                                                                                                                  global::Microsoft.Dynamics.DataEntities.AssetSpecialDepreciationAllowance assetSpecialDepreciationAllowance,
                                                                                                                  global::Microsoft.Dynamics.DataEntities.FixedAssetBookV2 fixedAssetBookV2,
                                                                                                                  global::Microsoft.Dynamics.DataEntities.FixedAsset fixedAsset)
        {
            FixedAssetBookSpecialDepreciationAllowance fixedAssetBookSpecialDepreciationAllowance = new FixedAssetBookSpecialDepreciationAllowance();

            fixedAssetBookSpecialDepreciationAllowance.dataAreaId   = dataAreaId;
            fixedAssetBookSpecialDepreciationAllowance.FixedAssetId = fixedAssetId;
            fixedAssetBookSpecialDepreciationAllowance.BookId       = bookId;
            fixedAssetBookSpecialDepreciationAllowance.SpecialDepreciationAllowanceId = specialDepreciationAllowanceId;
            fixedAssetBookSpecialDepreciationAllowance.Percentage = percentage;
            fixedAssetBookSpecialDepreciationAllowance.Amount     = amount;
            fixedAssetBookSpecialDepreciationAllowance.Priority   = priority;
            if ((assetSpecialDepreciationAllowance == null))
            {
                throw new global::System.ArgumentNullException("assetSpecialDepreciationAllowance");
            }
            fixedAssetBookSpecialDepreciationAllowance.AssetSpecialDepreciationAllowance = assetSpecialDepreciationAllowance;
            if ((fixedAssetBookV2 == null))
            {
                throw new global::System.ArgumentNullException("fixedAssetBookV2");
            }
            fixedAssetBookSpecialDepreciationAllowance.FixedAssetBookV2 = fixedAssetBookV2;
            if ((fixedAsset == null))
            {
                throw new global::System.ArgumentNullException("fixedAsset");
            }
            fixedAssetBookSpecialDepreciationAllowance.FixedAsset = fixedAsset;
            return(fixedAssetBookSpecialDepreciationAllowance);
        }