本文整理汇总了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));
?>