CS2113-AY1819S1-T12-2 / HealthBook

Health Book - An address book app for health care professionals
https://cs2113-ay1819s1-t12-2.github.io/main/
MIT License
0 stars 5 forks source link

adding 'future' events to 'historical events works #177

Closed nus-pe-script closed 5 years ago

nus-pe-script commented 5 years ago

Describe the bug Adding a future event (for example in 2019), can be done to a person's "history"

To Reproduce Steps to reproduce the behavior:

  1. Go to the application
  2. Enter: addhist 3 hsd/31-02-2019 hsa/Haram hsc/Arshay House hsds/d
  3. It adds successfully

Expected behavior It should return a prompt to say that it is invalid?

Screenshots untitled8


Reported by: @tttaus Severity: Medium

[original: nusCS2113-AY1819S1/pe-1#660]

xShaivan commented 5 years ago

A command exception for invalid future dates has been implemented so users will only be able to add medical history entries of the current day or before today. The constraint updates with real time.