Пример #1
0
        /// <summary>
        /// this function calculates the balances of the accounts involved, if this batch would be posted
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TestPostBatch(System.Object sender, EventArgs e)
        {
            if (FPreviouslySelectedDetailRow == null)
            {
                MessageBox.Show(Catalog.GetString("There is no current Batch row selected!"),
                                Catalog.GetString("Test Post Batch"),
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation);
                return;
            }

            TFrmGLBatch GLBatchForm = (TFrmGLBatch)this.ParentForm;

            try
            {
                GLBatchForm.FCurrentGLBatchAction = TGLBatchEnums.GLBatchAction.TESTING;

                FPostLogicObject.TestPostBatch(FPreviouslySelectedDetailRow);
            }
            finally
            {
                GLBatchForm.FCurrentGLBatchAction = TGLBatchEnums.GLBatchAction.NONE;
            }
        }
Пример #2
0
 /// <summary>
 /// this function calculates the balances of the accounts involved, if this batch would be posted
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void TestPostBatch(System.Object sender, EventArgs e)
 {
     FPostLogicObject.TestPostBatch(FPreviouslySelectedDetailRow);
 }