Example #1
0
 partial void OnLedgerReportingCurrencyAdjustmentJournalHeaderChanging(global::Microsoft.Dynamics.DataEntities.LedgerReportingCurrencyAdjustmentJournalHeader value);
Example #2
0
        public static LedgerReportingCurrencyAdjustmentJournalLine CreateLedgerReportingCurrencyAdjustmentJournalLine(string dataAreaId,
                                                                                                                      string journalBatchNumber,
                                                                                                                      decimal lineNumber,
                                                                                                                      decimal creditAmount,
                                                                                                                      global::System.DateTimeOffset transDate,
                                                                                                                      decimal debitAmount,
                                                                                                                      global::Microsoft.Dynamics.DataEntities.Currency ledgerReportingCurrencyAdjustmentJournalLineCurrency,
                                                                                                                      global::Microsoft.Dynamics.DataEntities.LedgerReportingCurrencyAdjustmentJournalHeader ledgerReportingCurrencyAdjustmentJournalHeader)
        {
            LedgerReportingCurrencyAdjustmentJournalLine ledgerReportingCurrencyAdjustmentJournalLine = new LedgerReportingCurrencyAdjustmentJournalLine();

            ledgerReportingCurrencyAdjustmentJournalLine.dataAreaId         = dataAreaId;
            ledgerReportingCurrencyAdjustmentJournalLine.JournalBatchNumber = journalBatchNumber;
            ledgerReportingCurrencyAdjustmentJournalLine.LineNumber         = lineNumber;
            ledgerReportingCurrencyAdjustmentJournalLine.CreditAmount       = creditAmount;
            ledgerReportingCurrencyAdjustmentJournalLine.TransDate          = transDate;
            ledgerReportingCurrencyAdjustmentJournalLine.DebitAmount        = debitAmount;
            if ((ledgerReportingCurrencyAdjustmentJournalLineCurrency == null))
            {
                throw new global::System.ArgumentNullException("ledgerReportingCurrencyAdjustmentJournalLineCurrency");
            }
            ledgerReportingCurrencyAdjustmentJournalLine.LedgerReportingCurrencyAdjustmentJournalLineCurrency = ledgerReportingCurrencyAdjustmentJournalLineCurrency;
            if ((ledgerReportingCurrencyAdjustmentJournalHeader == null))
            {
                throw new global::System.ArgumentNullException("ledgerReportingCurrencyAdjustmentJournalHeader");
            }
            ledgerReportingCurrencyAdjustmentJournalLine.LedgerReportingCurrencyAdjustmentJournalHeader = ledgerReportingCurrencyAdjustmentJournalHeader;
            return(ledgerReportingCurrencyAdjustmentJournalLine);
        }