private async void SaveChanges() { IsLoading = true; await _accountingJournalEndpoint.Update(JournalDetails.ToList()); ResetCommandsAndView(); }
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()); }