<commit_before><?php
/**
 * @author <NAME> <<EMAIL>>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 05.08.2015
 */

namespace skeeks\cms\shop\grid;

use skeeks\cms\helpers\UrlHelper;
use skeeks\cms\models\CmsContentElement;
use yii\grid\DataColumn;
use yii\helpers\Html;

/**
 * Class BasketNameGridColumn
 * @package skeeks\cms\shop\grid
 */
class BasketSumGridColumn extends DataColumn
{
    public $attribute = "price";
    public $format = "raw";

    /**
     * @param mixed $model
     * @param mixed $key
     * @param int $index
     * @return string
     */
    protected function renderDataCellContent($model, $key, $index)
    {
        if (!$this->label) {
            $this->label = \Yii::t('skeeks/shop/app', 'Sum');
        }

        $model->money->multiply($model->quantity);
            
        return (string) $model->money;
    }
}<commit_msg>Bug with summa<commit_after><?php
/**
 * @author <NAME> <<EMAIL>>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 05.08.2015
 */

namespace skeeks\cms\shop\grid;

use skeeks\cms\helpers\UrlHelper;
use skeeks\cms\models\CmsContentElement;
use yii\grid\DataColumn;
use yii\helpers\Html;

/**
 * Class BasketNameGridColumn
 * @package skeeks\cms\shop\grid
 */
class BasketSumGridColumn extends DataColumn
{
    public $attribute = "price";
    public $format = "raw";

    /**
     * @param mixed $model
     * @param mixed $key
     * @param int $index
     * @return string
     */
    protected function renderDataCellContent($model, $key, $index)
    {
        if (!$this->label) {
            $this->label = \Yii::t('skeeks/shop/app', 'Sum');
        }
            
        return (string) $model->money->multiply($model->quantity);
    }
}
{'fraction_non_alphanumeric': 0.15858528237307473, 'fraction_numerical': 0.013690815744438107, 'mean_word_length': 2.70042194092827, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6866177', 'n_tokens_mistral': 620, 'n_tokens_neox': 591, 'n_words': 123}