Changed equals to greater than.

This commit is contained in:
Adam McCane 2024-02-20 22:23:32 -05:00
parent e2fdf2a9fe
commit f85b91d5d6

View File

@ -814,7 +814,7 @@ namespace Louis__Pharmacy_CNSA212_FP
numRefills = row.Cells[1].Value.ToString(); numRefills = row.Cells[1].Value.ToString();
pastNumRefills = row.Cells[2].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); MessageBox.Show("This prescription has reached the maximum number of refills.", "Max Refill", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }