Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks on the print button #243

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Checks on the print button #243

wants to merge 2 commits into from

Conversation

akhilrv
Copy link

@akhilrv akhilrv commented Oct 26, 2012

No description provided.

if (selectedPatient['DrugGrid'][i].drugName=="" && selectedPatient['DrugGrid'][i].qty==0){
// To remove empty rows.
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using
if (condition)
{ //nothing }
else
something

You can try
if ( !(condition) )
something

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it in there if it was necessary to remove the empty 'druggrid' row later. I was splicing the empty row, but there was a problem with json stringify or parse as the it wasn't displaying any row at all in 'print.html'.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can paste the code here (or in pastebin and give us link), we can try to help you with any of your problem.

…ore even if gender was set.

Opd Module  - Default Image for patient list per doctor, and default image set for patient specific page which has their medical data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants