/// <summary> /// Updates an existing journal entry by updating the description value /// </summary> public JournalEntriesModel Edit(string orgCode, int year, int period, string source, string entryNumber) { JournalEntriesModel journalEntryModel = APIUtil.GetJournalEntry(USISDKClient, orgCode, year, period, source, entryNumber); string description = "Journal entry description edited via test " + System.DateTime.Now.ToString(); journalEntryModel.Description = description; journalEntryModel = APIUtil.UpdateJouralEntry(USISDKClient, journalEntryModel); return(journalEntryModel); }
/// <summary> /// Adds a Journal Entry /// </summary> public JournalEntriesModel Add(string orgCode, int Event, int year, int period, string source, string entryNumber, string status, string description, System.DateTime transactionDate) { var myJournalEntry = new JournalEntriesModel { Organization = orgCode, Event = Event, Year = year, Period = period, Source = source, EntryNumber = entryNumber, Status = status, Description = description, TransactionDate = transactionDate }; return(APIUtil.AddJournalEntry(USISDKClient, myJournalEntry)); }