Exemplo n.º 1
0
        /// <summary>
        /// Updates an existing journal entry by updating the description value
        /// </summary>
        public JournalEntryDetailsModel Edit(string orgCode, int year, int period, string source, string entryNumber, int line)
        {
            JournalEntryDetailsModel journalEntryDetailModel = APIUtil.GetJournalEntryDetail(USISDKClient, orgCode, year, period, source, entryNumber, line);
            string description = journalEntryDetailModel.Description + " : Inventory JE import " + System.DateTime.Now.ToString();

            journalEntryDetailModel.Description = description;

            journalEntryDetailModel = APIUtil.UpdateJouralEntryDetail(USISDKClient, journalEntryDetailModel);
            return(journalEntryDetailModel);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds a Journal Entry
        /// </summary>
        public JournalEntryDetailsModel Add(string orgCode, int Event, int year, int period, string source, string entryNumber, string status, string description, string glAccount, System.DateTime date)
        {
            var myJournalEntryDetail = new JournalEntryDetailsModel
            {
                Organization = orgCode,
                Event        = Event,
                Year         = year,
                Period       = period,
                Source       = source,
                EntryNumber  = entryNumber,
                Status       = status,
                Description  = description,
                GLAccount    = glAccount,
                Date         = date
            };

            return(APIUtil.AddJournalEntryDetail(USISDKClient, myJournalEntryDetail));
        }