private void ForgetCardTransaction(ACMSDAL.ConnectionProvider connProvider, ACMSLogic.POS pos) { if (pos.NCategoryID == 17 && pos.POSForgetCardAction == ACMSLogic.POS.ForgetCardAction.Refund) { TblClassAttendance classAttendance = new TblClassAttendance(); classAttendance.MainConnectionProvider = connProvider; TblReceipt sqlReceipt = new TblReceipt(); sqlReceipt.MainConnectionProvider = connProvider; foreach (DataRow row in pos.ReceiptItemsTable.Rows) { DateTime dtDate = ACMS.Convert.ToDateTime(row["strReferenceNo"]); DataTable classAttendanceTable = classAttendance.GetForgetCardClassAttendance(pos.StrMembershipID, dtDate); foreach (DataRow r in classAttendanceTable.Rows) { r["fRefunded"] = true; } classAttendance.SaveData(classAttendanceTable); /* string receiptToVoid = row["strCode"].ToString(); sqlReceipt.StrReceiptNo = receiptToVoid; sqlReceipt.SelectOne(); sqlReceipt.FVoid = SqlBoolean.True; sqlReceipt.Update();*/ } } }