本文整理汇总了PHP中database4::inpatient_paymentMode_total_charges方法的典型用法代码示例。如果您正苦于以下问题:PHP database4::inpatient_paymentMode_total_charges方法的具体用法?PHP database4::inpatient_paymentMode_total_charges怎么用?PHP database4::inpatient_paymentMode_total_charges使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database4
的用法示例。
在下文中一共展示了database4::inpatient_paymentMode_total_charges方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: round
<div class="col-md-8">
<table class="table table-hover">
<thead>
<tr>
<th>Patient</th>
<th>Admitted</th>
<th>Receivables</th>
</tr>
</thead>
<tbody>
<?php
foreach ($ro4->inpatient_discharged_registrationNo() as $registrationNo) {
?>
<?php
$phic = round($ro4->inpatient_paymentMode_total_charges($registrationNo, "phic") + $ro4->inpatient_paymentMode_total_inventory($registrationNo, "phic"), 2);
$patientType = $ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo);
?>
<?php
if ($phic > 0) {
?>
<tr>
<td>
<?php
$patientNo = $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo);
$lastName = $ro->selectNow("patientRecord", "lastName", "patientNo", $patientNo);
$firstName = $ro->selectNow("patientRecord", "firstName", "patientNo", $patientNo);
echo strtoupper($lastName) . ", " . strtoupper($firstName);
$totalPatient += 1;
?>
</td>
示例2: round
<thead>
<tr>
<th>Reg#</th>
<th>Discharged</th>
<th>Patient</th>
<th>Balance</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach ($ro4->inpatient_discharged_registrationNo() as $registrationNo) {
?>
<?php
//get balance px
$unpaid = round($ro4->inpatient_paymentMode_total_charges($registrationNo, "cashUnpaid") + $ro4->inpatient_paymentMode_total_inventory($registrationNo, "cashUnpaid") + $ro4->inpatient_paymentMode_total_inventory_takeHomeMeds($registrationNo, "cashUnpaid") + $ro->selectNow("registrationDetails", "hmoManualExcessValue", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "PHICportion", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "excessMaxBenefits", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "excessRoom", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "excessPF", "registrationNo", $registrationNo), 2);
$cash = $ro4->inpatient_payment_total($registrationNo, "Cash");
$balPaid = $ro4->inpatient_balancePayment_total($registrationNo, "Cash");
$creditCard = $ro4->inpatient_payment_total($registrationNo, "Credit Card");
$disc = round($ro->selectNow("registrationDetails", "discount", "registrationNo", $registrationNo), 2);
$totalPaid = $cash + $balPaid + $creditCard + $disc;
$bal = $unpaid - $totalPaid;
?>
<?php
if ($bal > 0) {
?>
<tr>
<td><?php
echo $registrationNo;
?>
示例3: round
</thead>
<tbody>
<?php
foreach ($ro4->inpatient_discharged_registrationNo() as $registrationNo) {
?>
<?php
$cashPayment = $ro4->inpatient_payment_total($registrationNo, "Cash");
?>
<?php
$creditCardPayment = $ro4->inpatient_payment_total($registrationNo, "Credit Card");
?>
<?php
$discount = $ro->selectNow("registrationDetails", "discount", "registrationNo", $registrationNo);
?>
<?php
$pxCharges = round($ro4->inpatient_paymentMode_total_charges($registrationNo, "cashUnpaid") + $ro4->inpatient_paymentMode_total_inventory($registrationNo, "cashUnpaid") + $ro4->inpatient_paymentMode_total_inventory_takeHomeMeds($registrationNo, "cashUnpaid"), 2);
?>
<?php
$hmoExcess = $ro->selectNow("registrationDetails", "hmoManualExcessValue", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "PHICportion", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "excessMaxBenefits", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "excessRoom", "registrationNo", $registrationNo) + $ro->selectNow("registrationDetails", "excessPF", "registrationNo", $registrationNo);
?>
<?php
$pxTotalCharges = $pxCharges + $hmoExcess;
?>
<?php
$pxPayment = $cashPayment + $creditCardPayment + $discount;
?>
<?php
$pxBalance = $pxTotalCharges - $pxPayment;
?>
<?php
if ($pxBalance > 0) {