Changed equals to greater than.
This commit is contained in:
parent
e2fdf2a9fe
commit
f85b91d5d6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user