internal void RecalculateSum()
        {
            var gridItems = (IEnumerable <GLClosingSheetLineLocal>)dgClosingSheetLine.ItemsSource;

            if (gridItems == null)
            {
                return;
            }
            var sum = RecalculateSum(gridItems, dgClosingSheetLine.MasterAccount, this.postingDate, this.RoundTo100, VatCache);

            SetStatusText(this.primo, sum / 100d);
            masterAccount.setChangeAndNewBalance(sum);
        }
        void SumLines(GLAccountClosingSheetClient acc)
        {
            var sum = RecalculateSum((IEnumerable <GLClosingSheetLineLocal>)acc.Lines, acc._Account, this.postingDate, this.RoundTo100, this.VatCache);

            acc.setChangeAndNewBalance(sum);
        }