{"action":"created","issue":{"url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/issues/129","repository_url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler","labels_url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/issues/129/comments","events_url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/issues/129/events","html_url":"https://github.com/SaturdayNeighborhoodHealthClinic/osler/issues/129","id":170314732,"number":129,"title":"Voucher Requirement","user":{"login":"daminitandon","id":14188709,"avatar_url":"https://avatars.githubusercontent.com/u/14188709?v=3","gravatar_id":"","url":"https://api.github.com/users/daminitandon","html_url":"https://github.com/daminitandon","followers_url":"https://api.github.com/users/daminitandon/followers","following_url":"https://api.github.com/users/daminitandon/following{/other_user}","gists_url":"https://api.github.com/users/daminitandon/gists{/gist_id}","starred_url":"https://api.github.com/users/daminitandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daminitandon/subscriptions","organizations_url":"https://api.github.com/users/daminitandon/orgs","repos_url":"https://api.github.com/users/daminitandon/repos","events_url":"https://api.github.com/users/daminitandon/events{/privacy}","received_events_url":"https://api.github.com/users/daminitandon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T02:33:12Z","updated_at":"2016-08-10T08:26:21Z","closed_at":null,"body":"In order to submit work-ups, volunteers have to put in $1 under what the patient pays for the write-up to go through. Is there a way to fix this? Not sure what the other requirements are for this error->it may only be a problem when there is a non-zero voucher amount put in."},"comment":{"url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/issues/comments/238799205","html_url":"https://github.com/SaturdayNeighborhoodHealthClinic/osler/issues/129#issuecomment-238799205","issue_url":"https://api.github.com/repos/SaturdayNeighborhoodHealthClinic/osler/issues/129","id":238799205,"user":{"login":"justinrporter","id":3531723,"avatar_url":"https://avatars.githubusercontent.com/u/3531723?v=3","gravatar_id":"","url":"https://api.github.com/users/justinrporter","html_url":"https://github.com/justinrporter","followers_url":"https://api.github.com/users/justinrporter/followers","following_url":"https://api.github.com/users/justinrporter/following{/other_user}","gists_url":"https://api.github.com/users/justinrporter/gists{/gist_id}","starred_url":"https://api.github.com/users/justinrporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinrporter/subscriptions","organizations_url":"https://api.github.com/users/justinrporter/orgs","repos_url":"https://api.github.com/users/justinrporter/repos","events_url":"https://api.github.com/users/justinrporter/events{/privacy}","received_events_url":"https://api.github.com/users/justinrporter/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T08:26:21Z","updated_at":"2016-08-10T08:26:21Z","body":"Yeah, we can do this easily. We have similar validation for the `voucher amount` field. Should we also not require this field to be filled?\r\n\r\n@nakul2234 you should be able to fix this by removing the folliwng code from `workup/forms.py`:\r\n\r\n```python\r\n        if cleaned_data.get('got_voucher') and \\\r\n           not cleaned_data.get('patient_pays'):\r\n\r\n            self.add_error('patient_pays', \"If the patient recieved a \" +\r\n                           \"voucher, specify the amount the patient pays.\")\r\n\r\n        if cleaned_data.get('got_imaging_voucher') and \\\r\n           not cleaned_data.get('imaging_voucher_amount'):\r\n\r\n            self.add_error('imaging_voucher_amount', \"If the patient recieved a \" +\r\n                           \"imaging voucher, value of the voucher must be specified.\")\r\n```"}}
{"actor":{"display_login":"justinrporter"}}