private async void ProcessRows()
        {
            bool result = await _accountingJournalEndpoint.Post(Entries.ToList());

            if (result)
            {
                RequestClose?.Invoke(new DialogResult(ButtonResult.OK));
            }
        }
예제 #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();
        }
예제 #3
0
 private async void SaveJournal()
 {
     await _accountingJournalEndpoint.Post(JournalDetails.ToList());
 }