IMA-WorldHealth / bhima-1.X

A hospital information system for developing countries.
GNU General Public License v2.0
10 stars 14 forks source link

Hard Coded Values #694

Open sfount opened 9 years ago

sfount commented 9 years ago

There have been many cases when we are in a rush to release a feature that we hard code in a value to make something look complete - this is fine for a temporary fix; however we must make sure there are no examples of this in the development or master branches.

I will include as many as I can here - if you come across additional examples please comment them here, between us we should be able to make sure the entire application is driven by real data.

jniles commented 9 years ago

There are a couple places in the journal.js code where the code reads result.project_id = 1 // HBB. I am fixing those in my branch, but it is the same type of issue, and we should be vigilant not to let those slip into production. I'm sure if you look at the code running at Tshikaji, you will find all of these issues.

jniles commented 9 years ago

@sfount, are these fixed?

sfount commented 9 years ago

They are not. I had planned to spend a few hours collecting all of these so that once we have addressed this we can be confident there are no parts of BHIMA that will break because of hardcoded values. I haven't been able to do this yet and this is still an open issue.

jniles commented 9 years ago

In the purchase receipt template, there is this line:

{{ model.common.enterprise.po_box || 'B.P. 205' }}<br>

I'm changing this specific one, but I'm sure it exists in other receipt templates.