Ejemplo n.º 1
0
        private void ReleaseTransaction()
        {
            decimal decScannedAmt = decimal.Parse(lblTotalScannedAmt.Text);

            if (mclsSalesTransactionDetails.SubTotal != decScannedAmt)
            {
                MessageBox.Show("Transaction subtotal versus scanned amount is not yet equal, you cannot release this transaction.", "RetailPlus", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                Data.SalesTransactions clsSalesTransactions = new Data.SalesTransactions();
                clsSalesTransactions.Release(long.Parse(lblTransactionNo.Tag.ToString()), mlngReleaserID, mstrReleaserName);
                clsSalesTransactions.CommitAndDispose();
                LoadOptions();
                MessageBox.Show("Transaction has been released.", "RetailPlus", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Ejemplo n.º 2
0
 private void ReleaseTransaction()
 {
     decimal decScannedAmt = decimal.Parse(lblTotalScannedAmt.Text);
     if (mclsSalesTransactionDetails.SubTotal != decScannedAmt)
         MessageBox.Show("Transaction subtotal versus scanned amount is not yet equal, you cannot release this transaction.", "RetailPlus", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     else 
     {
         Data.SalesTransactions clsSalesTransactions = new Data.SalesTransactions();
         clsSalesTransactions.Release(long.Parse(lblTransactionNo.Tag.ToString()), mlngReleaserID, mstrReleaserName);
         clsSalesTransactions.CommitAndDispose();
         LoadOptions();
         MessageBox.Show("Transaction has been released.", "RetailPlus", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }