protected function processStatementSql ($sql) {
$statements = StatementImage::runQuery($sql);
$ret = array();
//Second and Third DB Calls
//TXN TABLE STUFF
// NOTE - I don't know there is a reason to process these as separate queries
// and I think they can be reasonably combined with the query held in getSQL()
// and processed through to get the same dataset more quickly.
if ($statements) {
foreach($statements as $st) {
$accountid = $st['AccountID'];
if (!$st['StatementRollUp'] || $st['templateid'] == '9') {
$st['newtxns'] = StatementImage::getNewTransactions($st, $st['showphysician'] == '1');
} else {
$st['newtxns'] = array();
}
foreach($st['newtxns'] as $txn){
$st['lastclaimdate'] = $txn['firstdos'] < $st['lastclaimdate'] || $st['lastclaimdate'] === null ? $txn['firstdos'] : $st['lastclaimdate'];
}
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE