$ro3->coconutHidden("deposit_creditCard", $deposit_creditCard); $ro3->coconutHidden("balancePaid_cash", $balancePaid_cash); $ro3->coconutHidden("balancePaid_creditCard", $balancePaid_creditCard); echo "<br><br><br>"; echo "OPD: " . number_format($ro3->showPFaccounts_total() + $ro3->_opd_totalz() + $otTotal + $stTotal, 2); echo "<Br>"; echo "IPD: " . number_format($ro3->showAllAccountTitle_ipd_total(), 2); echo "<br>"; echo "<a href='#' id='totalLink' style='text-decoration:none; color:black'>Total: " . 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(); $opd_ctscan = $ro3->showAllAccountTitle_opd_ctscan(); $opd_laboratory = $ro3->showAllAccountTitle_opd_laboratory(); $opd_medicine = $ro3->showAllAccountTitle_opd_medicine(); $opd_supplies = $ro3->showAllAccountTitle_opd_supplies();