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); } }
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); } }