Skip to content

Commit

Permalink
added fax field to facility on prescription if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tekknogenius committed Aug 3, 2006
1 parent a598f27 commit 0c1ee45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/C_Prescription.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function multiprint_header(& $pdf, $p) {
//print header
$pdf->ezImage($GLOBALS['fileroot'] . '/interface/pic/Rx.png','','50','','center','');
$pdf->ezColumnsStart(array('num'=>2, 'gap'=>10));
$res = sqlQuery("SELECT concat('<b>',f.name,'</b>\n',f.street,'\n',f.city,', ',f.state,' ',f.postal_code,'\nTel:',f.phone) addr FROM users JOIN facility AS f ON f.name = users.facility where users.id ='"
$res = sqlQuery("SELECT concat('<b>',f.name,'</b>\n',f.street,'\n',f.city,', ',f.state,' ',f.postal_code,'\nTel:',f.phone,if(f.fax != '',concat('\nFax: ',f.fax),'')) addr FROM users JOIN facility AS f ON f.name = users.facility where users.id ='"
. mysql_real_escape_string($p->provider->id) . "'");

$pdf->ezText($res['addr'],12);
Expand Down

0 comments on commit 0c1ee45

Please sign in to comment.