Exemple #1
0
<?php

include "../../../myDatabase3.php";
$itemNo = $_GET['itemNo'];
$countz = count($itemNo);
$registrationNo = $_GET['registrationNo'];
$user = $_GET['username'];
$ro = new database3();
$ro->getPatientProfile($registrationNo);
for ($x = 0; $x < $countz; $x++) {
    $collectionNo = $ro->selectNow("collectionReport", "collectionNo", "itemNo", $itemNo[$x]);
    $ro->addVoidPayment($registrationNo . "_" . $ro->getPatientRecord_completeName(), $itemNo[$x] . "_" . $ro->patientCharges_Description(), $ro->patientCharges_cashPaid(), $ro->getSynapseTime(), date("Y-m-d"), $user);
    $ro->voidItemized_OPD($collectionNo, $itemNo[$x], $user);
    $newCashUnpaid = $ro->selectNow("patientCharges", "sellingPrice", "itemNo", $itemNo[$x]) * $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo[$x]);
    $newCashUnpaid1 = $newCashUnpaid - $ro->selectNow("patientCharges", "discount", "itemNo", $itemNo[$x]);
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "status", "UNPAID");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "orNo", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "cashPaid", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "datePaid", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "timePaid", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "paidBy", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", $newCashUnpaid1);
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "amountPaidFromCreditCard", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "doctorsPF", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "doctorsPF_payable", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "cardType", "");
    $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "reportShift", "");
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "dateUnregistered", "");
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "timeUnregistered", "");
}
echo "\n<script type='text/javascript'>\nalert('Void Payment Success');\nwindow.location = 'http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_handler.php?registrationNo={$registrationNo}&username={$user}';\n</script>\n\n";
Exemple #2
0
$pf_hmo = 0;
$erFee_hmo = 0;
$others_hmo = 0;
$cardiacMonitor_hmo = 0;
$balance_hmo = 0;
$total_hmo = 0;
$balancePaid_total = 0;
echo "<style type='text/css'>\na { text-decoration:none; color:black; }\ntr:hover { background-color:yellow;color:black;}\n\n</style>";
echo "<img src='ProtacioHeader.png' width='100%' height='10%'></center>";
echo "<br><div style='border:0px solid #000000; width:825px; height:auto; border-color:black black black black;'>";
//echo "<font size=4><b>".$ro->getReportInformation("hmoSOA_name")."</b></font><br>";
//echo "<font size=2>".$ro->getReportInformation("hmoSOA_address")."</font><br>";
//echo "<font size=2>".$ro->getRegistrationDetails_branch()."</font><br>";
echo "<table border=0>";
echo "<tr>";
echo "<td><font class='labelz'><b>Name:</b></font></td><td><font size=2>" . $ro->getPatientRecord_completeName() . "</font></td>";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
echo "<Td><font class='labelz'><b>Registration#:</b></font></td>";
echo "<td><font size=2>" . $ro->getRegistrationDetails_registrationNo() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td><font class='labelz'><B>Age:</b></td>";
echo "<Td><font size=2>" . $ro->getPatientRecord_age() . " yrs Old</font></td>";
echo "<Td>&nbsp;</td>";
echo "<td><font class='labelz'><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Senior:</b></font></td>";
echo "<td><font size=2>" . $ro->getPatientRecord_senior() . "</font></td>";
echo "</tr>";
echo "<tr>";
echo "<Td><font class='labelz'><b>Company:</b></font></td>";
echo "<td><font size=2>" . $ro->getRegistrationDetails_company() . "</font></tD>";
echo "<td><font class='labelz'>Diagnosis:</font></td>";