From c293d057a4018caa36f4ec990f8a12594b4d08bd Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Mon, 9 Oct 2006 18:33:28 +0000 Subject: [PATCH] misc fixes --- interface/billing/sl_eob_invoice.php | 23 +++++++++++++------- interface/billing/sl_receipts_report.php | 8 +++---- interface/fax/faxq.php | 36 ++++++++++++++++++-------------- 3 files changed, 39 insertions(+), 28 deletions(-) diff --git a/interface/billing/sl_eob_invoice.php b/interface/billing/sl_eob_invoice.php index 651befcd8..1fd02ee7d 100644 --- a/interface/billing/sl_eob_invoice.php +++ b/interface/billing/sl_eob_invoice.php @@ -74,10 +74,13 @@ function setins(istr) { // Compute an adjustment that writes off the balance: function writeoff(code) { var f = document.forms[0]; - var tmp = - f['form_line[' + code + '][bal]'].value - - f['form_line[' + code + '][pay]'].value; - f['form_line[' + code + '][adj]'].value = Number(tmp).toFixed(2); + var belement = f['form_line[' + code + '][bal]']; + var pelement = f['form_line[' + code + '][pay]']; + var aelement = f['form_line[' + code + '][adj]']; + var relement = f['form_line[' + code + '][reason]']; + var tmp = belement.value - pelement.value; + aelement.value = Number(tmp).toFixed(2); + if (aelement.value && ! relement.value) relement.selectedIndex = 1; return false; } @@ -449,17 +452,21 @@ function validate(f) { /> - + - + - +   W - $value\n"; diff --git a/interface/billing/sl_receipts_report.php b/interface/billing/sl_receipts_report.php index 3c92da010..aaaf5a4c9 100644 --- a/interface/billing/sl_receipts_report.php +++ b/interface/billing/sl_receipts_report.php @@ -16,11 +16,11 @@ // form then the code below may work for you. // include_once("../forms/fee_sheet/codes.php"); - function is_clinic($code) { - global $cpt, $hcpcs; - return ($cpt[xl('Lab')][$code] || $cpt[xl('Immunizations')][$code] || - $hcpcs[xl('Therapeutic Injections')][$code]); + global $bcodes; + return ($bcodes['CPT4'][xl('Lab')][$code] || + $bcodes['CPT4'][xl('Immunizations')][$code] || + $bcodes['HCPCS'][xl('Therapeutic Injections')][$code]); } function bucks($amount) { diff --git a/interface/fax/faxq.php b/interface/fax/faxq.php index 6226f9d07..71d6db01a 100644 --- a/interface/fax/faxq.php +++ b/interface/fax/faxq.php @@ -9,6 +9,17 @@ require_once("../globals.php"); require_once("$srcdir/acl.inc"); + $faxstats = array( + 'B' => 'Blocked', + 'D' => 'Sent successfully', + 'F' => 'Failed', + 'P' => 'Pending', + 'R' => 'Send in progress', + 'S' => 'Sleeping', + 'T' => 'Suspended', + 'W' => 'Waiting', + ); + // Get the recvq entries, parse and sort by filename. // $statlines = array(); @@ -82,6 +93,7 @@ td.tabhead {