/** Returns CSV containing: scholarshipTotal, cashTotal, cashOwed, ccTotal **/ protected function getFinancialTotals() { // get scholarship total $scholarship_total = $this->getScholarshipsTotal(); if (!isset($scholarship_total)) { $scholarship_total = 0; } // $this->template->set('scholarshipTotal', $scholarship_total ); // get cash total $cash_total = $this->getCashPaidTotal(); if (!isset($cash_total)) { $cash_total = 0; } // $this->template->set('cashTotal', $cash_total ); // get cash owed $cash_owing = $this->getCashOwedTotal(); if (!isset($cash_owing)) { $cash_owing = 0; } // $this->template->set('cashOwed', $cash_owing ); // get credit card total $cc_total = $this->getCCtransTotal(); if (!isset($cc_total)) { $cc_total = 0; } // $this->template->set('ccTotal', $cc_total ); $totalPaid = $scholarship_total + $cash_total + $cc_total; if ($totalPaid + $cash_owing >= $this->deposit) { $this->linkLabels['cont'] = $this->labels->getLabel('[Continue]'); } // set the balance-owing column in the cim_reg_registration table $owed = $this->basePriceForThisGuy - $scholarship_total - $cash_total - $cc_total; $registration = new RowManager_RegistrationManager($this->reg_id); $registration->setBalanceOwing($owed); $balance = array(); $balance['registration_balance'] = $owed; $registration->loadFromArray($balance); $registration->updateDBTable(); return $scholarship_total . ',' . $cash_total . ',' . $cash_owing . ',' . $cc_total; }