From f85b91d5d661bf9a4de25b728e74bc929a402697 Mon Sep 17 00:00:00 2001 From: Adam McCane Date: Tue, 20 Feb 2024 22:23:32 -0500 Subject: [PATCH] Changed equals to greater than. --- Louis'-Pharmacy_CNSA212-FP/frmInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs index b187317..324ce50 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs @@ -814,7 +814,7 @@ namespace Louis__Pharmacy_CNSA212_FP numRefills = row.Cells[1].Value.ToString(); pastNumRefills = row.Cells[2].Value.ToString(); - if (numRefills == pastNumRefills) + if (Int32.Parse(pastNumRefills) >= Int32.Parse(numRefills)) { MessageBox.Show("This prescription has reached the maximum number of refills.", "Max Refill", MessageBoxButtons.OK, MessageBoxIcon.Error); }