$ro3->coconutHidden("month1", $month1);
$ro3->coconutHidden("day1", $day1);
$ro3->coconutHidden("year1", $year1);
$ro3->coconutHidden("deposit_cash", $deposit_cash);
$ro3->coconutHidden("deposit_creditCard", $deposit_creditCard);
$ro3->coconutHidden("balancePaid_cash", $balancePaid_cash);
$ro3->coconutHidden("balancePaid_creditCard", $balancePaid_creditCard);
echo "<br><br><br>";
echo "OPD:&nbsp;" . number_format($ro3->showPFaccounts_total() + $ro3->_opd_totalz() + $otTotal + $stTotal, 2);
echo "<Br>";
echo "IPD:&nbsp;" . number_format($ro3->showAllAccountTitle_ipd_total(), 2);
echo "<br>";
echo "<a href='#' id='totalLink' style='text-decoration:none; color:black'>Total:&nbsp;" . number_format($ro3->showPFaccounts_total() + $ro3->_opd_totalz() + $otTotal + $stTotal + $ro3->showAllAccountTitle_ipd_total(), 2) . "</a>";
//for original transaction summary format
$opd_creditCard = $ro3->showAllAccountTitle_opd_creditCard() + $ro3->showPFAccounts_creditCard_totalCard() + $otCreditCard + $stCreditCard;
$opd_cash = $ro3->showAllAccountTitle_opd_cash() + $ro3->showPFaccounts_cash() + $otCash + $stCash;
$opd_hmo = $ro3->showAllAccountTitle_opd_hmo() + $ro3->showPFaccounts_hmo() + $otHMO + $stHMO;
$opd_phic = $ro3->showAllAccountTitle_opd_phic() + $ro3->showPFaccounts_phic() + $otPHIC + $stPHIC;
$opd_unpaid = $ro3->showAllAccountTitle_opd_unpaid() + $ro3->showPFaccounts_unpaid() + $otUnpaid + $stUnpaid;
$opd_discount = $ro3->showAllAccountTitle_opd_discount() + $ro3->showPFaccounts_discount() + $otDiscount + $stDiscount;
$opd_paidBalance = $ro3->showAllAccountTitle_opd_balancePaid();
$opd_PF_total = $ro3->showPFaccounts_total();
$opd_PF_hospitalShare = $ro3->showPFaccounts_unpaid() + $ro3->showPFaccounts_cash() + $ro3->showPFaccounts_creditCards() + $ro3->showPFaccounts_phic() + $ro3->showPFaccounts_hmo() + $ro3->showPFaccounts_discount();
$opd_PF_creditCard = $ro3->showPFaccounts_creditCards();
$opd_PF_payable = $ro3->showPFaccounts_payable();
$opd_ecg = $ro3->showAllAccountTitle_opd_ecg();
$opd_xray = $ro3->showAllAccountTitle_opd_xray();
$opd_ultrasound = $ro3->showAllAccountTitle_opd_ultrasound();
$opd_erFee = $ro3->showAllAccountTitle_opd_erFee();
$opd_nursery = $ro3->showAllAccountTitle_opd_nursery();
$opd_rehab = $ro3->showAllAccountTitle_opd_rehab();
$stCash = $ro->showTherapyAccounts_cash();
$stHMO = $ro->showTherapyAccounts_hmo();
$stPHIC = $ro->showTherapyAccounts_phic();
$stUnpaid = $ro->showTherapyAccounts_unpaid();
$stShare = $ro->showTherapyAccounts_pf();
$stDiscount = $ro->showTherapyAccounts_discount();
echo "</table>";
echo "<br><br><br>";
echo "OPD:&nbsp;" . number_format($ro->showPFaccounts_total() + $ro->_opd_totalz() + $otTotal + $stTotal, 2);
echo "<Br>";
echo "IPD:&nbsp;" . number_format($ro->showAllAccountTitle_ipd_total(), 2);
echo "<br>";
echo "<a href='#' id='totalLink' style='text-decoration:none; color:black'>Total:&nbsp;" . number_format($ro->showPFaccounts_total() + $ro->_opd_totalz() + $otTotal + $stTotal + $ro->showAllAccountTitle_ipd_total(), 2) . "</a>";
//for original transaction summary format
$opd_creditCard = $ro->showAllAccountTitle_opd_creditCard() + $ro->showPFAccounts_creditCard_totalCard() + $otCreditCard + $stCreditCard;
$opd_cash = $ro->showAllAccountTitle_opd_cash() + $ro->showPFaccounts_cash() + $otCash + $stCash + $ro->showPFaccounts_pf() + $otShare + $stShare;
$opd_hmo = $ro->showAllAccountTitle_opd_hmo() + $ro->showPFaccounts_hmo() + $otHMO + $stHMO;
$opd_phic = $ro->showAllAccountTitle_opd_phic() + $ro->showPFaccounts_phic() + $otPHIC + $stPHIC;
$opd_unpaid = $ro->showAllAccountTitle_opd_unpaid() + $ro->showPFaccounts_unpaid() + $otUnpaid + $stUnpaid;
$opd_discount = $ro->showAllAccountTitle_opd_discount() + $ro->showPFaccounts_discount() + $otDiscount + $stDiscount;
$opd_paidBalance = $ro->showAllAccountTitle_opd_balancePaid();
$opd_PF_total = $ro->showPFaccounts_total();
$opd_PF_hospitalShare = $ro->showPFaccounts_cash();
$opd_PF_creditCard = $ro->showPFaccounts_creditCards();
$opd_PF_payable = $ro->showPFaccounts_payable();
$opd_ecg = $ro->showAllAccountTitle_opd_ecg();
$opd_xray = $ro->showAllAccountTitle_opd_xray();
$opd_ultrasound = $ro->showAllAccountTitle_opd_ultrasound();
$opd_erFee = $ro->showAllAccountTitle_opd_erFee();
$opd_ctscan = $ro->showAllAccountTitle_opd_ctscan();
$opd_laboratory = $ro->showAllAccountTitle_opd_laboratory();