private function processValues(Gpf_Data_Row $row) { $this->approvedCommissions += $row->get(Pap_Db_Table_Transactions::COMMISSION); $this->pendingCommissions += $row->get('pendingAmount'); $this->declinedCommissions += $row->get('declinedAmount'); if (!$row->contains('amounttopay')) { $row->add('amounttopay', $row->get(Pap_Db_Table_Transactions::COMMISSION)); } $this->amountToPay += $row->get('amounttopay'); $row->set(Pap_Db_Table_Transactions::COMMISSION, $this->round($row->get(Pap_Db_Table_Transactions::COMMISSION))); $row->set('pendingAmount', $this->round($row->get('pendingAmount'))); $row->set('declinedAmount', $this->round($row->get('declinedAmount'))); $row->set('amounttopay', $this->round($row->get('amounttopay'))); }