Beispiel #1
0
        public static VendorPaymentJournalFee CreateVendorPaymentJournalFee(string dataAreaId,
                                                                            string sourceJournalBatchNumber,
                                                                            decimal sourceJournalLineNumber,
                                                                            string paymentFeeId,
                                                                            decimal amount,
                                                                            global::Microsoft.Dynamics.DataEntities.Currency currency,
                                                                            global::Microsoft.Dynamics.DataEntities.VendorPaymentJournalLine vendorPaymentJournalLine,
                                                                            global::Microsoft.Dynamics.DataEntities.VendorPaymentFee vendorPaymentFee)
        {
            VendorPaymentJournalFee vendorPaymentJournalFee = new VendorPaymentJournalFee();

            vendorPaymentJournalFee.dataAreaId = dataAreaId;
            vendorPaymentJournalFee.SourceJournalBatchNumber = sourceJournalBatchNumber;
            vendorPaymentJournalFee.SourceJournalLineNumber  = sourceJournalLineNumber;
            vendorPaymentJournalFee.PaymentFeeId             = paymentFeeId;
            vendorPaymentJournalFee.Amount = amount;
            if ((currency == null))
            {
                throw new global::System.ArgumentNullException("currency");
            }
            vendorPaymentJournalFee.Currency = currency;
            if ((vendorPaymentJournalLine == null))
            {
                throw new global::System.ArgumentNullException("vendorPaymentJournalLine");
            }
            vendorPaymentJournalFee.VendorPaymentJournalLine = vendorPaymentJournalLine;
            if ((vendorPaymentFee == null))
            {
                throw new global::System.ArgumentNullException("vendorPaymentFee");
            }
            vendorPaymentJournalFee.VendorPaymentFee = vendorPaymentFee;
            return(vendorPaymentJournalFee);
        }
Beispiel #2
0
 partial void OnVendorPaymentFeeChanging(global::Microsoft.Dynamics.DataEntities.VendorPaymentFee value);