patnum incrementing

This forum is for programmers who have questions about the source code.
Post Reply
mukesh
Posts: 6
Joined: Mon Feb 25, 2013 6:40 am

patnum incrementing

Post by mukesh » Tue May 21, 2013 3:13 am

I observe from the EditPatientInformation screen, even if clicking on "Cancel", the patient number is incremented. Is this done with a purpose? I wanted to understand the logic behind maintaining the patient info in DB with the paitent status =4 even when the addition of patient is aborted by clicking on Cancel button. Should not the newly added row in the patient table be deleted when the user clicks on Cancel?

User avatar
jsalmon
Posts: 1571
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: patnum incrementing

Post by jsalmon » Tue May 21, 2013 9:15 am

Yes it is done for a purpose. It used to mess up the UAppoint synch function so we simply flag patients as deleted (status 4).
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Post Reply