void beginTransaction() { if (currentTransaction == null) { currentTransaction = new Invoice() { TransactionDateTime = DateTime.Now, EmployeeId = masterController.LoginEmployee.User_id }; dbController.insertTransaction(currentTransaction); currentTransaction.InvoiceId = dbController.getTransactionId(currentTransaction); totalAmount = 0M; } else { txtEncode.Focus(); } }
void beginTransaction() { if (currentTransaction == null) { currentTransaction = new Invoice() { TransactionDateTime = DateTime.Now, EmployeeId = masterController.LoginEmployee.User_id }; dbController.insertTransaction(currentTransaction); currentTransaction.InvoiceId = dbController.getTransactionId(currentTransaction); lblTransactionno.Text = "POS_" + currentTransaction.InvoiceId.ToString("00000"); totalAmount = 0M; activateServices(true); } else { txtEncode.Focus(); } }