Permalink
Browse files

fixes to prior statements improvements

When using the new pdf/modern statements, turned off option to print/download
the text statements (since it will show html output).

for the global billing number. will use this if set. otherwise will
use the facility billing number.
  • Loading branch information...
1 parent eb11791 commit 79bd8fbcea024ada97179a5e22e25bd3e430d802 @bradymiller bradymiller committed Dec 3, 2016
Showing with 12 additions and 10 deletions.
  1. +6 −4 interface/billing/sl_eob_search.php
  2. +5 −5 sites/default/statement.inc.php
  3. +1 −1 version.php
@@ -220,7 +220,7 @@ function upload_file_to_client_pdf($file_to_send) {
// detail = array of details, see invoice_summary.inc.php
//
if ($stmt['cid'] != $row['pid']) {
- if (!empty($stmt)) ++$stmt_count;
+ if (!empty($stmt)) ++$stmt_count;
$stmt['cid'] = $row['pid'];
$stmt['pid'] = $row['pid'];
$stmt['dun_count'] = $row['stmt_count'];
@@ -283,7 +283,7 @@ function upload_file_to_client_pdf($file_to_send) {
"WHERE id = " . $row['id']);
}
fwrite($fhprint, make_statement($stmt));
-
+
} // end while
if (!empty($stmt)) ++$stmt_count;
@@ -725,8 +725,10 @@ function npopup(pid) {
<?php } else { ?>
<input type='button' value='<?php xl('Select All','e')?>' onclick='checkAll(true)' /> &nbsp;
<input type='button' value='<?php xl('Clear All','e')?>' onclick='checkAll(false)' /> &nbsp;
- <input type='submit' name='form_print' value='<?php xl('Print Selected Statements','e'); ?>' /> &nbsp;
- <input type='submit' name='form_download' value='<?php xl('Download Selected Statements','e'); ?>' /> &nbsp;
+ <?php if ($GLOBALS['statement_appearance'] != '1') { ?>
+ <input type='submit' name='form_print' value='<?php xl('Print Selected Statements','e'); ?>' /> &nbsp;
+ <input type='submit' name='form_download' value='<?php xl('Download Selected Statements','e'); ?>' /> &nbsp;
+ <?php } ?>
<input type='submit' name='form_pdf' value='<?php xl('PDF Download Selected Statements','e'); ?>' /> &nbsp;
<?php } ?>
<input type='checkbox' name='form_without' value='1' /> <?php xl('Without Update','e'); ?>
@@ -34,7 +34,7 @@
*
* 2. Branded Statement, whose core is build from 1., the original statement, using HTML2PDF.
*
- * To customize 2., add your practice location/images/practice_logo.gif
+ * To customize 2., add your practice location/images/practice_logo.gif
* In the base/default install this is located at '/openemr/sites/default/images/practice_logo.gif',
* Adjust directory paths per your installation.
* Further customize 2. manually in functions report_2() and create_HTML_statement(), below.
@@ -268,7 +268,7 @@ function create_HTML_statement($stmt) {
#
$ageline = xl('Current') .': ' . sprintf("%.2f", $aging[0]);
for ($age_index = 1; $age_index < ($num_ages - 1); ++$age_index) {
- $ageline .= ' | ' . ($age_index * 30 + 1) . '-' . ($age_index * 30 + 30) . ':' .
+ $ageline .= ' | ' . ($age_index * 30 + 1) . '-' . ($age_index * 30 + 30) . ':' .
sprintf(" %.2f", $GLOBALS['gbl_currency_symbol'].''.$aging[$age_index]);
}
@@ -280,7 +280,7 @@ function create_HTML_statement($stmt) {
$label_call = xl('Please call if any of the above information is incorrect.');
$label_prompt = xl('We appreciate prompt payment of balances due.');
$label_dept = xl('Billing Department');
- $label_bill_phone = $GLOBALS['billing_phone_number'];
+ $label_bill_phone = (!empty($GLOBALS['billing_phone_number']) ? $GLOBALS['billing_phone_number'] : $billing_phone );
$label_appointments = xl('Future Appointments').':';
// This is the top portion of the page.
@@ -555,7 +555,7 @@ function create_statement($stmt) {
// Note that "\n" is a line feed (new line) character.
// reformatted to handle i8n by tony
$out = "\n\n";
- $providerNAME = getProviderName($stmt['providerID']);
+ $providerNAME = getProviderName($stmt['providerID']);
$out .= sprintf("%-30s %s %-s\n",$clinic_name,$stmt['patient'],$stmt['today']);
$out .= sprintf("%-30s %s: %-s\n",$providerNAME,$label_chartnum,$stmt['pid']);
$out .= sprintf("%-30s %s\n",$clinic_addr,$label_insinfo);
@@ -674,7 +674,7 @@ function create_statement($stmt) {
$label_call = xl('Please call if any of the above information is incorrect.');
$label_prompt = xl('We appreciate prompt payment of balances due.');
$label_dept = xl('Billing Department');
- $label_bill_phone = $GLOBALS['billing_phone_number'];
+ $label_bill_phone = (!empty($GLOBALS['billing_phone_number']) ? $GLOBALS['billing_phone_number'] : $billing_phone );
$label_appointments = xl('Future Appointments').':';
// This is the bottom portion of the page.
View
@@ -17,7 +17,7 @@
// is a database change in the course of development. It is used
// internally to determine when a database upgrade is needed.
//
-$v_database = 202;
+$v_database = 203;
// Access control version identifier, this is to be incremented whenever there
// is a access control change in the course of development. It is used

0 comments on commit 79bd8fb

Please sign in to comment.