Esempio n. 1
0
        private async void SaveChanges()
        {
            IsLoading = true;
            await _accountingJournalEndpoint.Update(JournalDetails.ToList());

            ResetCommandsAndView();
        }
Esempio n. 2
0
        private async void ProcessJournalToMainLedger()
        {
            IsLoading = true;
            int journamNumber = await _accountingJournalEndpoint.LatestJournalNumber();

            foreach (var item in JournalDetails)
            {
                item.DatumKnjizenja = SelectedJournal.DatumKnjizenja;
                item.BrojTemeljnice = journamNumber + 1;
            }
            await _accountingJournalEndpoint.Post(JournalDetails.ToList());

            //Delete temporary journal with number 0
            await _accountingJournalEndpoint.Delete(new AccountingJournalModel
            {
                BrojTemeljnice  = SelectedJournal.BrojTemeljnice,
                VrstaTemeljnice = SelectedJournal.VrstaTemeljnice
            });

            ResetCommandsAndView();
        }
Esempio n. 3
0
 private async void SaveJournal()
 {
     await _accountingJournalEndpoint.Post(JournalDetails.ToList());
 }