private async void ProcessRows() { bool result = await _accountingJournalEndpoint.Post(Entries.ToList()); if (result) { RequestClose?.Invoke(new DialogResult(ButtonResult.OK)); } }
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(); }
private async void SaveJournal() { await _accountingJournalEndpoint.Post(JournalDetails.ToList()); }