예제 #1
0
    echo "<td>&nbsp;</tD>";
}
echo "</tr>";
//$ro->getPatientDoc($registrationNo);
//$gross = (  $cashz - $ro->getPaymentHistory_showUp_returnPaid() );
//$disc = $ro->getRegistrationDetails_discount() * $gross;
echo "<tr>";
echo "<td><b>Professional Fee</b></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
//echo "<td>&nbsp;<b>".$pf_phic."</b></tD>";
echo "<td>&nbsp;</tD>";
echo "</tr>";
$ro->getPatientDoc($registrationNo);
$gross = $cashz - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
echo "<tr>";
echo "<td><b></b></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_gt . "'></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_phic . "'></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_company . "'></tD>";
//echo "<td>&nbsp;<b>".$pf_phic."</b></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_cash . "'></tD>";
echo "</tr>";
echo "<tr>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
예제 #2
0
}
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
if ($companyDiscount != "") {
    echo "<td>&nbsp;" . number_format($companyDiscount, 2) . "&nbsp;</tD>";
} else {
    echo "<td>&nbsp;</tD>";
}
if ($ro->getRegistrationDetails_discount() != "") {
    echo "<td>&nbsp;" . number_format($ro->getRegistrationDetails_discount(), 2) . "&nbsp;</tD>";
} else {
    echo "<td>&nbsp;0.00&nbsp;</tD>";
}
echo "</tr>";
//}
$gross = $cashz - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
$grandTotalCompany = $hospitalBill_company + $pf_company;
$grandTotalCompany1 = $grandTotalCompany - $companyDiscount;
$grandTotalPHIC = $hospitalBill_phic + $pf_phic;
echo "<Tr>";
echo "<td>&nbsp;<b>Grand Total</b></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;" . number_format($grandTotalPHIC, 2) . "</tD>";
if ($grandTotalCompany1 != "") {
    echo "<td>&nbsp;" . number_format($grandTotalCompany1, 2) . "</tD>";
} else {
    echo "<td>&nbsp;</tD>";
}
echo "<td>&nbsp;<b>" . number_format($gross - $ro->getRegistrationDetails_discount() + $pf_cash, 2) . "</b>&nbsp;</tD>";
echo "</tr>";
예제 #3
0
    echo "<td>&nbsp;<b>" . number_format($hospitalBill_cash1 + $pf_cash, 2) . "</b>&nbsp;</tD>";
}
echo "</tr>";
echo "<Tr>";
echo "<td>&nbsp;<font size=2>" . $ro->selectNow("registrationDetails", "discountType", "registrationNo", $registrationNo) . "</font></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
if ($ro->getRegistrationDetails_discount() != "") {
    echo "<td>&nbsp;" . number_format($ro->getRegistrationDetails_discount(), 2) . "&nbsp;</tD>";
} else {
    echo "<td>&nbsp;0.00&nbsp;</tD>";
}
echo "</tr>";
//}
$gross = $hospitalBill_cash1 - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
echo "<Tr>";
echo "<td>&nbsp;<b>Grand Total</b></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
if ($ro->selectNow("registrationDetails", "isPackageCash", "registrationNo", $registrationNo) == "yes") {
    echo "<td>&nbsp;<b>" . number_format($gross - $ro->getRegistrationDetails_discount() + $pf_cash, 2) . "</b>&nbsp;</tD>";
} else {
    echo "<td>&nbsp;<b>" . number_format($gross - $ro->getRegistrationDetails_discount() + $pf_cash, 2) . "</b>&nbsp;</tD>";
}
echo "</tr>";
if ($ro->selectNow("registrationDetails", "isPackageCash", "registrationNo", $registrationNo) == "yes") {
    $grandTotalz = $gross - $ro->getRegistrationDetails_discount() + $pf_cash;
} else {