Exemplo n.º 1
0
        private void FormReconcileEdit_Load(object sender, EventArgs e)
        {
            textDate.Text       = ReconcileCur.DateReconcile.ToShortDateString();
            checkLocked.Checked = ReconcileCur.IsLocked;
            textStart.Text      = ReconcileCur.StartingBal.ToString("n");
            textEnd.Text        = ReconcileCur.EndingBal.ToString("n");
            textTarget.Text     = (ReconcileCur.EndingBal - ReconcileCur.StartingBal).ToString("n");
            bool includeUncleared = !ReconcileCur.IsLocked;

            JournalList = JournalEntries.GetForReconcile(ReconcileCur.AccountNum, includeUncleared, ReconcileCur.ReconcileNum);
            FillGrid();
        }
Exemplo n.º 2
0
        private void checkLocked_Click(object sender, EventArgs e)
        {
            if (checkLocked.Checked)
            {
                if (textTarget.Text != textSum.Text)
                {
                    MsgBox.Show(this, "Target change must match sum of transactions.");
                    checkLocked.Checked = false;
                    return;
                }
            }
            else             //unchecking
                             //need to check permissions here.
            {
            }
            SaveList();
            bool includeUncleared = !checkLocked.Checked;

            JournalList = JournalEntries.GetForReconcile(ReconcileCur.AccountNum, includeUncleared, ReconcileCur.ReconcileNum);
            FillGrid();
        }