In Class\Fee.php, find:
Code: Select all
$sql = 'insert into '.self::FEES_USERS_TABLE.'
(feeId, userId, `date`, amount, offerId, comment)
values
("'.$this->_action.'", "'.$user->id.'", "'.$date.'", '.number_format(-$tempBalance, 2).',
'.($offerId && $offerId!='' ? $offerId : 'null').', "'.$comment.'")';
Code: Select all
$sql = 'insert into '.self::FEES_USERS_TABLE.'
(feeId, userId, `date`, amount, offerId, comment)
values
("'.$this->_action.'", "'.$user->id.'", "'.$date.'", '.-$tempBalance.',
'.($offerId && $offerId!='' ? $offerId : 'null').', "'.$comment.'")';
Code: Select all
$sql = 'insert into '.self::FROZEN_TABLE.'
(feeId, userId, baseValue, offerId, comment)
values
("'.$this->_action.'", "'.$user->id.'", '.number_format($base, 2).',
'.($offerId ? $offerId : 'null').', "'.$comment.'")';
Code: Select all
$sql = 'insert into '.self::FROZEN_TABLE.'
(feeId, userId, baseValue, offerId, comment)
values
("'.$this->_action.'", "'.$user->id.'", '.$base.',
'.($offerId ? $offerId : 'null').', "'.$comment.'")';