@will
I've checked updater function and did not found any issue
public function addWallet($user, $amount) {
$amount = (int)($amount*1000000000000);
$wallet = $this->getWallet($user);
if(isset($wallet['i_amount'])) {
return $this->dao->update($this->getTable_wallet(), array('i_amount' => $amount+$wallet['i_amount']), array('fk_i_user_id' => $user));
} else {
return $this->dao->insert($this->getTable_wallet(), array('fk_i_user_id' => $user, 'i_amount' => $amount));
}
}
It's correct.