pshung29 / turbocare

Automatically exported from code.google.com/p/turbocare
0 stars 0 forks source link

Registration page 1 entry #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Registration screen page 1, after pressing save/Next tab. 
2. Initially patient type & Insurance Provider are "Hospital Insurance" and
National Insurance respectively. I have changed the type as Self-pay but
insurance provider wouldn't change. See the screen shot attached.
3.If I entered some number in "Insurance Number" field then it accepting
the record and goes to page 2 for next information.

What is the expected output? What do you see instead?
If self-pay then Insurance Provider should be blank and it should not ask
for Insurance Number. It is good if the age will accept months also. (1.08
years)

What version of the product are you using? On what operating system?

Version - 238
Please provide any additional information below.

500 Internal error

The server encountered an unexpected condition which prevented it from
fulfilling the request.

Page handler: <function _wrapper at 0x2aaaaadaa398>
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools
.py",
line 105, in _run
    self.main()
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools
.py",
line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/identity
/conditions.py",
line 275, in _wrapper
    return fn( *args, **kw )
  File "<string>", line 3, in RegistrationPage1Reload
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/controll
ers.py",
line 334, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/database
.py",
line 245, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/controll
ers.py",
line 351, in <lambda>
    mapping, fragment, args, kw)))
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/controll
ers.py",
line 378, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/errorhan
dling.py",
line 71, in try_call
    return func(self, *args, **kw)
  File "<string>", line 3, in RegistrationPage1Reload
  File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/identity
/conditions.py",
line 235, in require
    return fn(self, *args, **kwargs)
  File "/home/me/svn/turbocare/turbocare/controllers_registration.py", line
438, in RegistrationPage1Reload
    Age = int(((datetime.datetime.now().date() - DateBirth).days+0.5)/365.25)
TypeError: unsupported operand type(s) for -: 'datetime.date' and 'unicode'

Powered by CherryPy 2.2.1 

Original issue reported on code.google.com by tushar.c...@gmail.com on 9 Apr 2007 at 10:56

Attachments:

GoogleCodeExporter commented 8 years ago
I remade the item an enhancement, because while it showed the insurance company 
and
insurance number, it did not save them or use them.

I have now made it so that the Insurance company and number are hidden when 
anything
but Private Insurance are selected.

See revision 240

Regarding Age, I will make this a separate feature request.

Regarding the error listed above, I could not duplicate this, but I tried to 
put some
code in place to fix it.  Try it out and see if it happens.

Original comment by umpen...@gmail.com on 12 Apr 2007 at 12:14

GoogleCodeExporter commented 8 years ago

Original comment by umpen...@gmail.com on 12 Apr 2007 at 12:14