本文整理匯總了PHP中database4::inpatient_refund_total方法的典型用法代碼示例。如果您正苦於以下問題:PHP database4::inpatient_refund_total方法的具體用法?PHP database4::inpatient_refund_total怎麽用?PHP database4::inpatient_refund_total使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類database4
的用法示例。
在下文中一共展示了database4::inpatient_refund_total方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
</form>
<div class="col-md-7">
<table class="table table-hover">
<thead>
<tr>
<th>Date</th>
<th>Patient</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<?php
foreach ($ro4->inpatient_discharged_registrationNo() as $registrationNo) {
?>
<?php
$pxRefund = $ro4->inpatient_refund_total($registrationNo, "Cash");
?>
<?php
if ($pxRefund > 0) {
?>
<tr>
<td>
<?php
echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo));
?>
</td>
<td>
<?php
$patientNo = $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo);
$lastName = $ro->selectNow("patientRecord", "lastName", "patientNo", $patientNo);
示例2: round
<td>
<?php
//$bal = round(( round($unpaid,2) - round($cash + $creditCard + $disc ,2) ),2); echo "x".$bal;
$bal = round(round($unpaid, 2) - round($cash + $creditCard + $disc, 2), 2);
echo $bal;
if ($bal > 0) {
$balTotal += $bal;
} else {
//kpg negative wag n isama sa total kc meron nman syang kabanggang account na excess payment
}
?>
</td>
<td>
<?php
$refund = $ro4->inpatient_refund_total($registrationNo, "CASH");
echo $refund;
$refundTotal += $refund;
?>
</td>
<td>
<?php
$grandBal = $bal + $refund;
echo $grandBal;
$grandBalTotal += $grandBal;
?>
</td>
<td>
示例3:
<thead>
<tr>
<th>Date</th>
<th>Patient</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<?php
foreach ($ro4->inpatient_discharged_registrationNo() as $registrationNo) {
?>
<?php
$cash = $ro4->inpatient_payment_total($registrationNo, $payment);
?>
<?php
$refund = $ro4->inpatient_refund_total($registrationNo, $payment);
?>
<?php
$pxCash = $cash - $refund;
?>
<?php
$paymentTotal += $pxCash;
?>
<?php
if ($pxCash > 0) {
?>
<tr>
<td>
<?php
echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo));
?>