public void CalculatePeriodAccountsBalance(FiscalYear period) { if (period.IsPostClosingEntriesLedger) { return; } period.PreparePeriodAccountBalance(organization.ChartOfAccount.GetAccountsList()); period.ResetPeriodAccountsBalance(); this.UpdatePeriodBalances(period); period.UpdateProfit(); this.SaveChanges(); }