本文整理汇总了PHP中database4::inpatient_payment_total方法的典型用法代码示例。如果您正苦于以下问题:PHP database4::inpatient_payment_total方法的具体用法?PHP database4::inpatient_payment_total怎么用?PHP database4::inpatient_payment_total使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database4
的用法示例。
在下文中一共展示了database4::inpatient_payment_total方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: round
$phicTotal += $phic;
?>
</td>
<td>
<?php
$unpaid = round($ro4->inpatient_paymentMode_total_charges($registrationNo, "cashUnpaid") + $ro4->inpatient_paymentMode_total_inventory($registrationNo, "cashUnpaid") + $ro4->inpatient_paymentMode_total_inventory_takeHomeMeds($registrationNo, "cashUnpaid") + $ro2->selectNow("registrationDetails", "hmoManualExcessValue", "registrationNo", $registrationNo) + $ro2->selectNow("registrationDetails", "PHICportion", "registrationNo", $registrationNo) + $ro2->selectNow("registrationDetails", "excessMaxBenefits", "registrationNo", $registrationNo) + $ro2->selectNow("registrationDetails", "excessRoom", "registrationNo", $registrationNo) + $ro2->selectNow("registrationDetails", "excessPF", "registrationNo", $registrationNo), 2);
echo $unpaid;
$unpaidTotal += $unpaid;
?>
</td>
<td>
<?php
$cash = $ro4->inpatient_payment_total($registrationNo, "CASH");
echo $cash;
$cashTotal += $cash;
?>
</td>
<td>
<?php
$creditCard = $ro4->inpatient_payment_total($registrationNo, "Credit Card");
echo $creditCard;
$creditCardTotal += $creditCard;
?>
</td>
<td>
<?php
示例2: round
<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;
?>
</td>
示例3:
</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
$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>