本文整理汇总了PHP中oeFormatMoney函数的典型用法代码示例。如果您正苦于以下问题:PHP oeFormatMoney函数的具体用法?PHP oeFormatMoney怎么用?PHP oeFormatMoney使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了oeFormatMoney函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: bucks
function bucks($amount)
{
if ($amount) {
return oeFormatMoney($amount);
}
return "";
}
开发者ID:minggLu,项目名称:openemr,代码行数:7,代码来源:indigent_patients_report.php
示例2: testAmericanTwoDecimal
/**
* @dataProvider example_american_two_decimal
*/
public function testAmericanTwoDecimal( $amount, $formatted )
{
$GLOBALS['currency_decimals'] = '2';
$GLOBALS['currency_dec_point'] = '.';
$GLOBALS['currency_thousands_sep'] = ',';
$this->assertEquals( $formatted, oeFormatMoney( $amount ), "'$amount' converts to '$formatted'" );
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:10,代码来源:FormattingTest.php
示例3: bucks
function bucks($amount)
{
if ($amount != 0) {
return oeFormatMoney($amount);
}
return '';
}
开发者ID:mi-squared,项目名称:openemr,代码行数:7,代码来源:inventory_transactions.php
示例4: writeDetailLine
function writeDetailLine($bgcolor, $class, $ptname, $invnumber, $code, $date, $description, $amount, $balance)
{
global $last_ptname, $last_invnumber, $last_code;
if ($ptname == $last_ptname) {
$ptname = ' ';
} else {
$last_ptname = $ptname;
}
if ($invnumber == $last_invnumber) {
$invnumber = ' ';
} else {
$last_invnumber = $invnumber;
}
if ($code == $last_code) {
$code = ' ';
} else {
$last_code = $code;
}
if ($amount) {
$amount = sprintf("%.2f", $amount);
}
if ($balance) {
$balance = sprintf("%.2f", $balance);
}
$dline = " <tr bgcolor='{$bgcolor}'>\n" . " <td class='{$class}'>{$ptname}</td>\n" . " <td class='{$class}'>{$invnumber}</td>\n" . " <td class='{$class}'>{$code}</td>\n" . " <td class='{$class}'>" . oeFormatShortDate($date) . "</td>\n" . " <td class='{$class}'>{$description}</td>\n" . " <td class='{$class}' align='right'>" . oeFormatMoney($amount) . "</td>\n" . " <td class='{$class}' align='right'>" . oeFormatMoney($balance) . "</td>\n" . " </tr>\n";
echo $dline;
}
开发者ID:rreddy70,项目名称:openemr,代码行数:27,代码来源:sl_eob_process.php
示例5: bucks
function bucks($amount)
{
if (empty($amount)) {
return '';
}
return oeFormatMoney($amount);
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:7,代码来源:services_by_category.php
示例6: bucks
function bucks($amount)
{
if ($amount) {
$amount = oeFormatMoney($amount);
return $amount;
}
return '';
}
开发者ID:nitinkunte,项目名称:openemr,代码行数:8,代码来源:front_payment.php
示例7: oeFormatMoney
echo $b['code_type'] . ":\t" . $b['code'] . " " . $b['modifier'] . " " . $b['code_text'] . " ";
echo "</td>\n";
echo "<td class=text>";
echo oeFormatMoney($b['fee']);
echo "</td>\n";
echo "</tr>\n";
$total += $b['fee'];
if ($b['code_type'] == "COPAY") {
$copays += $b['fee'];
}
}
}
echo "<tr><td> </td></tr>";
echo "<tr><td class=bold>" . xl('Sub-Total') . "</td><td class=text>" . oeFormatMoney($total + abs($copays)) . "</td></tr>";
echo "<tr><td class=bold>" . xl('Paid') . "</td><td class=text>" . oeFormatMoney(abs($copays)) . "</td></tr>";
echo "<tr><td class=bold>" . xl('Total') . "</td><td class=text>" . oeFormatMoney($total) . "</td></tr>";
echo "</table>";
echo "<pre>";
//print_r($billings);
echo "</pre>";
} else {
printPatientBilling($pid);
}
echo "</div>\n";
// end of billing DIV
/****
} elseif ($val == "allergies") {
print "<span class=bold>Patient Allergies:</span><br>";
printListData($pid, "allergy", "1");
开发者ID:ekuiperemr,项目名称:openemr,代码行数:31,代码来源:custom_report.php
示例8: bucks
function bucks($amt)
{
return $amt != 0.0 ? oeFormatMoney($amt) : '';
}
开发者ID:katopenzz,项目名称:openemr,代码行数:4,代码来源:front_receipts_report.php
示例9: foreach
$ndcuom = $tmp[2];
$ndcqty = $tmp[3];
}
$billing_html[$iter["code_type"]] .= "<tr><td> </td><td class='small'>NDC: \n" . "<input type='hidden' name='ndc[{$ndclino}][code]' value='" . $iter[code] . "'>" . "<input type='text' name='ndc[{$ndclino}][ndcnum]' value='{$ndcnum}' " . "size='11' style='background-color:transparent'>" . " Qty: " . "<input type='text' name='ndc[{$ndclino}][ndcqty]' value='{$ndcqty}' " . "size='3' style='background-color:transparent;text-align:right'> " . "<select name='ndc[{$ndclino}][ndcuom]' style='background-color:transparent'>";
foreach ($ndc_uom_choices as $key => $value) {
$billing_html[$iter["code_type"]] .= "<option value='{$key}'";
if ($key == $ndcuom) {
$billing_html[$iter["code_type"]] .= " selected";
}
$billing_html[$iter["code_type"]] .= ">{$value}</option>";
}
$billing_html[$iter["code_type"]] .= "</select></td></tr>\n";
}
}
}
$billing_html["CPT4"] .= "<tr><td>" . xl('total') . ":</td><td>" . oeFormatMoney($total) . "</td></tr>\n";
foreach ($billing_html as $key => $val) {
print "<tr><td>{$key}</td><td><table>{$val}</table><td></tr><tr><td height=\"5\"></td></tr>\n";
}
}
?>
</tr></table>
</td>
</tr>
<input type="hidden" name="encounter_id" value="<?php
echo $encounter;
?>
">
<input type="hidden" name="patient_id" value="<?php
echo $pid;
?>
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:diagnosis.php
示例10: oeFormatMoney
echo '"' . $key . '",';
echo '"' . oeFormatMoney($val['charges']) . '",';
echo '"' . $val['visits'] . '",';
echo '"' . $val['patients'] . '",';
echo '"' . sprintf("%.1f", $val['patients'] * 100 / $patcount) . '"' . "\n";
} else {
?>
<tr>
<td>
<?php
echo $key;
?>
</td>
<td align='right'>
<?php
echo oeFormatMoney($val['charges']);
?>
</td>
<td align='right'>
<?php
echo $val['visits'];
?>
</td>
<td align='right'>
<?php
echo $val['patients'];
?>
</td>
<td align='right'>
<?php
printf("%.1f", $val['patients'] * 100 / $patcount);
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:insurance_allocation_report.php
示例11: oeFormatMoney
$justify .= " (<b>{$j}</b>)";
} else {
$justify .= " ({$j})";
}
$counter++;
}
}
}
$rhtml .= "<td><span class='text'>" . ($iter['code_type'] == 'COPAY' ? oeFormatMoney($iter['code']) : $iter['code']);
if ($iter['modifier']) {
$rhtml .= ":" . $iter['modifier'];
}
$rhtml .= "</span><span style='font-size:8pt;'>{$justify}</span></td>\n";
$rhtml .= '<td align="right"><span style="font-size:8pt;"> ';
if ($iter['id'] && $iter['fee'] > 0) {
$rhtml .= oeFormatMoney($iter['fee']);
}
$rhtml .= "</span></td>\n";
$rhtml .= '<td><span style="font-size:8pt;"> ';
if ($iter['id']) {
$rhtml .= getProviderName(empty($iter['provider_id']) ? $iter['enc_provider_id'] : $iter['provider_id']);
}
$rhtml .= "</span></td>\n";
$rhtml .= '<td width=100> <span style="font-size:8pt;">';
if ($iter['id']) {
$rhtml .= oeFormatSDFT(strtotime($iter["date"]));
}
$rhtml .= "</span></td>\n";
if ($iter['id'] && $iter['authorized'] != 1) {
$rhtml .= "<td><span class=alert>" . xl("Note: This code was not entered by an authorized user. Only authorized codes may be uploaded to the Open Medical Billing Network for processing. If you wish to upload these codes, please select an authorized user here.") . "</span></td>\n";
} else {
开发者ID:kgenaidy,项目名称:openemr,代码行数:31,代码来源:billing_report.php
示例12: generate_receipt
//.........这里部分代码省略.........
$charges += sprintf('%01.2f', $inrow['fee']);
receiptDetailLine($inrow['sale_date'], $inrow['name'], $inrow['fee'], $inrow['quantity']);
}
// Service and tax items
$inres = sqlStatement("SELECT * FROM billing WHERE " . "pid = ? AND encounter = ? AND " . "code_type != 'COPAY' AND activity = 1 " . "ORDER BY id", array($patient_id, $encounter));
while ($inrow = sqlFetchArray($inres)) {
$charges += sprintf('%01.2f', $inrow['fee']);
receiptDetailLine($svcdate, $inrow['code_text'], $inrow['fee'], $inrow['units']);
}
// Adjustments.
$inres = sqlStatement("SELECT " . "a.code_type, a.code, a.modifier, a.memo, a.payer_type, a.adj_amount, a.pay_amount, " . "s.payer_id, s.reference, s.check_date, s.deposit_date " . "FROM ar_activity AS a " . "LEFT JOIN ar_session AS s ON s.session_id = a.session_id WHERE " . "a.pid = ? AND a.encounter = ? AND " . "a.adj_amount != 0 " . "ORDER BY s.check_date, a.sequence_no", array($patient_id, $encounter));
while ($inrow = sqlFetchArray($inres)) {
$charges -= sprintf('%01.2f', $inrow['adj_amount']);
$payer = empty($inrow['payer_type']) ? 'Pt' : 'Ins' . $inrow['payer_type'];
receiptDetailLine($svcdate, $payer . ' ' . $inrow['memo'], 0 - $inrow['adj_amount'], 1);
}
?>
<tr>
<td colspan='5'> </td>
</tr>
<tr>
<td><?php
echo text(oeFormatShortDate($svcdispdate));
?>
</td>
<td><b><?php
echo xlt('Total Charges');
?>
</b></td>
<td align='right'> </td>
<td align='right'> </td>
<td align='right'><?php
echo text(oeFormatMoney($charges, true));
?>
</td>
</tr>
<tr>
<td colspan='5'> </td>
</tr>
<?php
// Get co-pays.
$inres = sqlStatement("SELECT fee, code_text FROM billing WHERE " . "pid = ? AND encounter = ? AND " . "code_type = 'COPAY' AND activity = 1 AND fee != 0 " . "ORDER BY id", array($patient_id, $encounter));
while ($inrow = sqlFetchArray($inres)) {
$charges += sprintf('%01.2f', $inrow['fee']);
receiptPaymentLine($svcdate, 0 - $inrow['fee'], $inrow['code_text']);
}
// Get other payments.
$inres = sqlStatement("SELECT " . "a.code_type, a.code, a.modifier, a.memo, a.payer_type, a.adj_amount, a.pay_amount, " . "s.payer_id, s.reference, s.check_date, s.deposit_date " . "FROM ar_activity AS a " . "LEFT JOIN ar_session AS s ON s.session_id = a.session_id WHERE " . "a.pid = ? AND a.encounter = ? AND " . "a.pay_amount != 0 " . "ORDER BY s.check_date, a.sequence_no", array($patient_id, $encounter));
while ($inrow = sqlFetchArray($inres)) {
$payer = empty($inrow['payer_type']) ? 'Pt' : 'Ins' . $inrow['payer_type'];
$charges -= sprintf('%01.2f', $inrow['pay_amount']);
receiptPaymentLine($svcdate, $inrow['pay_amount'], $payer . ' ' . $inrow['reference']);
}
?>
<tr>
<td colspan='5'> </td>
</tr>
<tr>
<td> </td>
<td><b><?php
echo xlt('Balance Due');
?>
</b></td>
<td colspan='2'> </td>
开发者ID:juggernautsei,项目名称:openemr,代码行数:67,代码来源:pos_checkout.php
示例13: generate_receipt
//.........这里部分代码省略.........
}
} else {
// Request all line items with money belonging to the invoice.
$inres = SLQuery("SELECT * FROM invoice WHERE " . "trans_id = {$trans_id} AND sellprice != 0 ORDER BY id");
if ($sl_err) {
die($sl_err);
}
for ($irow = 0; $irow < SLRowCount($inres); ++$irow) {
$row = SLGetRow($inres, $irow);
$amount = sprintf('%01.2f', $row['sellprice'] * $row['qty']);
$charges += $amount;
$desc = preg_replace('/^.{1,6}:/', '', $row['description']);
receiptDetailLine($svcdate, $desc, $amount, $row['qty']);
}
}
// end not $INTEGRATED_AR
?>
<tr>
<td colspan='5'> </td>
</tr>
<tr>
<td><?php
echo text(oeFormatShortDate($svcdispdate));
?>
</td>
<td><b><?php
echo xlt('Total Charges');
?>
</b></td>
<td align='right'> </td>
<td align='right'> </td>
<td align='right'><?php
echo text(oeFormatMoney($charges, true));
?>
</td>
</tr>
<tr>
<td colspan='5'> </td>
</tr>
<?php
if ($INTEGRATED_AR) {
// Get co-pays.
$inres = sqlStatement("SELECT fee, code_text FROM billing WHERE " . "pid = ? AND encounter = ? AND " . "code_type = 'COPAY' AND activity = 1 AND fee != 0 " . "ORDER BY id", array($patient_id, $encounter));
while ($inrow = sqlFetchArray($inres)) {
$charges += sprintf('%01.2f', $inrow['fee']);
receiptPaymentLine($svcdate, 0 - $inrow['fee'], $inrow['code_text']);
}
// Get other payments.
$inres = sqlStatement("SELECT " . "a.code, a.modifier, a.memo, a.payer_type, a.adj_amount, a.pay_amount, " . "s.payer_id, s.reference, s.check_date, s.deposit_date " . "FROM ar_activity AS a " . "LEFT JOIN ar_session AS s ON s.session_id = a.session_id WHERE " . "a.pid = ? AND a.encounter = ? AND " . "a.pay_amount != 0 " . "ORDER BY s.check_date, a.sequence_no", array($patient_id, $encounter));
$payer = empty($inrow['payer_type']) ? 'Pt' : 'Ins' . $inrow['payer_type'];
while ($inrow = sqlFetchArray($inres)) {
$charges -= sprintf('%01.2f', $inrow['pay_amount']);
receiptPaymentLine($svcdate, $inrow['pay_amount'], $payer . ' ' . $inrow['reference']);
}
} else {
$chart_id_cash = SLQueryValue("select id from chart where accno = '{$sl_cash_acc}'");
if ($sl_err) {
die($sl_err);
}
if (!$chart_id_cash) {
die("There is no COA entry for cash account '{$sl_cash_acc}'");
}
//
// Request all cash entries belonging to the invoice.
开发者ID:nitinkunte,项目名称:openemr,代码行数:67,代码来源:pos_checkout.php
示例14: expand_collapse_widget
$forceExpandAlways = true;
} else {
$forceExpandAlways = false;
}
expand_collapse_widget($widgetTitle, $widgetLabel, $widgetButtonLabel, $widgetButtonLink, $widgetButtonClass, $linkMethod, $bodyClass, $widgetAuth, $fixedWidth, $forceExpandAlways);
?>
<br>
<?php
//PATIENT BALANCE,INS BALANCE [email protected]
$patientbalance = get_patient_balance($pid, false);
//Debit the patient balance from insurance balance
$insurancebalance = get_patient_balance($pid, true) - $patientbalance;
$totalbalance = $patientbalance + $insurancebalance;
if ($GLOBALS['oer_config']['ws_accounting']['enabled']) {
// Show current balance and billing note, if any.
echo "<table border='0'><tr><td>" . "<table ><tr><td><span class='bold'><font color='red'>" . xlt('Patient Balance Due') . " : " . text(oeFormatMoney($patientbalance)) . "</font></span></td></tr>" . "<tr><td><span class='bold'><font color='red'>" . xlt('Insurance Balance Due') . " : " . text(oeFormatMoney($insurancebalance)) . "</font></span></td></tr>" . "<tr><td><span class='bold'><font color='red'>" . xlt('Total Balance Due') . " : " . text(oeFormatMoney($totalbalance)) . "</font></span></td></td></tr>";
if ($result['genericname2'] == 'Billing') {
echo "<tr><td><span class='bold'><font color='red'>" . xlt('Billing Note') . ":" . text($result['genericval2']) . "</font></span></td></tr>";
}
if ($result3['provider']) {
// Use provider in case there is an ins record w/ unassigned insco
echo "<tr><td><span class='bold'>" . xlt('Primary Insurance') . ': ' . text($insco_name) . "</span> ";
if ($result3['copay'] > 0) {
echo "<span class='bold'>" . xlt('Copay') . ': ' . text($result3['copay']) . "</span> ";
}
echo "<span class='bold'>" . xlt('Effective Date') . ': ' . text(oeFormatShortDate($result3['effdate'])) . "</span></td></tr>";
}
echo "</table></td></tr></td></tr></table><br>";
}
?>
</div> <!-- required for expand_collapse_widget -->
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:demographics.php
示例15: get_patient_balance
$colorend = "</span>";
}
//Display what the patient owes
$balance = get_patient_balance($patient_id);
?>
<?php
if ($billing_note || $balance) {
?>
<div style='margin-top:3px'>
<table width='80%'>
<?php
if ($balance != "0") {
// $formatted = sprintf((xl('$').'%01.2f'), $balance);
$formatted = oeFormatMoney($balance);
echo " <tr class='text billing'>\n";
echo " <td>" . $colorbeg . htmlspecialchars(xl('Balance Due'), ENT_NOQUOTES) . $colorend . " " . $colorbeg . htmlspecialchars($formatted, ENT_NOQUOTES) . $colorend . "</td>\n";
echo " </tr>\n";
}
if ($billing_note) {
echo " <tr class='text billing'>\n";
echo " <td>" . $colorbeg . htmlspecialchars(xl('Billing Note'), ENT_NOQUOTES) . $colorend . " " . $colorbeg . htmlspecialchars($billing_note, ENT_NOQUOTES) . $colorend . "</td>\n";
echo " </tr>\n";
}
?>
</table>
</div>
<br>
<?php
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:pnotes_full.php
示例16: endInsurance
function endInsurance($insrow)
{
global $export_patient_count, $export_dollars, $bgcolor;
global $grand_total_charges, $grand_total_adjustments, $grand_total_paid;
global $grand_total_agedbal, $is_due_ins, $form_age_cols;
global $initial_colspan, $form_cb_idays, $form_cb_err;
if (!$insrow['pid']) {
return;
}
$ins_balance = $insrow['amount'] - $insrow['paid'];
if ($_POST['form_export'] || $_POST['form_csvexport']) {
// No exporting of insurance summaries.
$export_patient_count += 1;
$export_dollars += $ins_balance;
} else {
echo " <tr bgcolor='{$bgcolor}'>\n";
echo " <td class='detail'>" . $insrow['insname'] . "</td>\n";
echo " <td class='detotal' align='right'> " . oeFormatMoney($insrow['charges']) . " </td>\n";
echo " <td class='detotal' align='right'> " . oeFormatMoney($insrow['adjustments']) . " </td>\n";
echo " <td class='detotal' align='right'> " . oeFormatMoney($insrow['paid']) . " </td>\n";
if ($form_age_cols) {
for ($c = 0; $c < $form_age_cols; ++$c) {
echo " <td class='detotal' align='right'> " . oeFormatMoney($insrow['agedbal'][$c]) . " </td>\n";
}
} else {
echo " <td class='detotal' align='right'> " . oeFormatMoney($ins_balance) . " </td>\n";
}
echo " </tr>\n";
}
$grand_total_charges += $insrow['charges'];
$grand_total_adjustments += $insrow['adjustments'];
$grand_total_paid += $insrow['paid'];
for ($c = 0; $c < $form_age_cols; ++$c) {
$grand_total_agedbal[$c] += $insrow['agedbal'][$c];
}
}
开发者ID:robonology,项目名称:openemr,代码行数:36,代码来源:collections_report.php
示例17: bucks
function bucks($amount)
{
if ($amount) {
echo attr(oeFormatMoney($amount));
}
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:6,代码来源:sl_receipts_report.php
示例18: PrintCreditDetail
function PrintCreditDetail($detail, $pat, $unassigned = false)
{
global $enc_pmt, $total_pmt, $enc_adj, $total_adj, $enc_bal, $total_bal;
global $bgcolor, $orow, $enc_units, $enc_chg;
foreach ($detail as $pmt) {
if ($unassigned) {
if ($pmt['pay_total'] - $pmt['applied'] == 0) {
continue;
}
}
$bgcolor = $bgcolor == "#FFFFDD" ? "#FFDDDD" : "#FFFFDD";
$print = "<tr bgcolor='" . attr($bgcolor) . "'>";
$print .= "<td class='detail'> </td>";
$method = List_Look($pmt['payment_method'], 'payment_method');
$desc = $pmt['description'];
$ref = $pmt['reference'];
if ($unassigned) {
$memo = List_Look($pmt['adjustment_code'], 'payment_adjustment_code');
} else {
$memo = $pmt['memo'];
}
$description = $method;
if ($ref) {
if ($description) {
$description .= ' - ';
}
$description .= $ref;
}
if ($desc) {
if ($description) {
$description .= ': ';
}
$description .= $desc;
}
if ($memo) {
if ($description) {
$description .= ' ';
}
$description .= '[' . $memo . ']';
}
$print .= "<td class='detail' colspan='2'>" . text($description) . " </td>";
$payer = $pmt['name'] == '' ? xl('Patient') : $pmt['name'];
if ($unassigned) {
$pmt_date = substr($pmt['post_to_date'], 0, 10);
} else {
$pmt_date = substr($pmt['post_time'], 0, 10);
}
$print .= "<td class='detail'>" . text($pmt_date) . " / " . text($payer) . "</td>";
$type = List_Look($pmt['payment_type'], 'payment_type');
$print .= "<td class='detail'>" . text($type) . " </td>";
if ($unassigned) {
$pmt_amt = $pmt['pay_total'] - $pmt['applied'];
$uac_bal = oeFormatMoney($pmt_amt * -1);
$uac_appl = oeFormatMoney($pmt['applied']);
$uac_total = oeFormatMoney($pmt['pay_total']);
$pmt_amt = $pmt['pay_total'];
$total_pmt = $total_pmt - $uac_bal;
} else {
$uac_total = '';
$uac_bal = '';
$uac_appl = '';
$pmt_amt = $pmt['pay_amount'];
$adj_amt = $pmt['adj_amount'];
$enc_pmt = $enc_pmt + $pmt['pay_amount'];
$total_pmt = $total_pmt + $pmt['pay_amount'];
$enc_adj = $enc_adj + $pmt['adj_amount'];
$total_adj = $total_adj + $pmt['adj_amount'];
}
$print_pmt = '';
if ($pmt_amt != 0) {
$print_pmt = oeFormatMoney($pmt_amt);
}
$print_adj = '';
if ($adj_amt != 0) {
$print_adj = oeFormatMoney($adj_amt);
}
$print .= "<td class='detail' style='text-align: right;'>" . text($uac_appl) . " </td>";
$print .= "<td class='detail' style='text-align: right;'>" . text($print_pmt) . " </td>";
$print .= "<td class='detail' style='text-align: right;'>" . text($print_adj) . " </td>";
$print .= "<td class='detail' style='text-align: right;'>" . text($uac_bal) . " </td>";
$print .= "</tr>\n";
echo $print;
if ($pmt['follow_up_note'] != '') {
$bgcolor = $bgcolor == "#FFFFDD" ? "#FFDDDD" : "#FFFFDD";
$print = "<tr bgcolor='" . attr($bgcolor) . "'>";
$print .= "<td class='detail' colspan='2'> </td>";
$print .= "<td colspan='7'>" . xlt('Follow Up Note') . ": ";
$print .= text($pmt['follow_up_note']);
$print .= "</td></tr>\n";
echo $print;
}
if ($unassigned) {
$total_bal = $total_bal + $uac_bal;
} else {
$enc_bal = $enc_bal - $pmt_amt - $adj_amt;
$total_bal = $total_bal - $pmt_amt - $adj_amt;
}
$orow++;
}
$bgcolor = $bgcolor == "#FFFFDD" ? "#FFDDDD" : "#FFFFDD";
//.........这里部分代码省略.........
开发者ID:juggernautsei,项目名称:openemr,代码行数:101,代码来源:pat_ledger.php
示例19: getIncudes
//.........这里部分代码省略.........
<h6><?php
echo htmlspecialchars(xl('Billing Information') . ":", ENT_QUOTES);
?>
</h6>
<?php
if (count($ar['newpatient']) > 0) {
$billings = array();
?>
<table>
<tr><td width='400' class='bold'><?php
echo htmlspecialchars(xl('Code'), ENT_QUOTES);
?>
</td><td class='bold'><?php
echo htmlspecialchars(xl('Fee'), ENT_QUOTES);
?>
</td></tr>
<?php
$total = 0.0;
$copays = 0.0;
foreach ($ar['newpatient'] as $be) {
$ta = split(":", $be);
$billing = getPatientBillingEncounter($pid, $ta[1]);
$billings[] = $billing;
foreach ($billing as $b) {
?>
<tr>
<td class=text>
<?php
echo htmlspecialchars($b['code_type'], ENT_QUOTES) . ":\t" . htmlspecialchars($b['code'], ENT_QUOTES) . " " . htmlspecialchars($b['modifier'], ENT_QUOTES) . " " . htmlspecialchars($b['code_text'], ENT_QUOTES) . " ";
?>
</td>
<td class=text>
<?php
echo htmlspecialchars(oeFormatMoney($b['fee']), ENT_QUOTES);
?>
</td>
</tr>
<?php
$total += $b['fee'];
if ($b['code_type'] == "COPAY") {
$copays += $b['fee'];
}
}
}
echo "<tr><td> </td></tr>";
echo "<tr><td class=bold>" . htmlspecialchars(xl('Sub-Total'), ENT_QUOTES) . "</td><td class=text>" . htmlspecialchars(oeFormatMoney($total + abs($copays)), ENT_QUOTES) . "</td></tr>";
echo "<tr><td class=bold>" . htmlspecialchars(xl('Paid'), ENT_QUOTES) . "</td><td class=text>" . htmlspecialchars(oeFormatMoney(abs($copays)), ENT_QUOTES) . "</td></tr>";
echo "<tr><td class=bold>" . htmlspecialchars(xl('Total'), ENT_QUOTES) . "</td><td class=text>" . htmlspecialchars(oeFormatMoney($total), ENT_QUOTES) . "</td></tr>";
echo "</table>";
echo "<pre>";
//print_r($billings);
echo "</pre>";
} else {
printPatientBilling($pid);
}
echo "</div>\n";
// end of billing DIV
} elseif ($val == "immunizations") {
?>
<hr />
<div class='text immunizations'>
<h6><?php
echo htmlspecialchars(xl('Patient Immunization') . ":", ENT_QUOTES);
?>
</h6>
<?php
开发者ID:mi-squared,项目名称:openemr,代码行数:67,代码来源:server_med_rec.php
示例20: get_patient_balance
$insurancebalance = get_patient_balance($pid, true) - $patientbalance;
$totalbalance=$patientbalance + $insurancebalance;
if ($GLOBALS['oer_config']['ws_accounting']['enabled']) {
// Show current balance and billing note, if any.
echo "<table border='0'><tr><td>" .
"<table ><tr><td><span class='bold'><font color='red'>" .
xlt('Patient Balance Due') .
" : " . text(oeFormatMoney($patientbalance)) .
"</font></span></td></tr>".
"<tr><td><span class='bold'><font color='red'>" .
xlt('Insurance Balance Due') .
" : " . text(oeFormatMoney($insurancebalance)) .
"</font></span></td></tr>".
"<tr><td><span class='bold'><font color='red'>" .
xlt('Total Balance Due').
" : " . text(oeFormatMoney($totalbalance)) .
"</font></span></td></td></tr>";
if ($result['genericname2'] == 'Billing') {
echo "<tr><td><span class='bold'><font color='red'>" .
xlt('Billing Note') . ":" .
text($result['genericval2']) .
"</font></span></td></tr>";
}
if ($result3['provider']) { // Use provider in case there is an ins record w/ unassigned insco
echo "<tr><td><span class='bold'>" .
xlt('Primary Insurance') . ': ' . text($insco_name) .
"</span> ";
if ($result3['copay'] > 0) {
echo "<span class='bold'>" .
xlt('Copay') . ': ' . text($result3['copay']) .
"</span> ";
开发者ID:jayvicson,项目名称:openemr,代码行数:31,代码来源:demographics.php
注:本文中的oeFormatMoney函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论